HDK
|
#include <UT_SpatialTree.h>
Classes | |
class | NodeIterator |
Public Member Functions | |
UT_SpatialTree (S *subd_strategy, B *bounds_provider, const fpreal *min, const fpreal *max) | |
UT_SpatialTree (S *subd_strategy, B *bounds_provider) | |
~UT_SpatialTree () | |
Destructor. More... | |
void | addObject (T object) |
Add the specified object to the tree. More... | |
const B * | getBoundsProvider () const |
Returns the bounds provider used by this tree. More... | |
template<class A > | |
void | getObjects (const fpreal *pt, UT_ValArray< T > &objects, const A &accepter) const |
void | getObjects (const fpreal *pt, UT_ValArray< T > &objects) const |
template<class A > | |
int | getObjects (const fpreal *pt, UT_ValArray< T > &objects, UT_FloatArray &distances2, fpreal radius, int max_objects, const A &accepter) const |
int | getObjects (const fpreal *pt, UT_ValArray< T > &objects, UT_FloatArray &distances2, fpreal radius, int max_objects) const |
const S * | getSubdivisionStrategy () const |
Returns the subdivision strategy used by this tree. More... | |
void | dump (std::ostream &os) |
NodeIterator | begin () const |
NodeIterator | leaf_end () const |
Static Public Member Functions | |
static int | getMaxDimensions () |
Return the maximum number of dimensions allowed. More... | |
Definition at line 76 of file UT_SpatialTree.h.
UT_SpatialTree< T, S, B, N >::UT_SpatialTree | ( | S * | subd_strategy, |
B * | bounds_provider, | ||
const fpreal * | min, | ||
const fpreal * | max | ||
) |
Construct a tree with the specified subdivision strategy (subd_strategy must not be null), the bounds provider (must not be null), the specified bounds (min/max), and with the specified dimensions.
Definition at line 459 of file UT_SpatialTree.h.
UT_SpatialTree< T, S, B, N >::UT_SpatialTree | ( | S * | subd_strategy, |
B * | bounds_provider | ||
) |
Construct a tree with the specified subdivision strategy (subd_strategy must not be null), the specified bounds provider (must not be null), and with the specified dimensions.
Definition at line 476 of file UT_SpatialTree.h.
UT_SpatialTree< T, S, B, N >::~UT_SpatialTree | ( | ) |
Destructor.
Definition at line 490 of file UT_SpatialTree.h.
void UT_SpatialTree< T, S, B, N >::addObject | ( | T | object | ) |
Add the specified object to the tree.
Definition at line 497 of file UT_SpatialTree.h.
|
inline |
Definition at line 270 of file UT_SpatialTree.h.
|
inline |
Definition at line 177 of file UT_SpatialTree.h.
|
inline |
Returns the bounds provider used by this tree.
Definition at line 104 of file UT_SpatialTree.h.
|
inlinestatic |
Return the maximum number of dimensions allowed.
Definition at line 107 of file UT_SpatialTree.h.
void UT_SpatialTree< T, S, B, N >::getObjects | ( | const fpreal * | pt, |
UT_ValArray< T > & | objects, | ||
const A & | accepter | ||
) | const |
Return the objects in the tree whose bounds contain the specified point. Objects are returned in the supplied array.
Definition at line 758 of file UT_SpatialTree.h.
|
inline |
Definition at line 117 of file UT_SpatialTree.h.
int UT_SpatialTree< T, S, B, N >::getObjects | ( | const fpreal * | pt, |
UT_ValArray< T > & | objects, | ||
UT_FloatArray & | distances2, | ||
fpreal | radius, | ||
int | max_objects, | ||
const A & | accepter | ||
) | const |
Return the objects in the tree whose bounds are withing the specified radius of the specified point.
Definition at line 802 of file UT_SpatialTree.h.
|
inline |
Definition at line 135 of file UT_SpatialTree.h.
|
inline |
Returns the subdivision strategy used by this tree.
Definition at line 148 of file UT_SpatialTree.h.
|
inline |
Definition at line 275 of file UT_SpatialTree.h.