1 /* ---------------------------------------------------------------------------- 2 * This file was automatically generated by SWIG (http://www.swig.org). 3 * Version 3.0.8 4 * 5 * Do not make changes to this file unless you know what you are doing--modify 6 * the SWIG interface file instead. 7 * ----------------------------------------------------------------------------- */ 8 9 package com.badlogic.gdx.physics.bullet.collision; 10 11 import com.badlogic.gdx.physics.bullet.BulletBase; 12 import com.badlogic.gdx.physics.bullet.linearmath.*; 13 import com.badlogic.gdx.math.Vector3; 14 import com.badlogic.gdx.math.Quaternion; 15 import com.badlogic.gdx.math.Matrix3; 16 import com.badlogic.gdx.math.Matrix4; 17 18 public class btQuantizedBvhDoubleData extends BulletBase { 19 private long swigCPtr; 20 21 protected btQuantizedBvhDoubleData(final String className, long cPtr, boolean cMemoryOwn) { 22 super(className, cPtr, cMemoryOwn); 23 swigCPtr = cPtr; 24 } 25 26 /** Construct a new btQuantizedBvhDoubleData, normally you should not need this constructor it's intended for low-level usage. */ 27 public btQuantizedBvhDoubleData(long cPtr, boolean cMemoryOwn) { 28 this("btQuantizedBvhDoubleData", cPtr, cMemoryOwn); 29 construct(); 30 } 31 32 @Override 33 protected void reset(long cPtr, boolean cMemoryOwn) { 34 if (!destroyed) 35 destroy(); 36 super.reset(swigCPtr = cPtr, cMemoryOwn); 37 } 38 39 public static long getCPtr(btQuantizedBvhDoubleData obj) { 40 return (obj == null) ? 0 : obj.swigCPtr; 41 } 42 43 @Override 44 protected void finalize() throws Throwable { 45 if (!destroyed) 46 destroy(); 47 super.finalize(); 48 } 49 50 @Override protected synchronized void delete() { 51 if (swigCPtr != 0) { 52 if (swigCMemOwn) { 53 swigCMemOwn = false; 54 CollisionJNI.delete_btQuantizedBvhDoubleData(swigCPtr); 55 } 56 swigCPtr = 0; 57 } 58 super.delete(); 59 } 60 61 public void setBvhAabbMin(btVector3DoubleData value) { 62 CollisionJNI.btQuantizedBvhDoubleData_bvhAabbMin_set(swigCPtr, this, btVector3DoubleData.getCPtr(value), value); 63 } 64 65 public btVector3DoubleData getBvhAabbMin() { 66 long cPtr = CollisionJNI.btQuantizedBvhDoubleData_bvhAabbMin_get(swigCPtr, this); 67 return (cPtr == 0) ? null : new btVector3DoubleData(cPtr, false); 68 } 69 70 public void setBvhAabbMax(btVector3DoubleData value) { 71 CollisionJNI.btQuantizedBvhDoubleData_bvhAabbMax_set(swigCPtr, this, btVector3DoubleData.getCPtr(value), value); 72 } 73 74 public btVector3DoubleData getBvhAabbMax() { 75 long cPtr = CollisionJNI.btQuantizedBvhDoubleData_bvhAabbMax_get(swigCPtr, this); 76 return (cPtr == 0) ? null : new btVector3DoubleData(cPtr, false); 77 } 78 79 public void setBvhQuantization(btVector3DoubleData value) { 80 CollisionJNI.btQuantizedBvhDoubleData_bvhQuantization_set(swigCPtr, this, btVector3DoubleData.getCPtr(value), value); 81 } 82 83 public btVector3DoubleData getBvhQuantization() { 84 long cPtr = CollisionJNI.btQuantizedBvhDoubleData_bvhQuantization_get(swigCPtr, this); 85 return (cPtr == 0) ? null : new btVector3DoubleData(cPtr, false); 86 } 87 88 public void setCurNodeIndex(int value) { 89 CollisionJNI.btQuantizedBvhDoubleData_curNodeIndex_set(swigCPtr, this, value); 90 } 91 92 public int getCurNodeIndex() { 93 return CollisionJNI.btQuantizedBvhDoubleData_curNodeIndex_get(swigCPtr, this); 94 } 95 96 public void setUseQuantization(int value) { 97 CollisionJNI.btQuantizedBvhDoubleData_useQuantization_set(swigCPtr, this, value); 98 } 99 100 public int getUseQuantization() { 101 return CollisionJNI.btQuantizedBvhDoubleData_useQuantization_get(swigCPtr, this); 102 } 103 104 public void setNumContiguousLeafNodes(int value) { 105 CollisionJNI.btQuantizedBvhDoubleData_numContiguousLeafNodes_set(swigCPtr, this, value); 106 } 107 108 public int getNumContiguousLeafNodes() { 109 return CollisionJNI.btQuantizedBvhDoubleData_numContiguousLeafNodes_get(swigCPtr, this); 110 } 111 112 public void setNumQuantizedContiguousNodes(int value) { 113 CollisionJNI.btQuantizedBvhDoubleData_numQuantizedContiguousNodes_set(swigCPtr, this, value); 114 } 115 116 public int getNumQuantizedContiguousNodes() { 117 return CollisionJNI.btQuantizedBvhDoubleData_numQuantizedContiguousNodes_get(swigCPtr, this); 118 } 119 120 public void setContiguousNodesPtr(btOptimizedBvhNodeDoubleData value) { 121 CollisionJNI.btQuantizedBvhDoubleData_contiguousNodesPtr_set(swigCPtr, this, btOptimizedBvhNodeDoubleData.getCPtr(value), value); 122 } 123 124 public btOptimizedBvhNodeDoubleData getContiguousNodesPtr() { 125 long cPtr = CollisionJNI.btQuantizedBvhDoubleData_contiguousNodesPtr_get(swigCPtr, this); 126 return (cPtr == 0) ? null : new btOptimizedBvhNodeDoubleData(cPtr, false); 127 } 128 129 public void setQuantizedContiguousNodesPtr(btQuantizedBvhNodeData value) { 130 CollisionJNI.btQuantizedBvhDoubleData_quantizedContiguousNodesPtr_set(swigCPtr, this, btQuantizedBvhNodeData.getCPtr(value), value); 131 } 132 133 public btQuantizedBvhNodeData getQuantizedContiguousNodesPtr() { 134 long cPtr = CollisionJNI.btQuantizedBvhDoubleData_quantizedContiguousNodesPtr_get(swigCPtr, this); 135 return (cPtr == 0) ? null : new btQuantizedBvhNodeData(cPtr, false); 136 } 137 138 public void setTraversalMode(int value) { 139 CollisionJNI.btQuantizedBvhDoubleData_traversalMode_set(swigCPtr, this, value); 140 } 141 142 public int getTraversalMode() { 143 return CollisionJNI.btQuantizedBvhDoubleData_traversalMode_get(swigCPtr, this); 144 } 145 146 public void setNumSubtreeHeaders(int value) { 147 CollisionJNI.btQuantizedBvhDoubleData_numSubtreeHeaders_set(swigCPtr, this, value); 148 } 149 150 public int getNumSubtreeHeaders() { 151 return CollisionJNI.btQuantizedBvhDoubleData_numSubtreeHeaders_get(swigCPtr, this); 152 } 153 154 public void setSubTreeInfoPtr(btBvhSubtreeInfoData value) { 155 CollisionJNI.btQuantizedBvhDoubleData_subTreeInfoPtr_set(swigCPtr, this, btBvhSubtreeInfoData.getCPtr(value), value); 156 } 157 158 public btBvhSubtreeInfoData getSubTreeInfoPtr() { 159 long cPtr = CollisionJNI.btQuantizedBvhDoubleData_subTreeInfoPtr_get(swigCPtr, this); 160 return (cPtr == 0) ? null : new btBvhSubtreeInfoData(cPtr, false); 161 } 162 163 public btQuantizedBvhDoubleData() { 164 this(CollisionJNI.new_btQuantizedBvhDoubleData(), true); 165 } 166 167 } 168