com.badlogic.gdx.physics.bullet.softbody.SoftBodyPoseData Maven / Gradle / Ivy
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.11
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.badlogic.gdx.physics.bullet.softbody;
import com.badlogic.gdx.physics.bullet.BulletBase;
import com.badlogic.gdx.physics.bullet.linearmath.*;
import com.badlogic.gdx.physics.bullet.collision.*;
import com.badlogic.gdx.physics.bullet.dynamics.*;
public class SoftBodyPoseData extends BulletBase {
private long swigCPtr;
protected SoftBodyPoseData (final String className, long cPtr, boolean cMemoryOwn) {
super(className, cPtr, cMemoryOwn);
swigCPtr = cPtr;
}
/** Construct a new SoftBodyPoseData, normally you should not need this constructor it's intended for low-level usage. */
public SoftBodyPoseData (long cPtr, boolean cMemoryOwn) {
this("SoftBodyPoseData", cPtr, cMemoryOwn);
construct();
}
@Override
protected void reset (long cPtr, boolean cMemoryOwn) {
if (!destroyed) destroy();
super.reset(swigCPtr = cPtr, cMemoryOwn);
}
public static long getCPtr (SoftBodyPoseData obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@Override
protected void finalize () throws Throwable {
if (!destroyed) destroy();
super.finalize();
}
@Override
protected synchronized void delete () {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
SoftbodyJNI.delete_SoftBodyPoseData(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public void setRot (btMatrix3x3FloatData value) {
SoftbodyJNI.SoftBodyPoseData_rot_set(swigCPtr, this, btMatrix3x3FloatData.getCPtr(value), value);
}
public btMatrix3x3FloatData getRot () {
long cPtr = SoftbodyJNI.SoftBodyPoseData_rot_get(swigCPtr, this);
return (cPtr == 0) ? null : new btMatrix3x3FloatData(cPtr, false);
}
public void setScale (btMatrix3x3FloatData value) {
SoftbodyJNI.SoftBodyPoseData_scale_set(swigCPtr, this, btMatrix3x3FloatData.getCPtr(value), value);
}
public btMatrix3x3FloatData getScale () {
long cPtr = SoftbodyJNI.SoftBodyPoseData_scale_get(swigCPtr, this);
return (cPtr == 0) ? null : new btMatrix3x3FloatData(cPtr, false);
}
public void setAqq (btMatrix3x3FloatData value) {
SoftbodyJNI.SoftBodyPoseData_aqq_set(swigCPtr, this, btMatrix3x3FloatData.getCPtr(value), value);
}
public btMatrix3x3FloatData getAqq () {
long cPtr = SoftbodyJNI.SoftBodyPoseData_aqq_get(swigCPtr, this);
return (cPtr == 0) ? null : new btMatrix3x3FloatData(cPtr, false);
}
public void setCom (btVector3FloatData value) {
SoftbodyJNI.SoftBodyPoseData_com_set(swigCPtr, this, btVector3FloatData.getCPtr(value), value);
}
public btVector3FloatData getCom () {
long cPtr = SoftbodyJNI.SoftBodyPoseData_com_get(swigCPtr, this);
return (cPtr == 0) ? null : new btVector3FloatData(cPtr, false);
}
public void setPositions (btVector3FloatData value) {
SoftbodyJNI.SoftBodyPoseData_positions_set(swigCPtr, this, btVector3FloatData.getCPtr(value), value);
}
public btVector3FloatData getPositions () {
long cPtr = SoftbodyJNI.SoftBodyPoseData_positions_get(swigCPtr, this);
return (cPtr == 0) ? null : new btVector3FloatData(cPtr, false);
}
public void setWeights (java.nio.FloatBuffer value) {
assert value.isDirect() : "Buffer must be allocated direct.";
{
SoftbodyJNI.SoftBodyPoseData_weights_set(swigCPtr, this, value);
}
}
public java.nio.FloatBuffer getWeights () {
return SoftbodyJNI.SoftBodyPoseData_weights_get(swigCPtr, this);
}
public void setNumPositions (int value) {
SoftbodyJNI.SoftBodyPoseData_numPositions_set(swigCPtr, this, value);
}
public int getNumPositions () {
return SoftbodyJNI.SoftBodyPoseData_numPositions_get(swigCPtr, this);
}
public void setNumWeigts (int value) {
SoftbodyJNI.SoftBodyPoseData_numWeigts_set(swigCPtr, this, value);
}
public int getNumWeigts () {
return SoftbodyJNI.SoftBodyPoseData_numWeigts_get(swigCPtr, this);
}
public void setBvolume (int value) {
SoftbodyJNI.SoftBodyPoseData_bvolume_set(swigCPtr, this, value);
}
public int getBvolume () {
return SoftbodyJNI.SoftBodyPoseData_bvolume_get(swigCPtr, this);
}
public void setBframe (int value) {
SoftbodyJNI.SoftBodyPoseData_bframe_set(swigCPtr, this, value);
}
public int getBframe () {
return SoftbodyJNI.SoftBodyPoseData_bframe_get(swigCPtr, this);
}
public void setRestVolume (float value) {
SoftbodyJNI.SoftBodyPoseData_restVolume_set(swigCPtr, this, value);
}
public float getRestVolume () {
return SoftbodyJNI.SoftBodyPoseData_restVolume_get(swigCPtr, this);
}
public void setPad (int value) {
SoftbodyJNI.SoftBodyPoseData_pad_set(swigCPtr, this, value);
}
public int getPad () {
return SoftbodyJNI.SoftBodyPoseData_pad_get(swigCPtr, this);
}
public SoftBodyPoseData () {
this(SoftbodyJNI.new_SoftBodyPoseData(), true);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy