Simox
2.3.74.0
|
Public Member Functions | |
WorkspaceDataArray (unsigned int size1, unsigned int size2, unsigned int size3, unsigned int size4, unsigned int size5, unsigned int size6, bool adjustOnOverflow) | |
WorkspaceDataArray (WorkspaceDataArray *other) | |
Clone other data structure. More... | |
WorkspaceDataArray (std::ofstream &file) | |
create Workspace out of file More... | |
~WorkspaceDataArray () override | |
unsigned int | getSizeTr () const override |
Return the amount of data in bytes. More... | |
unsigned int | getSizeRot () const override |
void | setDatum (float x[], unsigned char value, const WorkspaceRepresentation *workspace) override |
void | setDatum (unsigned int x0, unsigned int x1, unsigned int x2, unsigned int x3, unsigned int x4, unsigned int x5, unsigned char value) override |
void | setDatum (unsigned int x[6], unsigned char value) override |
void | setDatumCheckNeighbors (unsigned int x[6], unsigned char value, unsigned int neighborVoxels) override |
void | increaseDatum (float x[], const WorkspaceRepresentation *workspace) override |
void | increaseDatum (unsigned int x0, unsigned int x1, unsigned int x2, unsigned int x3, unsigned int x4, unsigned int x5) |
void | increaseDatum (unsigned int x[6]) |
void | setDataRot (unsigned char *data, unsigned int x, unsigned int y, unsigned int z) override |
const unsigned char * | getDataRot (unsigned int x, unsigned int y, unsigned int z) override |
unsigned char | get (float x[], const WorkspaceRepresentation *workspace) override |
int | getMaxSummedAngleReachablity () |
unsigned char | get (unsigned int x0, unsigned int x1, unsigned int x2, unsigned int x3, unsigned int x4, unsigned int x5) override |
Simulates a multi-dimensional array access. More... | |
unsigned char | get (unsigned int x[6]) override |
Simulates a multi-dimensional array access. More... | |
bool | hasEntry (unsigned int x, unsigned int y, unsigned int z) override |
void | clear () override |
void | binarize () override |
void | bisectData () override |
unsigned int | getSize (int dim) override |
unsigned char ** | getRawData () override |
WorkspaceData * | clone () override |
bool | save (std::ofstream &file) override |
void | reset (int x, int y, int z) override |
Public Member Functions inherited from VirtualRobot::WorkspaceData | |
virtual | ~WorkspaceData () |
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 Member Functions | |
void | ensureData (unsigned int x, unsigned int y, unsigned int z) |
int | sumAngleReachabilities (int x0, int x1, int x2) |
void | getPos (unsigned int x0, unsigned int x1, unsigned int x2, unsigned int x3, unsigned int x4, unsigned int x5, unsigned int &storePosTr, unsigned int &storePosRot) const |
void | getPos (unsigned int x[6], unsigned int &storePosTr, unsigned int &storePosRot) const |
Protected Attributes | |
unsigned int | sizes [6] |
unsigned int | sizeTr0 |
unsigned int | sizeTr1 |
unsigned int | sizeRot0 |
unsigned int | sizeRot1 |
unsigned char ** | data |
Protected Attributes inherited from VirtualRobot::WorkspaceData | |
unsigned char | minValidValue |
unsigned char | maxEntry |
unsigned int | voxelFilledCount |
bool | adjustOnOverflow |
Stores a 6-dimensional array for the vertex data of a workspace representation. Internally unsigned char data types are used (0...255)
VirtualRobot::WorkspaceDataArray::WorkspaceDataArray | ( | unsigned int | size1, |
unsigned int | size2, | ||
unsigned int | size3, | ||
unsigned int | size4, | ||
unsigned int | size5, | ||
unsigned int | size6, | ||
bool | adjustOnOverflow | ||
) |
Constructor, fills the data with 0
VirtualRobot::WorkspaceDataArray::WorkspaceDataArray | ( | WorkspaceDataArray * | other | ) |
Clone other data structure.
VirtualRobot::WorkspaceDataArray::WorkspaceDataArray | ( | std::ofstream & | file | ) |
create Workspace out of file
|
override |
|
overridevirtual |
Implements VirtualRobot::WorkspaceData.
|
overridevirtual |
Implements VirtualRobot::WorkspaceData.
|
overridevirtual |
Implements VirtualRobot::WorkspaceData.
|
overridevirtual |
Implements VirtualRobot::WorkspaceData.
|
protected |
|
overridevirtual |
Implements VirtualRobot::WorkspaceData.
|
inlineoverridevirtual |
Simulates a multi-dimensional array access.
Implements VirtualRobot::WorkspaceData.
|
inlineoverridevirtual |
Simulates a multi-dimensional array access.
Implements VirtualRobot::WorkspaceData.
|
overridevirtual |
Get rotation data for given x,y,z position.
Implements VirtualRobot::WorkspaceData.
int VirtualRobot::WorkspaceDataArray::getMaxSummedAngleReachablity | ( | ) |
|
inlineprotected |
|
inlineprotected |
|
inlineoverridevirtual |
Implements VirtualRobot::WorkspaceData.
|
inlineoverridevirtual |
Implements VirtualRobot::WorkspaceData.
|
overridevirtual |
Implements VirtualRobot::WorkspaceData.
|
overridevirtual |
Return the amount of data in bytes.
Implements VirtualRobot::WorkspaceData.
|
overridevirtual |
Implements VirtualRobot::WorkspaceData.
|
overridevirtual |
Implements VirtualRobot::WorkspaceData.
|
inline |
|
inline |
|
overridevirtual |
Implements VirtualRobot::WorkspaceData.
|
overridevirtual |
Implements VirtualRobot::WorkspaceData.
|
overridevirtual |
Set rotation data for given x,y,z position.
Implements VirtualRobot::WorkspaceData.
|
overridevirtual |
Implements VirtualRobot::WorkspaceData.
|
overridevirtual |
Implements VirtualRobot::WorkspaceData.
|
inlineoverridevirtual |
Implements VirtualRobot::WorkspaceData.
|
overridevirtual |
Implements VirtualRobot::WorkspaceData.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |