Simox  2.3.50
VirtualRobot::WorkspaceData Class Referenceabstract
Inheritance diagram for VirtualRobot::WorkspaceData:
VirtualRobot::WorkspaceDataArray

Public Member Functions

virtual ~WorkspaceData ()
 
virtual unsigned int getSizeTr () const =0
 Return the amount of data in bytes. More...
 
virtual unsigned int getSizeRot () const =0
 
virtual void setDatum (float x[], unsigned char value, const WorkspaceRepresentation *workspace)=0
 
virtual void setDatum (unsigned int x0, unsigned int x1, unsigned int x2, unsigned int x3, unsigned int x4, unsigned int x5, unsigned char value)=0
 
virtual void setDatum (unsigned int x[6], unsigned char value)=0
 
virtual void setDatumCheckNeighbors (unsigned int x[6], unsigned char value, unsigned int neighborVoxels)=0
 
virtual void increaseDatum (float x[], const WorkspaceRepresentation *workspace)=0
 
virtual void setDataRot (unsigned char *data, unsigned int x, unsigned int y, unsigned int z)=0
 
virtual const unsigned char * getDataRot (unsigned int x, unsigned int y, unsigned int z)=0
 
virtual bool hasEntry (unsigned int x, unsigned int y, unsigned int z)=0
 
virtual unsigned char get (float x[], const WorkspaceRepresentation *workspace)=0
 
virtual unsigned char get (unsigned int x0, unsigned int x1, unsigned int x2, unsigned int x3, unsigned int x4, unsigned int x5)=0
 Simulates a multi-dimensional array access. More...
 
virtual unsigned char get (unsigned int x[6])=0
 Simulates a multi-dimensional array access. More...
 
virtual void clear ()=0
 
virtual void binarize ()=0
 
virtual void bisectData ()=0
 
virtual unsigned int getSize (int dim)=0
 
virtual unsigned char ** getRawData ()=0
 
virtual WorkspaceDataclone ()=0
 
virtual bool save (std::ofstream &file)=0
 
virtual void setVoxelFilledCount (int c)
 
virtual unsigned char getMaxEntry ()
 
virtual void setMaxEntry (unsigned char m)
 
virtual unsigned int getVoxelFilledCount () const
 
virtual void setMinValidValue (unsigned char v)
 Min valid value is 1 by default. In cases some values are needed to indicate special flags (e.g. stability) the minimum valid number can be set here. More...
 

Protected Attributes

unsigned char minValidValue
 
unsigned char maxEntry
 
unsigned int voxelFilledCount
 
bool adjustOnOverflow
 

Detailed Description

Stores a 6-dimensional array for the vertex data of a workspace representation. Internally unsigned char data types are used (0...255)

Constructor & Destructor Documentation

VirtualRobot::WorkspaceData::~WorkspaceData ( )
inlinevirtual

Member Function Documentation

void VirtualRobot::WorkspaceData::binarize ( )
pure virtual
void VirtualRobot::WorkspaceData::bisectData ( )
pure virtual
void VirtualRobot::WorkspaceData::clear ( )
pure virtual
virtual WorkspaceData* VirtualRobot::WorkspaceData::clone ( )
pure virtual
virtual unsigned char VirtualRobot::WorkspaceData::get ( float  x[],
const WorkspaceRepresentation workspace 
)
pure virtual
virtual unsigned char VirtualRobot::WorkspaceData::get ( unsigned int  x0,
unsigned int  x1,
unsigned int  x2,
unsigned int  x3,
unsigned int  x4,
unsigned int  x5 
)
pure virtual

Simulates a multi-dimensional array access.

Implemented in VirtualRobot::WorkspaceDataArray.

virtual unsigned char VirtualRobot::WorkspaceData::get ( unsigned int  x[6])
pure virtual

Simulates a multi-dimensional array access.

Implemented in VirtualRobot::WorkspaceDataArray.

const unsigned char * VirtualRobot::WorkspaceData::getDataRot ( unsigned int  x,
unsigned int  y,
unsigned int  z 
)
pure virtual

Get rotation data for given x,y,z position.

Implemented in VirtualRobot::WorkspaceDataArray.

unsigned char VirtualRobot::WorkspaceData::getMaxEntry ( )
inlinevirtual
virtual unsigned char** VirtualRobot::WorkspaceData::getRawData ( )
pure virtual
virtual unsigned int VirtualRobot::WorkspaceData::getSize ( int  dim)
pure virtual
unsigned int VirtualRobot::WorkspaceData::getSizeRot ( ) const
pure virtual
unsigned int VirtualRobot::WorkspaceData::getSizeTr ( ) const
pure virtual

Return the amount of data in bytes.

Implemented in VirtualRobot::WorkspaceDataArray.

unsigned int VirtualRobot::WorkspaceData::getVoxelFilledCount ( ) const
inlinevirtual
bool VirtualRobot::WorkspaceData::hasEntry ( unsigned int  x,
unsigned int  y,
unsigned int  z 
)
pure virtual
virtual void VirtualRobot::WorkspaceData::increaseDatum ( float  x[],
const WorkspaceRepresentation workspace 
)
pure virtual
virtual bool VirtualRobot::WorkspaceData::save ( std::ofstream &  file)
pure virtual
void VirtualRobot::WorkspaceData::setDataRot ( unsigned char *  data,
unsigned int  x,
unsigned int  y,
unsigned int  z 
)
pure virtual

virtual void increaseDatum( unsigned int x0, unsigned int x1, unsigned int x2, unsigned int x3, unsigned int x4, unsigned int x5) = 0;

virtual void increaseDatum( unsigned int x[6] ) = 0;

Set rotation data for given x,y,z position.

Implemented in VirtualRobot::WorkspaceDataArray.

virtual void VirtualRobot::WorkspaceData::setDatum ( float  x[],
unsigned char  value,
const WorkspaceRepresentation workspace 
)
pure virtual
virtual void VirtualRobot::WorkspaceData::setDatum ( unsigned int  x0,
unsigned int  x1,
unsigned int  x2,
unsigned int  x3,
unsigned int  x4,
unsigned int  x5,
unsigned char  value 
)
pure virtual
virtual void VirtualRobot::WorkspaceData::setDatum ( unsigned int  x[6],
unsigned char  value 
)
pure virtual
void VirtualRobot::WorkspaceData::setDatumCheckNeighbors ( unsigned int  x[6],
unsigned char  value,
unsigned int  neighborVoxels 
)
pure virtual
virtual void VirtualRobot::WorkspaceData::setMaxEntry ( unsigned char  m)
inlinevirtual
void VirtualRobot::WorkspaceData::setMinValidValue ( unsigned char  v)
inlinevirtual

Min valid value is 1 by default. In cases some values are needed to indicate special flags (e.g. stability) the minimum valid number can be set here.

virtual void VirtualRobot::WorkspaceData::setVoxelFilledCount ( int  c)
inlinevirtual

Field Documentation

bool VirtualRobot::WorkspaceData::adjustOnOverflow
protected
unsigned char VirtualRobot::WorkspaceData::maxEntry
protected
unsigned char VirtualRobot::WorkspaceData::minValidValue
protected
unsigned int VirtualRobot::WorkspaceData::voxelFilledCount
protected