![]() |
Public API Reference |
![]() |
A child in the KD-tree (usually some object). More...
#include <csgeom/kdtreex.h>
Public Member Functions | |
void | AddLeaf (KDTree *leaf) |
Physically add a leaf to this child. | |
int | FindLeaf (KDTree *leaf) |
Find leaf. | |
const csSphere & | GetBSphere () 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 (KDTree *leaf) |
Physically remove a leaf from this child. | |
void | ReplaceLeaf (KDTree *old_leaf, KDTree *new_leaf) |
Replace a leaf with another one. |
void CS::Geometry::KDTreeChild::AddLeaf | ( | KDTree * | leaf | ) |
Physically add a leaf to this child.
int CS::Geometry::KDTreeChild::FindLeaf | ( | KDTree * | leaf | ) |
Find leaf.
const csSphere& CS::Geometry::KDTreeChild::GetBSphere | ( | ) | const [inline] |
void* CS::Geometry::KDTreeChild::GetObject | ( | ) | const [inline] |
void CS::Geometry::KDTreeChild::RemoveLeaf | ( | int | idx | ) |
Physically remove a leaf from this child.
void CS::Geometry::KDTreeChild::RemoveLeaf | ( | KDTree * | leaf | ) |
Physically remove a leaf from this child.
void CS::Geometry::KDTreeChild::ReplaceLeaf | ( | KDTree * | old_leaf, |
KDTree * | 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.