Package WildMagic.LibGraphics.Collision
Class HierarchicalTriMesh
- java.lang.Object
-
- WildMagic.LibGraphics.ObjectSystem.GraphicsObject
-
- WildMagic.LibGraphics.SceneGraph.Spatial
-
- WildMagic.LibGraphics.Rendering.Bindable
-
- WildMagic.LibGraphics.SceneGraph.Geometry
-
- WildMagic.LibGraphics.SceneGraph.Triangles
-
- WildMagic.LibGraphics.SceneGraph.TriMesh
-
- WildMagic.LibGraphics.Collision.HierarchicalTriMesh
-
- All Implemented Interfaces:
java.io.Serializable
,NameIdInterface
,StreamInterface
public class HierarchicalTriMesh extends TriMesh implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class WildMagic.LibGraphics.SceneGraph.Geometry
Geometry.GeometryType
-
Nested classes/interfaces inherited from class WildMagic.LibGraphics.Rendering.Bindable
Bindable.Info
-
Nested classes/interfaces inherited from class WildMagic.LibGraphics.SceneGraph.Spatial
Spatial.CullingMode
-
-
Field Summary
Fields Modifier and Type Field Description private BoundingVolumeTree
m_kBoundingTree
private static long
serialVersionUID
-
Fields inherited from class WildMagic.LibGraphics.SceneGraph.Geometry
HWorld, IBuffer, m_spkLEffect, ModelBound, States, Type, VBuffer
-
Fields inherited from class WildMagic.LibGraphics.Rendering.Bindable
m_bShared, m_kInfoArray
-
Fields inherited from class WildMagic.LibGraphics.SceneGraph.Spatial
Culling, Local, m_iStartEffect, m_kEffects, m_kGlobalStates, m_kLights, m_pkParent, World, WorldBound, WorldBoundIsCurrent, WorldIsCurrent
-
-
Constructor Summary
Constructors Constructor Description HierarchicalTriMesh(TriMesh kMesh)
Construction.HierarchicalTriMesh(VertexBuffer pkVBuffer, IndexBuffer pkIBuffer)
Construction.HierarchicalTriMesh(VertexBuffer pkVBuffer, IndexBuffer pkIBuffer, BoundingVolume kBounds)
Construction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoundingVolumeTree
GetBoundingVolumeTree()
void
SetBoundingVolumeTree(BoundingVolumeTree kTree)
java.util.Vector<PickRecord>
TestIntersection(Vector3f rkOrigin, Vector3f rkDirection, float fTMin, float fTMax)
private java.util.Vector<PickRecord>
TestIntersection(BoundingVolumeTree kTree, Vector3f kOrigin, Vector3f kDirection, float fTMin, float fTMax)
-
Methods inherited from class WildMagic.LibGraphics.SceneGraph.TriMesh
GetDiskUsed, GetTriangle, GetTriangleQuantity, Link, Load, Register, Save, SaveStrings
-
Methods inherited from class WildMagic.LibGraphics.SceneGraph.Triangles
GetModelTriangle, GetWorldTriangle, SetInside, UpdateModelNormals
-
Methods inherited from class WildMagic.LibGraphics.SceneGraph.Geometry
Copy, dispose, GetAllObjectsByName, GetModelBound, GetObjectByID, GetObjectByName, GetVisibleSet, UpdateModelBound, UpdateMS, UpdateMS, UpdateState, UpdateWorldBound, UpdateWorldData
-
Methods inherited from class WildMagic.LibGraphics.Rendering.Bindable
GetIdentifier, GetIdentifier, GetInfoQuantity, GetShared, IsReload, IsReload, OnLoad, OnRelease, Release, Reload, Reload, Remove, SetShared
-
Methods inherited from class WildMagic.LibGraphics.SceneGraph.Spatial
AttachEffect, AttachGlobalState, AttachLight, DetachAllEffects, DetachAllGlobalStates, DetachAllLights, DetachEffect, DetachGlobalState, DetachLight, GetEffect, GetEffectQuantity, GetGlobalState, GetGlobalState, GetGlobalStateQuantity, GetLight, GetLightQuantity, GetParent, GetStartEffect, OnGetVisibleSet, PopState, PropagateBoundToRoot, PropagateStateFromRoot, PushState, SetParent, SetStartEffect, UpdateBS, UpdateGS, UpdateGS, UpdateRS, UpdateRS
-
Methods inherited from class WildMagic.LibGraphics.ObjectSystem.GraphicsObject
GetID, GetName, GetNextID, GetObjectByIDBase, GetObjectByNameBase, SetName
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
m_kBoundingTree
private BoundingVolumeTree m_kBoundingTree
-
-
Constructor Detail
-
HierarchicalTriMesh
public HierarchicalTriMesh(TriMesh kMesh)
Construction.- Parameters:
kMesh
- mesh to evaluate.
-
HierarchicalTriMesh
public HierarchicalTriMesh(VertexBuffer pkVBuffer, IndexBuffer pkIBuffer)
Construction.- Parameters:
pkVBuffer
- vertex buffer.pkIBuffer
- index buffer.
-
HierarchicalTriMesh
public HierarchicalTriMesh(VertexBuffer pkVBuffer, IndexBuffer pkIBuffer, BoundingVolume kBounds)
Construction.- Parameters:
pkVBuffer
- vertex buffer.pkIBuffer
- index buffer.kBounds
- bounds.
-
-
Method Detail
-
GetBoundingVolumeTree
public BoundingVolumeTree GetBoundingVolumeTree()
-
SetBoundingVolumeTree
public void SetBoundingVolumeTree(BoundingVolumeTree kTree)
-
TestIntersection
public java.util.Vector<PickRecord> TestIntersection(Vector3f rkOrigin, Vector3f rkDirection, float fTMin, float fTMax)
-
TestIntersection
private java.util.Vector<PickRecord> TestIntersection(BoundingVolumeTree kTree, Vector3f kOrigin, Vector3f kDirection, float fTMin, float fTMax)
-
-