Simox  2.3.50
VirtualRobot::VoxelTree6D< T > Class Template Reference

Public Member Functions

 VoxelTree6D (float minExtend[6], float maxExtend[6], float discretizationTransl, float discretizationRot, bool verbose=false)
 
virtual ~VoxelTree6D ()
 
bool setEntry (float pos[6], const T &e)
 
T * getEntry (float pos[6])
 

Protected Attributes

float minExtend [6]
 
float maxExtend [6]
 
int maxLevels
 
bool verbose
 
VoxelTree6DElement< T > * root
 

Constructor & Destructor Documentation

template<typename T >
VirtualRobot::VoxelTree6D< T >::VoxelTree6D ( float  minExtend[6],
float  maxExtend[6],
float  discretizationTransl,
float  discretizationRot,
bool  verbose = false 
)
inline
template<typename T >
virtual VirtualRobot::VoxelTree6D< T >::~VoxelTree6D ( )
inlinevirtual

Member Function Documentation

template<typename T >
T* VirtualRobot::VoxelTree6D< T >::getEntry ( float  pos[6])
inline

Returns entry at pos. If pos is outside the workspace representation or no data stored at pos, NULL is returned.

template<typename T >
bool VirtualRobot::VoxelTree6D< T >::setEntry ( float  pos[6],
const T &  e 
)
inline

Store entry to this voxel grid. Creates a leaf if necessary. Existing entries are silently overwritten. A copy of e is created.

Field Documentation

template<typename T >
float VirtualRobot::VoxelTree6D< T >::maxExtend[6]
protected
template<typename T >
int VirtualRobot::VoxelTree6D< T >::maxLevels
protected
template<typename T >
float VirtualRobot::VoxelTree6D< T >::minExtend[6]
protected
template<typename T >
VoxelTree6DElement<T>* VirtualRobot::VoxelTree6D< T >::root
protected
template<typename T >
bool VirtualRobot::VoxelTree6D< T >::verbose
protected