$search
#include <object.h>
Public Types | |
enum | Type { PLANE = 1, ALIGNED_BOUNDING_BOX = 2, GENERAL_BOUNDING_BOX = 3 } |
Public Member Functions | |
virtual bool | fitsIntoBox (const Box &box) const =0 |
bool | hasId () const |
unsigned int | id () const |
unsigned int | inNodesCount () const |
virtual bool | interfereWithBox (const Box &box) const =0 |
virtual bool | isPointInside (float x, float y, float z) const =0 |
virtual bool | isSimilar (const Object *object) const =0 |
void | newNode (Node *node) |
Object () | |
void | removeNode (Node *node) |
void | setId (unsigned int id) |
Type | type () const |
~Object () | |
Protected Attributes | |
Type | m_type |
Private Attributes | |
unsigned int | m_id |
std::list< Node * > | m_inNodes |
Abstract object class. Base class for all objects saved in octree.
Definition at line 45 of file object.h.
objtree::Object::Object | ( | ) |
A constructor.
Definition at line 37 of file object.cpp.
objtree::Object::~Object | ( | ) |
A destructor. Removes object from octree.
Definition at line 49 of file object.cpp.
virtual bool objtree::Object::fitsIntoBox | ( | const Box & | box | ) | const [pure virtual] |
Implemented in objtree::BBox, and objtree::Plane.
bool objtree::Object::hasId | ( | ) | const |
Returns true if object has an id.
Definition at line 86 of file object.cpp.
unsigned int objtree::Object::id | ( | void | ) | const |
unsigned int objtree::Object::inNodesCount | ( | ) | const |
Returns number of occupied nodes.
Definition at line 122 of file object.cpp.
virtual bool objtree::Object::interfereWithBox | ( | const Box & | box | ) | const [pure virtual] |
Implemented in objtree::BBox, and objtree::Plane.
virtual bool objtree::Object::isPointInside | ( | float | x, | |
float | y, | |||
float | z | |||
) | const [pure virtual] |
Implemented in objtree::BBox, and objtree::Plane.
virtual bool objtree::Object::isSimilar | ( | const Object * | object | ) | const [pure virtual] |
Implemented in objtree::BBox, objtree::GBBox, and objtree::Plane.
void objtree::Object::newNode | ( | Node * | node | ) |
Informs object it is include in a new node.
pointer | to node |
Definition at line 104 of file object.cpp.
void objtree::Object::removeNode | ( | Node * | node | ) |
Informs object it is removed from node.
pointer | to node |
Definition at line 113 of file object.cpp.
void objtree::Object::setId | ( | unsigned int | id | ) |
Object::Type objtree::Object::type | ( | ) | const |
unsigned int objtree::Object::m_id [private] |
std::list<Node*> objtree::Object::m_inNodes [private] |
Type objtree::Object::m_type [protected] |