1 /* ----------------------------------------------------------------------------
\r
2 * This file was automatically generated by SWIG (http://www.swig.org).
\r
5 * Do not make changes to this file unless you know what you are doing--modify
\r
6 * the SWIG interface file instead.
\r
7 * ----------------------------------------------------------------------------- */
\r
9 package com.badlogic.gdx.physics.bullet;
\r
11 import com.badlogic.gdx.math.Vector3;
\r
12 import com.badlogic.gdx.math.Quaternion;
\r
13 import com.badlogic.gdx.math.Matrix3;
\r
14 import com.badlogic.gdx.math.Matrix4;
\r
16 public class btDbvtNode extends BulletBase {
\r
17 private long swigCPtr;
\r
19 protected btDbvtNode(final String className, long cPtr, boolean cMemoryOwn) {
\r
20 super(className, cPtr, cMemoryOwn);
\r
24 protected btDbvtNode(long cPtr, boolean cMemoryOwn) {
\r
25 this("btDbvtNode", cPtr, cMemoryOwn);
\r
29 public static long getCPtr(btDbvtNode obj) {
\r
30 return (obj == null) ? 0 : obj.swigCPtr;
\r
34 protected void finalize() throws Throwable {
\r
40 @Override protected synchronized void delete() {
\r
41 if (swigCPtr != 0) {
\r
43 swigCMemOwn = false;
\r
44 gdxBulletJNI.delete_btDbvtNode(swigCPtr);
\r
51 public void setVolume(btDbvtAabbMm value) {
\r
52 gdxBulletJNI.btDbvtNode_volume_set(swigCPtr, this, btDbvtAabbMm.getCPtr(value), value);
\r
55 public btDbvtAabbMm getVolume() {
\r
56 long cPtr = gdxBulletJNI.btDbvtNode_volume_get(swigCPtr, this);
\r
57 return (cPtr == 0) ? null : new btDbvtAabbMm(cPtr, false);
\r
60 public void setParent(btDbvtNode value) {
\r
61 gdxBulletJNI.btDbvtNode_parent_set(swigCPtr, this, btDbvtNode.getCPtr(value), value);
\r
64 public btDbvtNode getParent() {
\r
65 long cPtr = gdxBulletJNI.btDbvtNode_parent_get(swigCPtr, this);
\r
66 return (cPtr == 0) ? null : new btDbvtNode(cPtr, false);
\r
69 public boolean isleaf() {
\r
70 return gdxBulletJNI.btDbvtNode_isleaf(swigCPtr, this);
\r
73 public boolean isinternal() {
\r
74 return gdxBulletJNI.btDbvtNode_isinternal(swigCPtr, this);
\r
77 public btDbvtNode() {
\r
78 this(gdxBulletJNI.new_btDbvtNode(), true);
\r