#include <aabb_binary_tree.h>
Public Types | |
typedef AABBBinaryTreeIndex < OBJTYPE, SCALARTYPE, NODEAUXDATA > | ClassType |
typedef Point3< ScalarType > | CoordType |
typedef NODEAUXDATA | NodeAuxData |
typedef ObjType * | ObjPtr |
typedef OBJTYPE | ObjType |
typedef SCALARTYPE | ScalarType |
typedef AABBBinaryTree < ObjType, ScalarType, NodeAuxData > | TreeType |
Public Member Functions | |
template<class OBJRAYISECTFUNCTOR , class OBJMARKER > | |
ObjPtr | DoRay (OBJRAYISECTFUNCTOR &_rayIntersector, OBJMARKER &_marker, const Ray3< ScalarType > &_ray, const ScalarType &_maxDist, ScalarType &_t) |
void | FrustumCull (const Plane3< ScalarType > _frustumPlanes[6], const unsigned int _minNodeObjectsCount) |
template<class OBJPOINTDISTFUNCTOR , class OBJMARKER > | |
ObjPtr | GetClosest (OBJPOINTDISTFUNCTOR &_getPointDistance, OBJMARKER &_marker, const typename OBJPOINTDISTFUNCTOR::QueryType &_p, const ScalarType &_maxDist, ScalarType &_minDist, CoordType &_closestPt) |
template<class OBJPOINTDISTFUNCTOR , class OBJMARKER , class OBJPTRCONTAINER , class DISTCONTAINER , class POINTCONTAINER > | |
unsigned int | GetKClosest (OBJPOINTDISTFUNCTOR &_getPointDistance, OBJMARKER &_marker, const unsigned int _k, const CoordType &_p, const ScalarType &_maxDist, OBJPTRCONTAINER &_objectPtrs, DISTCONTAINER &_distances, POINTCONTAINER &_points) |
void | InitializeFrustumCull (void) |
template<class OBJITERATOR , class OBJITERATORPTRFUNCT , class OBJBOXFUNCT , class OBJBARYCENTERFUNCT > | |
bool | Set (const OBJITERATOR &_oBegin, const OBJITERATOR &_oEnd, OBJITERATORPTRFUNCT &_objPtr, OBJBOXFUNCT &_objBox, OBJBARYCENTERFUNCT &_objBarycenter, const unsigned int _maxElemsPerLeaf=1, const ScalarType &_leafBoxMaxVolume=((ScalarType) 0), const bool _useVariance=true) |
template<class OBJITER > | |
void | Set (const OBJITER &_oBegin, const OBJITER &_oEnd) |
const TreeType & | Tree (void) const |
TreeType & | Tree (void) |
Protected Attributes | |
TreeType | tree |
Definition at line 58 of file aabb_binary_tree.h.
typedef AABBBinaryTreeIndex<OBJTYPE, SCALARTYPE, NODEAUXDATA> vcg::AABBBinaryTreeIndex< OBJTYPE, SCALARTYPE, NODEAUXDATA >::ClassType |
Reimplemented from vcg::SpatialIndex< OBJTYPE, SCALARTYPE >.
Definition at line 60 of file aabb_binary_tree.h.
typedef Point3<ScalarType> vcg::AABBBinaryTreeIndex< OBJTYPE, SCALARTYPE, NODEAUXDATA >::CoordType |
Reimplemented from vcg::SpatialIndex< OBJTYPE, SCALARTYPE >.
Definition at line 65 of file aabb_binary_tree.h.
typedef NODEAUXDATA vcg::AABBBinaryTreeIndex< OBJTYPE, SCALARTYPE, NODEAUXDATA >::NodeAuxData |
Definition at line 63 of file aabb_binary_tree.h.
typedef ObjType* vcg::AABBBinaryTreeIndex< OBJTYPE, SCALARTYPE, NODEAUXDATA >::ObjPtr |
Reimplemented from vcg::SpatialIndex< OBJTYPE, SCALARTYPE >.
Definition at line 64 of file aabb_binary_tree.h.
typedef OBJTYPE vcg::AABBBinaryTreeIndex< OBJTYPE, SCALARTYPE, NODEAUXDATA >::ObjType |
Reimplemented from vcg::SpatialIndex< OBJTYPE, SCALARTYPE >.
Definition at line 61 of file aabb_binary_tree.h.
typedef SCALARTYPE vcg::AABBBinaryTreeIndex< OBJTYPE, SCALARTYPE, NODEAUXDATA >::ScalarType |
Reimplemented from vcg::SpatialIndex< OBJTYPE, SCALARTYPE >.
Definition at line 62 of file aabb_binary_tree.h.
typedef AABBBinaryTree<ObjType, ScalarType, NodeAuxData> vcg::AABBBinaryTreeIndex< OBJTYPE, SCALARTYPE, NODEAUXDATA >::TreeType |
Definition at line 66 of file aabb_binary_tree.h.
ObjPtr vcg::AABBBinaryTreeIndex< OBJTYPE, SCALARTYPE, NODEAUXDATA >::DoRay | ( | OBJRAYISECTFUNCTOR & | _rayIntersector, | |
OBJMARKER & | _marker, | |||
const Ray3< ScalarType > & | _ray, | |||
const ScalarType & | _maxDist, | |||
ScalarType & | _t | |||
) | [inline] |
Reimplemented from vcg::SpatialIndex< OBJTYPE, SCALARTYPE >.
Definition at line 114 of file aabb_binary_tree.h.
void vcg::AABBBinaryTreeIndex< OBJTYPE, SCALARTYPE, NODEAUXDATA >::FrustumCull | ( | const Plane3< ScalarType > | _frustumPlanes[6], | |
const unsigned int | _minNodeObjectsCount | |||
) | [inline] |
Definition at line 123 of file aabb_binary_tree.h.
ObjPtr vcg::AABBBinaryTreeIndex< OBJTYPE, SCALARTYPE, NODEAUXDATA >::GetClosest | ( | OBJPOINTDISTFUNCTOR & | _getPointDistance, | |
OBJMARKER & | _marker, | |||
const typename OBJPOINTDISTFUNCTOR::QueryType & | _p, | |||
const ScalarType & | _maxDist, | |||
ScalarType & | _minDist, | |||
CoordType & | _closestPt | |||
) | [inline] |
Definition at line 97 of file aabb_binary_tree.h.
unsigned int vcg::AABBBinaryTreeIndex< OBJTYPE, SCALARTYPE, NODEAUXDATA >::GetKClosest | ( | OBJPOINTDISTFUNCTOR & | _getPointDistance, | |
OBJMARKER & | _marker, | |||
const unsigned int | _k, | |||
const CoordType & | _p, | |||
const ScalarType & | _maxDist, | |||
OBJPTRCONTAINER & | _objectPtrs, | |||
DISTCONTAINER & | _distances, | |||
POINTCONTAINER & | _points | |||
) | [inline] |
Reimplemented from vcg::SpatialIndex< OBJTYPE, SCALARTYPE >.
Definition at line 106 of file aabb_binary_tree.h.
void vcg::AABBBinaryTreeIndex< OBJTYPE, SCALARTYPE, NODEAUXDATA >::InitializeFrustumCull | ( | void | ) | [inline] |
Definition at line 119 of file aabb_binary_tree.h.
bool vcg::AABBBinaryTreeIndex< OBJTYPE, SCALARTYPE, NODEAUXDATA >::Set | ( | const OBJITERATOR & | _oBegin, | |
const OBJITERATOR & | _oEnd, | |||
OBJITERATORPTRFUNCT & | _objPtr, | |||
OBJBOXFUNCT & | _objBox, | |||
OBJBARYCENTERFUNCT & | _objBarycenter, | |||
const unsigned int | _maxElemsPerLeaf = 1 , |
|||
const ScalarType & | _leafBoxMaxVolume = ((ScalarType)0) , |
|||
const bool | _useVariance = true | |||
) | [inline] |
Definition at line 92 of file aabb_binary_tree.h.
void vcg::AABBBinaryTreeIndex< OBJTYPE, SCALARTYPE, NODEAUXDATA >::Set | ( | const OBJITER & | _oBegin, | |
const OBJITER & | _oEnd | |||
) | [inline] |
Reimplemented from vcg::SpatialIndex< OBJTYPE, SCALARTYPE >.
Definition at line 77 of file aabb_binary_tree.h.
const TreeType& vcg::AABBBinaryTreeIndex< OBJTYPE, SCALARTYPE, NODEAUXDATA >::Tree | ( | void | ) | const [inline] |
Definition at line 72 of file aabb_binary_tree.h.
TreeType& vcg::AABBBinaryTreeIndex< OBJTYPE, SCALARTYPE, NODEAUXDATA >::Tree | ( | void | ) | [inline] |
Definition at line 68 of file aabb_binary_tree.h.
TreeType vcg::AABBBinaryTreeIndex< OBJTYPE, SCALARTYPE, NODEAUXDATA >::tree [protected] |
Definition at line 128 of file aabb_binary_tree.h.