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 btPersistentManifoldArray extends BulletBase { 19 private long swigCPtr; 20 21 protected btPersistentManifoldArray(final String className, long cPtr, boolean cMemoryOwn) { 22 super(className, cPtr, cMemoryOwn); 23 swigCPtr = cPtr; 24 } 25 26 /** Construct a new btPersistentManifoldArray, normally you should not need this constructor it's intended for low-level usage. */ 27 public btPersistentManifoldArray(long cPtr, boolean cMemoryOwn) { 28 this("btPersistentManifoldArray", 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(btPersistentManifoldArray 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_btPersistentManifoldArray(swigCPtr); 55 } 56 swigCPtr = 0; 57 } 58 super.delete(); 59 } 60 61 public btPersistentManifoldArray() { 62 this(CollisionJNI.new_btPersistentManifoldArray__SWIG_0(), true); 63 } 64 65 public btPersistentManifoldArray(btPersistentManifoldArray otherArray) { 66 this(CollisionJNI.new_btPersistentManifoldArray__SWIG_1(btPersistentManifoldArray.getCPtr(otherArray), otherArray), true); 67 } 68 69 public int size() { 70 return CollisionJNI.btPersistentManifoldArray_size(swigCPtr, this); 71 } 72 73 public btPersistentManifold at(int n) { 74 long cPtr = CollisionJNI.btPersistentManifoldArray_at__SWIG_0(swigCPtr, this, n); 75 return (cPtr == 0) ? null : new btPersistentManifold(cPtr, false); 76 } 77 78 public void clear() { 79 CollisionJNI.btPersistentManifoldArray_clear(swigCPtr, this); 80 } 81 82 public void pop_back() { 83 CollisionJNI.btPersistentManifoldArray_pop_back(swigCPtr, this); 84 } 85 86 public void resizeNoInitialize(int newsize) { 87 CollisionJNI.btPersistentManifoldArray_resizeNoInitialize(swigCPtr, this, newsize); 88 } 89 90 public void resize(int newsize, btPersistentManifold fillData) { 91 CollisionJNI.btPersistentManifoldArray_resize__SWIG_0(swigCPtr, this, newsize, btPersistentManifold.getCPtr(fillData), fillData); 92 } 93 94 public void resize(int newsize) { 95 CollisionJNI.btPersistentManifoldArray_resize__SWIG_1(swigCPtr, this, newsize); 96 } 97 98 public SWIGTYPE_p_p_btPersistentManifold expandNonInitializing() { 99 return new SWIGTYPE_p_p_btPersistentManifold(CollisionJNI.btPersistentManifoldArray_expandNonInitializing(swigCPtr, this), false); 100 } 101 102 public SWIGTYPE_p_p_btPersistentManifold expand(btPersistentManifold fillValue) { 103 return new SWIGTYPE_p_p_btPersistentManifold(CollisionJNI.btPersistentManifoldArray_expand__SWIG_0(swigCPtr, this, btPersistentManifold.getCPtr(fillValue), fillValue), false); 104 } 105 106 public SWIGTYPE_p_p_btPersistentManifold expand() { 107 return new SWIGTYPE_p_p_btPersistentManifold(CollisionJNI.btPersistentManifoldArray_expand__SWIG_1(swigCPtr, this), false); 108 } 109 110 public void push_back(btPersistentManifold _Val) { 111 CollisionJNI.btPersistentManifoldArray_push_back(swigCPtr, this, btPersistentManifold.getCPtr(_Val), _Val); 112 } 113 114 public int capacity() { 115 return CollisionJNI.btPersistentManifoldArray_capacity(swigCPtr, this); 116 } 117 118 public void reserve(int _Count) { 119 CollisionJNI.btPersistentManifoldArray_reserve(swigCPtr, this, _Count); 120 } 121 122 static public class less extends BulletBase { 123 private long swigCPtr; 124 125 protected less(final String className, long cPtr, boolean cMemoryOwn) { 126 super(className, cPtr, cMemoryOwn); 127 swigCPtr = cPtr; 128 } 129 130 /** Construct a new less, normally you should not need this constructor it's intended for low-level usage. */ 131 public less(long cPtr, boolean cMemoryOwn) { 132 this("less", cPtr, cMemoryOwn); 133 construct(); 134 } 135 136 @Override 137 protected void reset(long cPtr, boolean cMemoryOwn) { 138 if (!destroyed) 139 destroy(); 140 super.reset(swigCPtr = cPtr, cMemoryOwn); 141 } 142 143 public static long getCPtr(less obj) { 144 return (obj == null) ? 0 : obj.swigCPtr; 145 } 146 147 @Override 148 protected void finalize() throws Throwable { 149 if (!destroyed) 150 destroy(); 151 super.finalize(); 152 } 153 154 @Override protected synchronized void delete() { 155 if (swigCPtr != 0) { 156 if (swigCMemOwn) { 157 swigCMemOwn = false; 158 CollisionJNI.delete_btPersistentManifoldArray_less(swigCPtr); 159 } 160 swigCPtr = 0; 161 } 162 super.delete(); 163 } 164 165 public less() { 166 this(CollisionJNI.new_btPersistentManifoldArray_less(), true); 167 } 168 169 } 170 171 public void swap(int index0, int index1) { 172 CollisionJNI.btPersistentManifoldArray_swap(swigCPtr, this, index0, index1); 173 } 174 175 public int findBinarySearch(btPersistentManifold key) { 176 return CollisionJNI.btPersistentManifoldArray_findBinarySearch(swigCPtr, this, btPersistentManifold.getCPtr(key), key); 177 } 178 179 public int findLinearSearch(btPersistentManifold key) { 180 return CollisionJNI.btPersistentManifoldArray_findLinearSearch(swigCPtr, this, btPersistentManifold.getCPtr(key), key); 181 } 182 183 public void remove(btPersistentManifold key) { 184 CollisionJNI.btPersistentManifoldArray_remove(swigCPtr, this, btPersistentManifold.getCPtr(key), key); 185 } 186 187 public void initializeFromBuffer(long buffer, int size, int capacity) { 188 CollisionJNI.btPersistentManifoldArray_initializeFromBuffer(swigCPtr, this, buffer, size, capacity); 189 } 190 191 public void copyFromArray(btPersistentManifoldArray otherArray) { 192 CollisionJNI.btPersistentManifoldArray_copyFromArray(swigCPtr, this, btPersistentManifoldArray.getCPtr(otherArray), otherArray); 193 } 194 195 } 196