![]() |
Public API Reference |
#include <kdtree.h>
Public Methods | |
| void | AddLeaf (csKDTree *leaf) |
| Physically add a leaf to this child. More... | |
| void | RemoveLeaf (int idx) |
| Physically remove a leaf from this child. More... | |
| void | RemoveLeaf (csKDTree *leaf) |
| Physically remove a leaf from this child. More... | |
| void | ReplaceLeaf (csKDTree *old_leaf, csKDTree *new_leaf) |
| Replace a leaf with another one. More... | |
| int | FindLeaf (csKDTree *leaf) |
| Find leaf. More... | |
| const csBox3 & | GetBBox () const |
| Get the bounding box of this object. More... | |
| void * | GetObject () const |
| Get the pointer to the black box object. More... | |
Friends | |
| class | csKDTree |
Definition at line 59 of file kdtree.h.
|
|
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. |