com.badlogic.gdx.physics.bullet.collision.btTriangleInfoMapData 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.collision;
import com.badlogic.gdx.physics.bullet.BulletBase;
import com.badlogic.gdx.physics.bullet.linearmath.*;
public class btTriangleInfoMapData extends BulletBase {
private long swigCPtr;
protected btTriangleInfoMapData (final String className, long cPtr, boolean cMemoryOwn) {
super(className, cPtr, cMemoryOwn);
swigCPtr = cPtr;
}
/** Construct a new btTriangleInfoMapData, normally you should not need this constructor it's intended for low-level usage. */
public btTriangleInfoMapData (long cPtr, boolean cMemoryOwn) {
this("btTriangleInfoMapData", cPtr, cMemoryOwn);
construct();
}
@Override
protected void reset (long cPtr, boolean cMemoryOwn) {
if (!destroyed) destroy();
super.reset(swigCPtr = cPtr, cMemoryOwn);
}
public static long getCPtr (btTriangleInfoMapData 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;
CollisionJNI.delete_btTriangleInfoMapData(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public void setHashTablePtr (java.nio.IntBuffer value) {
assert value.isDirect() : "Buffer must be allocated direct.";
{
CollisionJNI.btTriangleInfoMapData_hashTablePtr_set(swigCPtr, this, value);
}
}
public java.nio.IntBuffer getHashTablePtr () {
return CollisionJNI.btTriangleInfoMapData_hashTablePtr_get(swigCPtr, this);
}
public void setNextPtr (java.nio.IntBuffer value) {
assert value.isDirect() : "Buffer must be allocated direct.";
{
CollisionJNI.btTriangleInfoMapData_nextPtr_set(swigCPtr, this, value);
}
}
public java.nio.IntBuffer getNextPtr () {
return CollisionJNI.btTriangleInfoMapData_nextPtr_get(swigCPtr, this);
}
public void setValueArrayPtr (btTriangleInfoData value) {
CollisionJNI.btTriangleInfoMapData_valueArrayPtr_set(swigCPtr, this, btTriangleInfoData.getCPtr(value), value);
}
public btTriangleInfoData getValueArrayPtr () {
long cPtr = CollisionJNI.btTriangleInfoMapData_valueArrayPtr_get(swigCPtr, this);
return (cPtr == 0) ? null : new btTriangleInfoData(cPtr, false);
}
public void setKeyArrayPtr (java.nio.IntBuffer value) {
assert value.isDirect() : "Buffer must be allocated direct.";
{
CollisionJNI.btTriangleInfoMapData_keyArrayPtr_set(swigCPtr, this, value);
}
}
public java.nio.IntBuffer getKeyArrayPtr () {
return CollisionJNI.btTriangleInfoMapData_keyArrayPtr_get(swigCPtr, this);
}
public void setConvexEpsilon (float value) {
CollisionJNI.btTriangleInfoMapData_convexEpsilon_set(swigCPtr, this, value);
}
public float getConvexEpsilon () {
return CollisionJNI.btTriangleInfoMapData_convexEpsilon_get(swigCPtr, this);
}
public void setPlanarEpsilon (float value) {
CollisionJNI.btTriangleInfoMapData_planarEpsilon_set(swigCPtr, this, value);
}
public float getPlanarEpsilon () {
return CollisionJNI.btTriangleInfoMapData_planarEpsilon_get(swigCPtr, this);
}
public void setEqualVertexThreshold (float value) {
CollisionJNI.btTriangleInfoMapData_equalVertexThreshold_set(swigCPtr, this, value);
}
public float getEqualVertexThreshold () {
return CollisionJNI.btTriangleInfoMapData_equalVertexThreshold_get(swigCPtr, this);
}
public void setEdgeDistanceThreshold (float value) {
CollisionJNI.btTriangleInfoMapData_edgeDistanceThreshold_set(swigCPtr, this, value);
}
public float getEdgeDistanceThreshold () {
return CollisionJNI.btTriangleInfoMapData_edgeDistanceThreshold_get(swigCPtr, this);
}
public void setZeroAreaThreshold (float value) {
CollisionJNI.btTriangleInfoMapData_zeroAreaThreshold_set(swigCPtr, this, value);
}
public float getZeroAreaThreshold () {
return CollisionJNI.btTriangleInfoMapData_zeroAreaThreshold_get(swigCPtr, this);
}
public void setNextSize (int value) {
CollisionJNI.btTriangleInfoMapData_nextSize_set(swigCPtr, this, value);
}
public int getNextSize () {
return CollisionJNI.btTriangleInfoMapData_nextSize_get(swigCPtr, this);
}
public void setHashTableSize (int value) {
CollisionJNI.btTriangleInfoMapData_hashTableSize_set(swigCPtr, this, value);
}
public int getHashTableSize () {
return CollisionJNI.btTriangleInfoMapData_hashTableSize_get(swigCPtr, this);
}
public void setNumValues (int value) {
CollisionJNI.btTriangleInfoMapData_numValues_set(swigCPtr, this, value);
}
public int getNumValues () {
return CollisionJNI.btTriangleInfoMapData_numValues_get(swigCPtr, this);
}
public void setNumKeys (int value) {
CollisionJNI.btTriangleInfoMapData_numKeys_set(swigCPtr, this, value);
}
public int getNumKeys () {
return CollisionJNI.btTriangleInfoMapData_numKeys_get(swigCPtr, this);
}
public void setPadding (String value) {
CollisionJNI.btTriangleInfoMapData_padding_set(swigCPtr, this, value);
}
public String getPadding () {
return CollisionJNI.btTriangleInfoMapData_padding_get(swigCPtr, this);
}
public btTriangleInfoMapData () {
this(CollisionJNI.new_btTriangleInfoMapData(), true);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy