public abstract class BoundingVolumeTree extends Object implements Comparator<BoundingVolumeTree.ProjectionInfo>, Serializable
Modifier and Type | Class and Description |
---|---|
class |
BoundingVolumeTree.ProjectionInfo |
Modifier and Type | Field and Description |
---|---|
protected int |
m_iTriangleQuantity |
protected Vector<Integer> |
m_kTriangles |
protected BoundingVolumeTree |
m_pkLChild |
protected TriMesh |
m_pkMesh |
protected BoundingVolumeTree |
m_pkRChild |
protected BoundingVolume |
m_spkModelBound |
protected BoundingVolume |
m_spkWorldBound |
private static long |
serialVersionUID |
Modifier | Constructor and Description |
---|---|
protected |
BoundingVolumeTree() |
protected |
BoundingVolumeTree(BoundingVolume.BVType eBVType,
TriMesh pkMesh) |
protected |
BoundingVolumeTree(BoundingVolume.BVType eBVType,
TriMesh pkMesh,
int iMaxTrisPerLeaf,
boolean bStoreInteriorTris) |
protected |
BoundingVolumeTree(TriMesh pkMesh) |
Modifier and Type | Method and Description |
---|---|
protected void |
BuildTree(BoundingVolume.BVType eBVType,
int iMaxTrisPerLeaf,
boolean bStoreInteriorTris,
Vector3f[] akCentroid,
int i0,
int i1,
int[] aiISplit,
int[] aiOSplit) |
int |
compare(BoundingVolumeTree.ProjectionInfo pInfo0,
BoundingVolumeTree.ProjectionInfo pInfo1) |
protected boolean |
ContainsLeafData(VertexBuffer pkVBuffer,
int[] aiIndex,
float fEpsilon) |
void |
disposeLocal() |
BoundingVolumeTree |
GetLChild() |
TriMesh |
GetMesh() |
BoundingVolume |
GetModelBound() |
BoundingVolumeTree |
GetRChild() |
int |
GetTriangle(int i) |
int |
GetTriangleQuantity() |
Vector<Integer> |
GetTriangles() |
BoundingVolume |
GetWorldBound() |
boolean |
IsInteriorNode() |
boolean |
IsLeafNode() |
protected static void |
SplitTriangles(Vector3f[] akCentroid,
int i0,
int i1,
int[] aiISplit,
int[] rj01,
int[] aiOSplit,
Line3f rkLine) |
void |
UpdateWorldBound() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
private static final long serialVersionUID
protected TriMesh m_pkMesh
protected BoundingVolume m_spkModelBound
protected BoundingVolume m_spkWorldBound
protected BoundingVolumeTree m_pkLChild
protected BoundingVolumeTree m_pkRChild
protected int m_iTriangleQuantity
protected BoundingVolumeTree()
protected BoundingVolumeTree(BoundingVolume.BVType eBVType, TriMesh pkMesh)
protected BoundingVolumeTree(BoundingVolume.BVType eBVType, TriMesh pkMesh, int iMaxTrisPerLeaf, boolean bStoreInteriorTris)
protected BoundingVolumeTree(TriMesh pkMesh)
protected static void SplitTriangles(Vector3f[] akCentroid, int i0, int i1, int[] aiISplit, int[] rj01, int[] aiOSplit, Line3f rkLine)
public int compare(BoundingVolumeTree.ProjectionInfo pInfo0, BoundingVolumeTree.ProjectionInfo pInfo1)
compare
in interface Comparator<BoundingVolumeTree.ProjectionInfo>
public void disposeLocal()
public BoundingVolumeTree GetLChild()
public final TriMesh GetMesh()
public final BoundingVolume GetModelBound()
public BoundingVolumeTree GetRChild()
public int GetTriangle(int i)
public int GetTriangleQuantity()
public final BoundingVolume GetWorldBound()
public boolean IsInteriorNode()
public boolean IsLeafNode()
public void UpdateWorldBound()
protected void BuildTree(BoundingVolume.BVType eBVType, int iMaxTrisPerLeaf, boolean bStoreInteriorTris, Vector3f[] akCentroid, int i0, int i1, int[] aiISplit, int[] aiOSplit)
protected boolean ContainsLeafData(VertexBuffer pkVBuffer, int[] aiIndex, float fEpsilon)