• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 btBvhSubtreeInfo extends BulletBase {
19 	private long swigCPtr;
20 
btBvhSubtreeInfo(final String className, long cPtr, boolean cMemoryOwn)21 	protected btBvhSubtreeInfo(final String className, long cPtr, boolean cMemoryOwn) {
22 		super(className, cPtr, cMemoryOwn);
23 		swigCPtr = cPtr;
24 	}
25 
26 	/** Construct a new btBvhSubtreeInfo, normally you should not need this constructor it's intended for low-level usage. */
btBvhSubtreeInfo(long cPtr, boolean cMemoryOwn)27 	public btBvhSubtreeInfo(long cPtr, boolean cMemoryOwn) {
28 		this("btBvhSubtreeInfo", cPtr, cMemoryOwn);
29 		construct();
30 	}
31 
32 	@Override
reset(long cPtr, boolean cMemoryOwn)33 	protected void reset(long cPtr, boolean cMemoryOwn) {
34 		if (!destroyed)
35 			destroy();
36 		super.reset(swigCPtr = cPtr, cMemoryOwn);
37 	}
38 
getCPtr(btBvhSubtreeInfo obj)39 	public static long getCPtr(btBvhSubtreeInfo obj) {
40 		return (obj == null) ? 0 : obj.swigCPtr;
41 	}
42 
43 	@Override
finalize()44 	protected void finalize() throws Throwable {
45 		if (!destroyed)
46 			destroy();
47 		super.finalize();
48 	}
49 
delete()50   @Override protected synchronized void delete() {
51 		if (swigCPtr != 0) {
52 			if (swigCMemOwn) {
53 				swigCMemOwn = false;
54 				CollisionJNI.delete_btBvhSubtreeInfo(swigCPtr);
55 			}
56 			swigCPtr = 0;
57 		}
58 		super.delete();
59 	}
60 
setQuantizedAabbMin(int[] value)61   public void setQuantizedAabbMin(int[] value) {
62     CollisionJNI.btBvhSubtreeInfo_quantizedAabbMin_set(swigCPtr, this, value);
63   }
64 
getQuantizedAabbMin()65   public int[] getQuantizedAabbMin() {
66     return CollisionJNI.btBvhSubtreeInfo_quantizedAabbMin_get(swigCPtr, this);
67   }
68 
setQuantizedAabbMax(int[] value)69   public void setQuantizedAabbMax(int[] value) {
70     CollisionJNI.btBvhSubtreeInfo_quantizedAabbMax_set(swigCPtr, this, value);
71   }
72 
getQuantizedAabbMax()73   public int[] getQuantizedAabbMax() {
74     return CollisionJNI.btBvhSubtreeInfo_quantizedAabbMax_get(swigCPtr, this);
75   }
76 
setRootNodeIndex(int value)77   public void setRootNodeIndex(int value) {
78     CollisionJNI.btBvhSubtreeInfo_rootNodeIndex_set(swigCPtr, this, value);
79   }
80 
getRootNodeIndex()81   public int getRootNodeIndex() {
82     return CollisionJNI.btBvhSubtreeInfo_rootNodeIndex_get(swigCPtr, this);
83   }
84 
setSubtreeSize(int value)85   public void setSubtreeSize(int value) {
86     CollisionJNI.btBvhSubtreeInfo_subtreeSize_set(swigCPtr, this, value);
87   }
88 
getSubtreeSize()89   public int getSubtreeSize() {
90     return CollisionJNI.btBvhSubtreeInfo_subtreeSize_get(swigCPtr, this);
91   }
92 
setPadding(int[] value)93   public void setPadding(int[] value) {
94     CollisionJNI.btBvhSubtreeInfo_padding_set(swigCPtr, this, value);
95   }
96 
getPadding()97   public int[] getPadding() {
98     return CollisionJNI.btBvhSubtreeInfo_padding_get(swigCPtr, this);
99   }
100 
btBvhSubtreeInfo()101   public btBvhSubtreeInfo() {
102     this(CollisionJNI.new_btBvhSubtreeInfo(), true);
103   }
104 
setAabbFromQuantizeNode(btQuantizedBvhNode quantizedNode)105   public void setAabbFromQuantizeNode(btQuantizedBvhNode quantizedNode) {
106     CollisionJNI.btBvhSubtreeInfo_setAabbFromQuantizeNode(swigCPtr, this, btQuantizedBvhNode.getCPtr(quantizedNode), quantizedNode);
107   }
108 
109 }
110