csKDTreeChild Class Reference
A child in the KD-tree (usually some object). More...
#include <kdtree.h>
Public Methods | |
void | AddLeaf (csKDTree *leaf) |
Physically add a leaf to this child. | |
void | RemoveLeaf (int idx) |
Physically remove a leaf from this child. | |
void | RemoveLeaf (csKDTree *leaf) |
Physically remove a leaf from this child. | |
void | ReplaceLeaf (csKDTree *old_leaf, csKDTree *new_leaf) |
Replace a leaf with another one. | |
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. |
Detailed Description
A child in the KD-tree (usually some object).
Definition at line 60 of file kdtree.h.
Member Function Documentation
|
Physically add a leaf to this child.
|
|
Find leaf.
|
|
Get the bounding box of this object.
|
|
Get the pointer to the black box object.
|
|
Physically remove a leaf from this child.
|
|
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.2.18