Home | History | Annotate | Download | only in collision
      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 btDbvtBroadphase extends btBroadphaseInterface {
     19 	private long swigCPtr;
     20 
     21 	protected btDbvtBroadphase(final String className, long cPtr, boolean cMemoryOwn) {
     22 		super(className, CollisionJNI.btDbvtBroadphase_SWIGUpcast(cPtr), cMemoryOwn);
     23 		swigCPtr = cPtr;
     24 	}
     25 
     26 	/** Construct a new btDbvtBroadphase, normally you should not need this constructor it's intended for low-level usage. */
     27 	public btDbvtBroadphase(long cPtr, boolean cMemoryOwn) {
     28 		this("btDbvtBroadphase", 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.btDbvtBroadphase_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn);
     37 	}
     38 
     39 	public static long getCPtr(btDbvtBroadphase 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_btDbvtBroadphase(swigCPtr);
     55 			}
     56 			swigCPtr = 0;
     57 		}
     58 		super.delete();
     59 	}
     60 
     61   public void setSets(btDbvt value) {
     62     CollisionJNI.btDbvtBroadphase_sets_set(swigCPtr, this, btDbvt.getCPtr(value), value);
     63   }
     64 
     65   public btDbvt getSets() {
     66     long cPtr = CollisionJNI.btDbvtBroadphase_sets_get(swigCPtr, this);
     67     return (cPtr == 0) ? null : new btDbvt(cPtr, false);
     68   }
     69 
     70   public void setStageRoots(SWIGTYPE_p_p_btDbvtProxy value) {
     71     CollisionJNI.btDbvtBroadphase_stageRoots_set(swigCPtr, this, SWIGTYPE_p_p_btDbvtProxy.getCPtr(value));
     72   }
     73 
     74   public SWIGTYPE_p_p_btDbvtProxy getStageRoots() {
     75     long cPtr = CollisionJNI.btDbvtBroadphase_stageRoots_get(swigCPtr, this);
     76     return (cPtr == 0) ? null : new SWIGTYPE_p_p_btDbvtProxy(cPtr, false);
     77   }
     78 
     79   public void setPaircache(btOverlappingPairCache value) {
     80     CollisionJNI.btDbvtBroadphase_paircache_set(swigCPtr, this, btOverlappingPairCache.getCPtr(value), value);
     81   }
     82 
     83   public btOverlappingPairCache getPaircache() {
     84     long cPtr = CollisionJNI.btDbvtBroadphase_paircache_get(swigCPtr, this);
     85     return (cPtr == 0) ? null : new btOverlappingPairCache(cPtr, false);
     86   }
     87 
     88   public void setPrediction(float value) {
     89     CollisionJNI.btDbvtBroadphase_prediction_set(swigCPtr, this, value);
     90   }
     91 
     92   public float getPrediction() {
     93     return CollisionJNI.btDbvtBroadphase_prediction_get(swigCPtr, this);
     94   }
     95 
     96   public void setStageCurrent(int value) {
     97     CollisionJNI.btDbvtBroadphase_stageCurrent_set(swigCPtr, this, value);
     98   }
     99 
    100   public int getStageCurrent() {
    101     return CollisionJNI.btDbvtBroadphase_stageCurrent_get(swigCPtr, this);
    102   }
    103 
    104   public void setFupdates(int value) {
    105     CollisionJNI.btDbvtBroadphase_fupdates_set(swigCPtr, this, value);
    106   }
    107 
    108   public int getFupdates() {
    109     return CollisionJNI.btDbvtBroadphase_fupdates_get(swigCPtr, this);
    110   }
    111 
    112   public void setDupdates(int value) {
    113     CollisionJNI.btDbvtBroadphase_dupdates_set(swigCPtr, this, value);
    114   }
    115 
    116   public int getDupdates() {
    117     return CollisionJNI.btDbvtBroadphase_dupdates_get(swigCPtr, this);
    118   }
    119 
    120   public void setCupdates(int value) {
    121     CollisionJNI.btDbvtBroadphase_cupdates_set(swigCPtr, this, value);
    122   }
    123 
    124   public int getCupdates() {
    125     return CollisionJNI.btDbvtBroadphase_cupdates_get(swigCPtr, this);
    126   }
    127 
    128   public void setNewpairs(int value) {
    129     CollisionJNI.btDbvtBroadphase_newpairs_set(swigCPtr, this, value);
    130   }
    131 
    132   public int getNewpairs() {
    133     return CollisionJNI.btDbvtBroadphase_newpairs_get(swigCPtr, this);
    134   }
    135 
    136   public void setFixedleft(int value) {
    137     CollisionJNI.btDbvtBroadphase_fixedleft_set(swigCPtr, this, value);
    138   }
    139 
    140   public int getFixedleft() {
    141     return CollisionJNI.btDbvtBroadphase_fixedleft_get(swigCPtr, this);
    142   }
    143 
    144   public void setUpdates_call(long value) {
    145     CollisionJNI.btDbvtBroadphase_updates_call_set(swigCPtr, this, value);
    146   }
    147 
    148   public long getUpdates_call() {
    149     return CollisionJNI.btDbvtBroadphase_updates_call_get(swigCPtr, this);
    150   }
    151 
    152   public void setUpdates_done(long value) {
    153     CollisionJNI.btDbvtBroadphase_updates_done_set(swigCPtr, this, value);
    154   }
    155 
    156   public long getUpdates_done() {
    157     return CollisionJNI.btDbvtBroadphase_updates_done_get(swigCPtr, this);
    158   }
    159 
    160   public void setUpdates_ratio(float value) {
    161     CollisionJNI.btDbvtBroadphase_updates_ratio_set(swigCPtr, this, value);
    162   }
    163 
    164   public float getUpdates_ratio() {
    165     return CollisionJNI.btDbvtBroadphase_updates_ratio_get(swigCPtr, this);
    166   }
    167 
    168   public void setPid(int value) {
    169     CollisionJNI.btDbvtBroadphase_pid_set(swigCPtr, this, value);
    170   }
    171 
    172   public int getPid() {
    173     return CollisionJNI.btDbvtBroadphase_pid_get(swigCPtr, this);
    174   }
    175 
    176   public void setCid(int value) {
    177     CollisionJNI.btDbvtBroadphase_cid_set(swigCPtr, this, value);
    178   }
    179 
    180   public int getCid() {
    181     return CollisionJNI.btDbvtBroadphase_cid_get(swigCPtr, this);
    182   }
    183 
    184   public void setGid(int value) {
    185     CollisionJNI.btDbvtBroadphase_gid_set(swigCPtr, this, value);
    186   }
    187 
    188   public int getGid() {
    189     return CollisionJNI.btDbvtBroadphase_gid_get(swigCPtr, this);
    190   }
    191 
    192   public void setReleasepaircache(boolean value) {
    193     CollisionJNI.btDbvtBroadphase_releasepaircache_set(swigCPtr, this, value);
    194   }
    195 
    196   public boolean getReleasepaircache() {
    197     return CollisionJNI.btDbvtBroadphase_releasepaircache_get(swigCPtr, this);
    198   }
    199 
    200   public void setDeferedcollide(boolean value) {
    201     CollisionJNI.btDbvtBroadphase_deferedcollide_set(swigCPtr, this, value);
    202   }
    203 
    204   public boolean getDeferedcollide() {
    205     return CollisionJNI.btDbvtBroadphase_deferedcollide_get(swigCPtr, this);
    206   }
    207 
    208   public void setNeedcleanup(boolean value) {
    209     CollisionJNI.btDbvtBroadphase_needcleanup_set(swigCPtr, this, value);
    210   }
    211 
    212   public boolean getNeedcleanup() {
    213     return CollisionJNI.btDbvtBroadphase_needcleanup_get(swigCPtr, this);
    214   }
    215 
    216   public btDbvtBroadphase(btOverlappingPairCache paircache) {
    217     this(CollisionJNI.new_btDbvtBroadphase__SWIG_0(btOverlappingPairCache.getCPtr(paircache), paircache), true);
    218   }
    219 
    220   public btDbvtBroadphase() {
    221     this(CollisionJNI.new_btDbvtBroadphase__SWIG_1(), true);
    222   }
    223 
    224   public void collide(btDispatcher dispatcher) {
    225     CollisionJNI.btDbvtBroadphase_collide(swigCPtr, this, btDispatcher.getCPtr(dispatcher), dispatcher);
    226   }
    227 
    228   public void optimize() {
    229     CollisionJNI.btDbvtBroadphase_optimize(swigCPtr, this);
    230   }
    231 
    232   public void rayTest(Vector3 rayFrom, Vector3 rayTo, btBroadphaseRayCallback rayCallback, Vector3 aabbMin, Vector3 aabbMax) {
    233     CollisionJNI.btDbvtBroadphase_rayTest__SWIG_0(swigCPtr, this, rayFrom, rayTo, btBroadphaseRayCallback.getCPtr(rayCallback), rayCallback, aabbMin, aabbMax);
    234   }
    235 
    236   public void rayTest(Vector3 rayFrom, Vector3 rayTo, btBroadphaseRayCallback rayCallback, Vector3 aabbMin) {
    237     CollisionJNI.btDbvtBroadphase_rayTest__SWIG_1(swigCPtr, this, rayFrom, rayTo, btBroadphaseRayCallback.getCPtr(rayCallback), rayCallback, aabbMin);
    238   }
    239 
    240   public void rayTest(Vector3 rayFrom, Vector3 rayTo, btBroadphaseRayCallback rayCallback) {
    241     CollisionJNI.btDbvtBroadphase_rayTest__SWIG_2(swigCPtr, this, rayFrom, rayTo, btBroadphaseRayCallback.getCPtr(rayCallback), rayCallback);
    242   }
    243 
    244   public btOverlappingPairCache getOverlappingPairCache() {
    245     long cPtr = CollisionJNI.btDbvtBroadphase_getOverlappingPairCache__SWIG_0(swigCPtr, this);
    246     return (cPtr == 0) ? null : new btOverlappingPairCache(cPtr, false);
    247   }
    248 
    249   public void performDeferredRemoval(btDispatcher dispatcher) {
    250     CollisionJNI.btDbvtBroadphase_performDeferredRemoval(swigCPtr, this, btDispatcher.getCPtr(dispatcher), dispatcher);
    251   }
    252 
    253   public void setVelocityPrediction(float prediction) {
    254     CollisionJNI.btDbvtBroadphase_setVelocityPrediction(swigCPtr, this, prediction);
    255   }
    256 
    257   public float getVelocityPrediction() {
    258     return CollisionJNI.btDbvtBroadphase_getVelocityPrediction(swigCPtr, this);
    259   }
    260 
    261   public void setAabbForceUpdate(btBroadphaseProxy absproxy, Vector3 aabbMin, Vector3 aabbMax, btDispatcher arg3) {
    262     CollisionJNI.btDbvtBroadphase_setAabbForceUpdate(swigCPtr, this, btBroadphaseProxy.getCPtr(absproxy), absproxy, aabbMin, aabbMax, btDispatcher.getCPtr(arg3), arg3);
    263   }
    264 
    265   public static void benchmark(btBroadphaseInterface arg0) {
    266     CollisionJNI.btDbvtBroadphase_benchmark(btBroadphaseInterface.getCPtr(arg0), arg0);
    267   }
    268 
    269   public btDbvt getSet(int index) {
    270     long cPtr = CollisionJNI.btDbvtBroadphase_getSet(swigCPtr, this, index);
    271     return (cPtr == 0) ? null : new btDbvt(cPtr, false);
    272   }
    273 
    274   public btDbvt getSet0() {
    275     long cPtr = CollisionJNI.btDbvtBroadphase_getSet0(swigCPtr, this);
    276     return (cPtr == 0) ? null : new btDbvt(cPtr, false);
    277   }
    278 
    279   public btDbvt getSet1() {
    280     long cPtr = CollisionJNI.btDbvtBroadphase_getSet1(swigCPtr, this);
    281     return (cPtr == 0) ? null : new btDbvt(cPtr, false);
    282   }
    283 
    284   public final static int DYNAMIC_SET = 0;
    285   public final static int FIXED_SET = 1;
    286   public final static int STAGECOUNT = 2;
    287 
    288 }
    289