Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
tesseract_collision::FLOAT_MATH::MyVertexIndex Class Reference
Inheritance diagram for tesseract_collision::FLOAT_MATH::MyVertexIndex:
Inheritance graph
[legend]
Collaboration diagram for tesseract_collision::FLOAT_MATH::MyVertexIndex:
Collaboration graph
[legend]

Public Member Functions

 MyVertexIndex (double granularity, bool snapToGrid)
 
 MyVertexIndex (float granularity, bool snapToGrid)
 
virtual ~MyVertexIndex (void)
 
double snapToGrid (double p)
 
float snapToGrid (float p)
 
uint32_t getIndex (const float *_p, bool &newPos) override
 
uint32_t getIndex (const double *_p, bool &newPos) override
 
const float * getVerticesFloat (void) const override
 
const double * getVerticesDouble (void) const override
 
const float * getVertexFloat (uint32_t index) const override
 
const double * getVertexDouble (uint32_t index) const override
 
uint32_t getVcount (void) const override
 
bool isDouble (void) const override
 
bool saveAsObj (const char *fname, uint32_t tcount, uint32_t *indices) override
 
- Public Member Functions inherited from tesseract_collision::FLOAT_MATH::fm_VertexIndex
virtual ~fm_VertexIndex ()=default
 
virtual uint32_t getIndex (const float pos[3], bool &newPos)=0
 
virtual uint32_t getIndex (const double pos[3], bool &newPos)=0
 
virtual const float * getVerticesFloat (void) const =0
 
virtual const double * getVerticesDouble (void) const =0
 
virtual const float * getVertexFloat (uint32_t index) const =0
 
virtual const double * getVertexDouble (uint32_t index) const =0
 
virtual uint32_t getVcount (void) const =0
 
virtual bool isDouble (void) const =0
 
virtual bool saveAsObj (const char *fname, uint32_t tcount, uint32_t *indices)=0
 

Private Attributes

bool mUseDouble:1
 
bool mSnapToGrid:1
 
double mDoubleGranularity
 
float mFloatGranularity
 
VERTEX_INDEX::KdTree mKdTree
 

Constructor & Destructor Documentation

◆ MyVertexIndex() [1/2]

tesseract_collision::FLOAT_MATH::MyVertexIndex::MyVertexIndex ( double  granularity,
bool  snapToGrid 
)
inline

◆ MyVertexIndex() [2/2]

tesseract_collision::FLOAT_MATH::MyVertexIndex::MyVertexIndex ( float  granularity,
bool  snapToGrid 
)
inline

◆ ~MyVertexIndex()

virtual tesseract_collision::FLOAT_MATH::MyVertexIndex::~MyVertexIndex ( void  )
inlinevirtual

Member Function Documentation

◆ getIndex() [1/2]

uint32_t tesseract_collision::FLOAT_MATH::MyVertexIndex::getIndex ( const double *  _p,
bool &  newPos 
)
inlineoverride

◆ getIndex() [2/2]

uint32_t tesseract_collision::FLOAT_MATH::MyVertexIndex::getIndex ( const float *  _p,
bool &  newPos 
)
inlineoverride

◆ getVcount()

uint32_t tesseract_collision::FLOAT_MATH::MyVertexIndex::getVcount ( void  ) const
inlineoverridevirtual

◆ getVertexDouble()

const double * tesseract_collision::FLOAT_MATH::MyVertexIndex::getVertexDouble ( uint32_t  index) const
inlineoverridevirtual

◆ getVertexFloat()

const float * tesseract_collision::FLOAT_MATH::MyVertexIndex::getVertexFloat ( uint32_t  index) const
inlineoverridevirtual

◆ getVerticesDouble()

const double * tesseract_collision::FLOAT_MATH::MyVertexIndex::getVerticesDouble ( void  ) const
inlineoverridevirtual

◆ getVerticesFloat()

const float * tesseract_collision::FLOAT_MATH::MyVertexIndex::getVerticesFloat ( void  ) const
inlineoverridevirtual

◆ isDouble()

bool tesseract_collision::FLOAT_MATH::MyVertexIndex::isDouble ( void  ) const
inlineoverridevirtual

◆ saveAsObj()

bool tesseract_collision::FLOAT_MATH::MyVertexIndex::saveAsObj ( const char *  fname,
uint32_t  tcount,
uint32_t *  indices 
)
inlineoverridevirtual

◆ snapToGrid() [1/2]

double tesseract_collision::FLOAT_MATH::MyVertexIndex::snapToGrid ( double  p)
inline

◆ snapToGrid() [2/2]

float tesseract_collision::FLOAT_MATH::MyVertexIndex::snapToGrid ( float  p)
inline

Member Data Documentation

◆ mDoubleGranularity

double tesseract_collision::FLOAT_MATH::MyVertexIndex::mDoubleGranularity
private

◆ mFloatGranularity

float tesseract_collision::FLOAT_MATH::MyVertexIndex::mFloatGranularity
private

◆ mKdTree

VERTEX_INDEX::KdTree tesseract_collision::FLOAT_MATH::MyVertexIndex::mKdTree
private

◆ mSnapToGrid

bool tesseract_collision::FLOAT_MATH::MyVertexIndex::mSnapToGrid
private

◆ mUseDouble

bool tesseract_collision::FLOAT_MATH::MyVertexIndex::mUseDouble
private

The documentation for this class was generated from the following file: