csKDTreeChild Class Reference
[Geometry utilities]
A child in the KD-tree (usually some object).
More...
#include <csgeom/kdtree.h>
Public Member Functions | |
void | AddLeaf (csKDTree *leaf) |
Physically add a leaf to this child. | |
int | FindLeaf (csKDTree *leaf) |
Find leaf. | |
const csBox3 & | GetBBox () const |
Get the bounding box of this object. | |
void * | GetObject () const |
Get the pointer to the black box object. | |
void | RemoveLeaf (csKDTree *leaf) |
Physically remove a leaf from this child. | |
void | RemoveLeaf (int idx) |
Physically remove a leaf from this child. | |
void | ReplaceLeaf (csKDTree *old_leaf, csKDTree *new_leaf) |
Replace a leaf with another one. | |
Public Attributes | |
uint32 | timestamp |
Friends | |
class | csKDTree |
Detailed Description
A child in the KD-tree (usually some object).
Definition at line 95 of file kdtree.h.
Member Function Documentation
void csKDTreeChild::AddLeaf | ( | csKDTree * | leaf | ) |
Physically add a leaf to this child.
int csKDTreeChild::FindLeaf | ( | csKDTree * | leaf | ) |
Find leaf.
const csBox3& csKDTreeChild::GetBBox | ( | ) | const [inline] |
void* csKDTreeChild::GetObject | ( | ) | const [inline] |
void csKDTreeChild::RemoveLeaf | ( | csKDTree * | leaf | ) |
Physically remove a leaf from this child.
void csKDTreeChild::RemoveLeaf | ( | int | idx | ) |
Physically remove a leaf from this child.
Replace a leaf with another one.
This is more efficient than doing RemoveLeaf/AddLeaf and it is useful in many cases where you want to move a child in the tree.
The documentation for this class was generated from the following file:
- csgeom/kdtree.h
Generated for Crystal Space by doxygen 1.4.7