A node in a bounding box hierarchy. More...
#include <collisionModel.h>
Public Member Functions | |
virtual int | countRecurse () |
const BoundingBox & | getBox () const |
double | getBoxVolume () const |
virtual void | getBVRecurse (int currentDepth, int desiredDepth, std::vector< BoundingBox > *bvs) |
virtual bool | isLeaf () const =0 |
virtual void | mark (bool m) const |
virtual void | markRecurse (bool m) const |
Node () | |
Just a stub. | |
virtual Branch * | split () |
virtual | ~Node () |
Protected Attributes | |
BoundingBox | mBbox |
A node in a bounding box hierarchy.
A node can be either a Leaf or a Branch. As such, it contains the functionality that is common to both. Mainly, this means a bounding box and recursion functions.
Definition at line 57 of file collisionModel.h.
Collision::Node::Node | ( | ) | [inline] |
Just a stub.
Definition at line 62 of file collisionModel.h.
virtual Collision::Node::~Node | ( | ) | [inline, virtual] |
Definition at line 63 of file collisionModel.h.
virtual int Collision::Node::countRecurse | ( | ) | [inline, virtual] |
Reimplemented in Collision::Branch.
Definition at line 67 of file collisionModel.h.
const BoundingBox& Collision::Node::getBox | ( | ) | const [inline] |
Definition at line 68 of file collisionModel.h.
double Collision::Node::getBoxVolume | ( | ) | const [inline] |
Definition at line 69 of file collisionModel.h.
void Collision::Node::getBVRecurse | ( | int | currentDepth, | |
int | desiredDepth, | |||
std::vector< BoundingBox > * | bvs | |||
) | [virtual] |
Reimplemented in Collision::Branch.
Definition at line 420 of file collisionModel.cpp.
virtual bool Collision::Node::isLeaf | ( | ) | const [pure virtual] |
Implemented in Collision::Leaf, and Collision::Branch.
virtual void Collision::Node::mark | ( | bool | m | ) | const [inline, virtual] |
Definition at line 73 of file collisionModel.h.
virtual void Collision::Node::markRecurse | ( | bool | m | ) | const [inline, virtual] |
Reimplemented in Collision::Branch.
Definition at line 72 of file collisionModel.h.
virtual Branch* Collision::Node::split | ( | ) | [inline, virtual] |
Reimplemented in Collision::Leaf.
Definition at line 65 of file collisionModel.h.
BoundingBox Collision::Node::mBbox [protected] |
Definition at line 59 of file collisionModel.h.