![]() |
Public API Reference |
![]() |
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 (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. | |
Friends | |
class | csKDTree |
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 | ( | int | idx | ) |
Physically remove a leaf from this child.
void csKDTreeChild::RemoveLeaf | ( | csKDTree * | leaf | ) |
Physically remove a leaf from this child.
void csKDTreeChild::ReplaceLeaf | ( | csKDTree * | old_leaf, |
csKDTree * | new_leaf | ||
) |
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.