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 btAxisSweep3InternalInt extends btBroadphaseInterface { 19 private long swigCPtr; 20 21 protected btAxisSweep3InternalInt(final String className, long cPtr, boolean cMemoryOwn) { 22 super(className, CollisionJNI.btAxisSweep3InternalInt_SWIGUpcast(cPtr), cMemoryOwn); 23 swigCPtr = cPtr; 24 } 25 26 /** Construct a new btAxisSweep3InternalInt, normally you should not need this constructor it's intended for low-level usage. */ 27 public btAxisSweep3InternalInt(long cPtr, boolean cMemoryOwn) { 28 this("btAxisSweep3InternalInt", cPtr, cMemoryOwn); 29 construct(); 30 } 31 32 @Override 33 protected void reset(long cPtr, boolean cMemoryOwn) { 34 if (!destroyed) 35 destroy(); 36 super.reset(CollisionJNI.btAxisSweep3InternalInt_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn); 37 } 38 39 public static long getCPtr(btAxisSweep3InternalInt 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_btAxisSweep3InternalInt(swigCPtr); 55 } 56 swigCPtr = 0; 57 } 58 super.delete(); 59 } 60 61 static public class Edge extends BulletBase { 62 private long swigCPtr; 63 64 protected Edge(final String className, long cPtr, boolean cMemoryOwn) { 65 super(className, cPtr, cMemoryOwn); 66 swigCPtr = cPtr; 67 } 68 69 /** Construct a new Edge, normally you should not need this constructor it's intended for low-level usage. */ 70 public Edge(long cPtr, boolean cMemoryOwn) { 71 this("Edge", cPtr, cMemoryOwn); 72 construct(); 73 } 74 75 @Override 76 protected void reset(long cPtr, boolean cMemoryOwn) { 77 if (!destroyed) 78 destroy(); 79 super.reset(swigCPtr = cPtr, cMemoryOwn); 80 } 81 82 public static long getCPtr(Edge obj) { 83 return (obj == null) ? 0 : obj.swigCPtr; 84 } 85 86 @Override 87 protected void finalize() throws Throwable { 88 if (!destroyed) 89 destroy(); 90 super.finalize(); 91 } 92 93 @Override protected synchronized void delete() { 94 if (swigCPtr != 0) { 95 if (swigCMemOwn) { 96 swigCMemOwn = false; 97 CollisionJNI.delete_btAxisSweep3InternalInt_Edge(swigCPtr); 98 } 99 swigCPtr = 0; 100 } 101 super.delete(); 102 } 103 104 public void setPos(long value) { 105 CollisionJNI.btAxisSweep3InternalInt_Edge_pos_set(swigCPtr, this, value); 106 } 107 108 public long getPos() { 109 return CollisionJNI.btAxisSweep3InternalInt_Edge_pos_get(swigCPtr, this); 110 } 111 112 public void setHandle(long value) { 113 CollisionJNI.btAxisSweep3InternalInt_Edge_handle_set(swigCPtr, this, value); 114 } 115 116 public long getHandle() { 117 return CollisionJNI.btAxisSweep3InternalInt_Edge_handle_get(swigCPtr, this); 118 } 119 120 public long IsMax() { 121 return CollisionJNI.btAxisSweep3InternalInt_Edge_IsMax(swigCPtr, this); 122 } 123 124 public Edge() { 125 this(CollisionJNI.new_btAxisSweep3InternalInt_Edge(), true); 126 } 127 128 } 129 130 static public class Handle extends btBroadphaseProxy { 131 private long swigCPtr; 132 133 protected Handle(final String className, long cPtr, boolean cMemoryOwn) { 134 super(className, CollisionJNI.btAxisSweep3InternalInt_Handle_SWIGUpcast(cPtr), cMemoryOwn); 135 swigCPtr = cPtr; 136 } 137 138 /** Construct a new Handle, normally you should not need this constructor it's intended for low-level usage. */ 139 public Handle(long cPtr, boolean cMemoryOwn) { 140 this("Handle", cPtr, cMemoryOwn); 141 construct(); 142 } 143 144 @Override 145 protected void reset(long cPtr, boolean cMemoryOwn) { 146 if (!destroyed) 147 destroy(); 148 super.reset(CollisionJNI.btAxisSweep3InternalInt_Handle_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn); 149 } 150 151 public static long getCPtr(Handle obj) { 152 return (obj == null) ? 0 : obj.swigCPtr; 153 } 154 155 @Override 156 protected void finalize() throws Throwable { 157 if (!destroyed) 158 destroy(); 159 super.finalize(); 160 } 161 162 @Override protected synchronized void delete() { 163 if (swigCPtr != 0) { 164 if (swigCMemOwn) { 165 swigCMemOwn = false; 166 CollisionJNI.delete_btAxisSweep3InternalInt_Handle(swigCPtr); 167 } 168 swigCPtr = 0; 169 } 170 super.delete(); 171 } 172 173 public void setMinEdges(long[] value) { 174 CollisionJNI.btAxisSweep3InternalInt_Handle_minEdges_set(swigCPtr, this, value); 175 } 176 177 public long[] getMinEdges() { 178 return CollisionJNI.btAxisSweep3InternalInt_Handle_minEdges_get(swigCPtr, this); 179 } 180 181 public void setMaxEdges(long[] value) { 182 CollisionJNI.btAxisSweep3InternalInt_Handle_maxEdges_set(swigCPtr, this, value); 183 } 184 185 public long[] getMaxEdges() { 186 return CollisionJNI.btAxisSweep3InternalInt_Handle_maxEdges_get(swigCPtr, this); 187 } 188 189 public void setDbvtProxy(btBroadphaseProxy value) { 190 CollisionJNI.btAxisSweep3InternalInt_Handle_dbvtProxy_set(swigCPtr, this, btBroadphaseProxy.getCPtr(value), value); 191 } 192 193 public btBroadphaseProxy getDbvtProxy() { 194 return btBroadphaseProxy.internalTemp(CollisionJNI.btAxisSweep3InternalInt_Handle_dbvtProxy_get(swigCPtr, this), false); 195 } 196 197 public void SetNextFree(long next) { 198 CollisionJNI.btAxisSweep3InternalInt_Handle_SetNextFree(swigCPtr, this, next); 199 } 200 201 public long GetNextFree() { 202 return CollisionJNI.btAxisSweep3InternalInt_Handle_GetNextFree(swigCPtr, this); 203 } 204 205 public Handle() { 206 this(CollisionJNI.new_btAxisSweep3InternalInt_Handle(), true); 207 } 208 209 } 210 211 public btAxisSweep3InternalInt(Vector3 worldAabbMin, Vector3 worldAabbMax, long handleMask, long handleSentinel, long maxHandles, btOverlappingPairCache pairCache, boolean disableRaycastAccelerator) { 212 this(CollisionJNI.new_btAxisSweep3InternalInt__SWIG_0(worldAabbMin, worldAabbMax, handleMask, handleSentinel, maxHandles, btOverlappingPairCache.getCPtr(pairCache), pairCache, disableRaycastAccelerator), true); 213 } 214 215 public btAxisSweep3InternalInt(Vector3 worldAabbMin, Vector3 worldAabbMax, long handleMask, long handleSentinel, long maxHandles, btOverlappingPairCache pairCache) { 216 this(CollisionJNI.new_btAxisSweep3InternalInt__SWIG_1(worldAabbMin, worldAabbMax, handleMask, handleSentinel, maxHandles, btOverlappingPairCache.getCPtr(pairCache), pairCache), true); 217 } 218 219 public btAxisSweep3InternalInt(Vector3 worldAabbMin, Vector3 worldAabbMax, long handleMask, long handleSentinel, long maxHandles) { 220 this(CollisionJNI.new_btAxisSweep3InternalInt__SWIG_2(worldAabbMin, worldAabbMax, handleMask, handleSentinel, maxHandles), true); 221 } 222 223 public btAxisSweep3InternalInt(Vector3 worldAabbMin, Vector3 worldAabbMax, long handleMask, long handleSentinel) { 224 this(CollisionJNI.new_btAxisSweep3InternalInt__SWIG_3(worldAabbMin, worldAabbMax, handleMask, handleSentinel), true); 225 } 226 227 public long getNumHandles() { 228 return CollisionJNI.btAxisSweep3InternalInt_getNumHandles(swigCPtr, this); 229 } 230 231 public long addHandle(Vector3 aabbMin, Vector3 aabbMax, long pOwner, short collisionFilterGroup, short collisionFilterMask, btDispatcher dispatcher, long multiSapProxy) { 232 return CollisionJNI.btAxisSweep3InternalInt_addHandle(swigCPtr, this, aabbMin, aabbMax, pOwner, collisionFilterGroup, collisionFilterMask, btDispatcher.getCPtr(dispatcher), dispatcher, multiSapProxy); 233 } 234 235 public void removeHandle(long handle, btDispatcher dispatcher) { 236 CollisionJNI.btAxisSweep3InternalInt_removeHandle(swigCPtr, this, handle, btDispatcher.getCPtr(dispatcher), dispatcher); 237 } 238 239 public void updateHandle(long handle, Vector3 aabbMin, Vector3 aabbMax, btDispatcher dispatcher) { 240 CollisionJNI.btAxisSweep3InternalInt_updateHandle(swigCPtr, this, handle, aabbMin, aabbMax, btDispatcher.getCPtr(dispatcher), dispatcher); 241 } 242 243 public btAxisSweep3InternalInt.Handle getHandle(long index) { 244 long cPtr = CollisionJNI.btAxisSweep3InternalInt_getHandle(swigCPtr, this, index); 245 return (cPtr == 0) ? null : new btAxisSweep3InternalInt.Handle(cPtr, false); 246 } 247 248 public void rayTest(Vector3 rayFrom, Vector3 rayTo, btBroadphaseRayCallback rayCallback, Vector3 aabbMin, Vector3 aabbMax) { 249 CollisionJNI.btAxisSweep3InternalInt_rayTest__SWIG_0(swigCPtr, this, rayFrom, rayTo, btBroadphaseRayCallback.getCPtr(rayCallback), rayCallback, aabbMin, aabbMax); 250 } 251 252 public void rayTest(Vector3 rayFrom, Vector3 rayTo, btBroadphaseRayCallback rayCallback, Vector3 aabbMin) { 253 CollisionJNI.btAxisSweep3InternalInt_rayTest__SWIG_1(swigCPtr, this, rayFrom, rayTo, btBroadphaseRayCallback.getCPtr(rayCallback), rayCallback, aabbMin); 254 } 255 256 public void rayTest(Vector3 rayFrom, Vector3 rayTo, btBroadphaseRayCallback rayCallback) { 257 CollisionJNI.btAxisSweep3InternalInt_rayTest__SWIG_2(swigCPtr, this, rayFrom, rayTo, btBroadphaseRayCallback.getCPtr(rayCallback), rayCallback); 258 } 259 260 public void quantize(java.nio.LongBuffer out, Vector3 point, int isMax) { 261 assert out.isDirect() : "Buffer must be allocated direct."; 262 { 263 CollisionJNI.btAxisSweep3InternalInt_quantize(swigCPtr, this, out, point, isMax); 264 } 265 } 266 267 public void unQuantize(btBroadphaseProxy proxy, Vector3 aabbMin, Vector3 aabbMax) { 268 CollisionJNI.btAxisSweep3InternalInt_unQuantize(swigCPtr, this, btBroadphaseProxy.getCPtr(proxy), proxy, aabbMin, aabbMax); 269 } 270 271 public boolean testAabbOverlap(btBroadphaseProxy proxy0, btBroadphaseProxy proxy1) { 272 return CollisionJNI.btAxisSweep3InternalInt_testAabbOverlap(swigCPtr, this, btBroadphaseProxy.getCPtr(proxy0), proxy0, btBroadphaseProxy.getCPtr(proxy1), proxy1); 273 } 274 275 public btOverlappingPairCache getOverlappingPairCache() { 276 long cPtr = CollisionJNI.btAxisSweep3InternalInt_getOverlappingPairCache__SWIG_0(swigCPtr, this); 277 return (cPtr == 0) ? null : new btOverlappingPairCache(cPtr, false); 278 } 279 280 public void setOverlappingPairUserCallback(btOverlappingPairCallback pairCallback) { 281 CollisionJNI.btAxisSweep3InternalInt_setOverlappingPairUserCallback(swigCPtr, this, btOverlappingPairCallback.getCPtr(pairCallback), pairCallback); 282 } 283 284 public btOverlappingPairCallback getOverlappingPairUserCallback() { 285 long cPtr = CollisionJNI.btAxisSweep3InternalInt_getOverlappingPairUserCallback(swigCPtr, this); 286 return (cPtr == 0) ? null : new btOverlappingPairCallback(cPtr, false); 287 } 288 289 } 290