BVH node.
More...
#include <bvhnode.h>

Public Member Functions | |
| BVHNode () | |
| Class constructor. | |
| virtual | ~BVHNode () |
| Class destructor. | |
| bool | IsLeaf () const |
| bool | IsValid () const |
| Is node valid? | |
| BVHNode * | GetLChild () const |
| Get left child. | |
| BVHNode * | GetRChild () const |
| Get right child. | |
| BVHNode * | GetParent () const |
| Get parent node. | |
| const AABB * | GetAABB () const |
| Get AABB. | |
| const BSphere * | GetBSphere () const |
| Get bounding sphere. | |
| const int | GetLastOut () const |
| Get last out flag. | |
| int & | LastOut () |
| NODE_ID | GetSceneNodeID () const |
| Get associated scene node's ID. | |
| virtual wxString | ToString () const |
| Get string with node's properties. | |
Public Attributes | |
| int | id |
| unique ID of the node in the BVH - used for various lookups | |
Private Attributes | |
| bool | valid |
Is aabb and sphere properly updated? | |
| AABB | aabb |
| Axis aligned bounding box. | |
| BSphere | bSphere |
| Bounding sphere (approximate). | |
| NODE_ID | sceneNodeID |
| Dcene graph node ID. | |
| BVHNode * | lChild |
Left BVHNode subnode. | |
| BVHNode * | rChild |
Right BVHNode subnode. | |
| int | lastOut |
Index of plane for which VF intersection test returned OUTSIDE in previous frame. | |
| BVHNode * | parent |
| Parent node. | |
Friends | |
| class | BVH |
BVH node.
Definition at line 22 of file bvhnode.h.
| VRUT::BVHNode::BVHNode | ( | ) | [inline] |
| virtual VRUT::BVHNode::~BVHNode | ( | ) | [inline, virtual] |
Class destructor.
Definition at line 56 of file bvhnode.h.
00057 { 00058 SAFE_DELETE(lChild); 00059 SAFE_DELETE(rChild); 00060 }
| bool VRUT::BVHNode::IsLeaf | ( | ) | const [inline] |
| bool VRUT::BVHNode::IsValid | ( | ) | const [inline] |
| BVHNode* VRUT::BVHNode::GetLChild | ( | ) | const [inline] |
| BVHNode* VRUT::BVHNode::GetRChild | ( | ) | const [inline] |
| BVHNode* VRUT::BVHNode::GetParent | ( | ) | const [inline] |
| const AABB* VRUT::BVHNode::GetAABB | ( | ) | const [inline] |
| const BSphere* VRUT::BVHNode::GetBSphere | ( | ) | const [inline] |
| const int VRUT::BVHNode::GetLastOut | ( | ) | const [inline] |
| int& VRUT::BVHNode::LastOut | ( | ) | [inline] |
| NODE_ID VRUT::BVHNode::GetSceneNodeID | ( | ) | const [inline] |
Get associated scene node's ID.
Definition at line 107 of file bvhnode.h.
00108 { 00109 return sceneNodeID; 00110 }
| virtual wxString VRUT::BVHNode::ToString | ( | ) | const [inline, virtual] |
Get string with node's properties.
Definition at line 112 of file bvhnode.h.
00113 { 00114 return wxString::Format(wxT("%s\nSceneNode ID: %i\n"), 00115 aabb.ToString().c_str(), sceneNodeID); 00116 }
bool VRUT::BVHNode::valid [private] |
Is aabb and sphere properly updated?
Reimplemented in CollisionDetectionNamespace::CollisionDetection_BVHNode.
AABB VRUT::BVHNode::aabb [private] |
Axis aligned bounding box.
Reimplemented in CollisionDetectionNamespace::CollisionDetection_BVHNode.
BSphere VRUT::BVHNode::bSphere [private] |
Bounding sphere (approximate).
Reimplemented in CollisionDetectionNamespace::CollisionDetection_BVHNode.
NODE_ID VRUT::BVHNode::sceneNodeID [private] |
BVHNode* VRUT::BVHNode::lChild [private] |
BVHNode* VRUT::BVHNode::rChild [private] |
int VRUT::BVHNode::lastOut [private] |
BVHNode* VRUT::BVHNode::parent [private] |
1.5.5