Simox  2.3.74.0
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

◆ VoxelTree6D()

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

◆ ~VoxelTree6D()

template<typename T >
virtual VirtualRobot::VoxelTree6D< T >::~VoxelTree6D ( )
inlinevirtual

Member Function Documentation

◆ getEntry()

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.

◆ setEntry()

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

◆ maxExtend

template<typename T >
float VirtualRobot::VoxelTree6D< T >::maxExtend[6]
protected

◆ maxLevels

template<typename T >
int VirtualRobot::VoxelTree6D< T >::maxLevels
protected

◆ minExtend

template<typename T >
float VirtualRobot::VoxelTree6D< T >::minExtend[6]
protected

◆ root

template<typename T >
VoxelTree6DElement<T>* VirtualRobot::VoxelTree6D< T >::root
protected

◆ verbose

template<typename T >
bool VirtualRobot::VoxelTree6D< T >::verbose
protected