Classes | |
| struct | Index |
Public Member Functions | |
| void | setVoxel (const Index &index, const Voxel &voxel) |
| void | getVoxel (const Index &index, Voxel &voxel) const |
| void | setType (const Index &index, VoxelType type) |
| void | addType (const Index &index, VoxelType type) |
| void | removeType (const Index &index, VoxelType type) |
| VoxelType | getType (const Index &index) const |
| bool | hasType (const Index &index, VoxelType type) const |
| void | setMaterial (const Index &index, MaterialId material) |
| Sets the material of the voxel. More... | |
| void | setVector (const Index &index, double dx, double dy, double dz) |
| Sets the internal point in the voxel using doubles. More... | |
| void | setVector (const Index &index, unsigned char dx, unsigned char dy, unsigned char dz) |
| Sets the internal point in the voxel using unsigned chars. More... | |
| void | setRotation (const Index &index, double dx, double dy, double dz) |
| Sets the rotation of the voxel using doubles. More... | |
| void | setRotation (const Index &index, unsigned char dx, unsigned char dy, unsigned char dz) |
| Sets the rotation of the voxel using unsigned chars. More... | |
| MaterialId | getMaterial (const Index &index) const |
| Gets the value of a voxel material. More... | |
| void | getVector (const Index &index, double &dx, double &dy, double &dz) const |
| Gets the interior point of the voxel as doubles. More... | |
| void | getVector (const Index &index, float &dx, float &dy, float &dz) const |
| Gets the interior point of the voxel as floats. More... | |
| void | getVector (const Index &index, unsigned char &dx, unsigned char &dy, unsigned char &dz) const |
| Gets the interior point of the voxel as unsigned chars. More... | |
| void | getRotation (const Index &index, double &dx, double &dy, double &dz) const |
| Gets the rotation of the voxel as doubles. More... | |
| void | getRotation (const Index &index, float &dx, float &dy, float &dz) const |
| Gets the rotation of the voxel as floats. More... | |
| void | getRotation (const Index &index, unsigned char &dx, unsigned char &dy, unsigned char &dz) const |
| Gets the rotation of the voxel as unsigned chars. More... | |
| void | clear () |
| Initializes the blocks. | |
| void | copy (const VoxelData< xDim, yDim, zDim, IdxType > &source) |
| VoxelType * | getTypes () |
| Raw data interfaces. | |
| MaterialId * | getMaterials () |
| const MaterialId * | getMaterials () const |
| unsigned char * | getVectors () |
| const unsigned char * | getVectors () const |
| unsigned char * | getRotations () |
| const unsigned char * | getRotations () const |
| void | serialize (unsigned char *buffer) const |
| void | unserialize (unsigned char *buffer) |
Static Public Member Functions | |
| static int | getMaterialsSize () |
| static int | getVectorsSize () |
| static int | getRotationsSize () |
Definition at line 76 of file VoxelLayer.h.
| MaterialId VoxelFarm::VoxelData< xDim, yDim, zDim, IdxType >::getMaterial | ( | const Index & | index | ) | const |
Gets the value of a voxel material.
| index | Index to the block info |
Definition at line 391 of file VoxelLayer.h.
| void VoxelFarm::VoxelData< xDim, yDim, zDim, IdxType >::getRotation | ( | const Index & | index, |
| double & | dx, | ||
| double & | dy, | ||
| double & | dz | ||
| ) | const |
Gets the rotation of the voxel as doubles.
| index | Index to the block info |
| dx | Will contain X coordinates of the voxel rotation when the call returns |
| dy | Will contain Y coordinates of the voxel rotation when the call returns |
| dz | Will contain Z coordinates of the voxel rotation when the call returns |
Definition at line 421 of file VoxelLayer.h.
| void VoxelFarm::VoxelData< xDim, yDim, zDim, IdxType >::getRotation | ( | const Index & | index, |
| float & | dx, | ||
| float & | dy, | ||
| float & | dz | ||
| ) | const |
Gets the rotation of the voxel as floats.
| index | Index to the block info |
| dx | Will contain X coordinates of the voxel rotation when the call returns |
| dy | Will contain Y coordinates of the voxel rotation when the call returns |
| dz | Will contain Z coordinates of the voxel rotation when the call returns |
Definition at line 429 of file VoxelLayer.h.
| void VoxelFarm::VoxelData< xDim, yDim, zDim, IdxType >::getRotation | ( | const Index & | index, |
| unsigned char & | dx, | ||
| unsigned char & | dy, | ||
| unsigned char & | dz | ||
| ) | const |
Gets the rotation of the voxel as unsigned chars.
| index | Index to the block info |
| dx | Will contain X coordinates of the inner-voxel point, relative to the origin of the voxel, when the call returns |
| dy | Will contain Y coordinates of the inner-voxel point, relative to the origin of the voxel, when the call returns |
| dz | Will contain Z coordinates of the inner-voxel point, relative to the origin of the voxel, when the call returns |
Definition at line 437 of file VoxelLayer.h.
| void VoxelFarm::VoxelData< xDim, yDim, zDim, IdxType >::getVector | ( | const Index & | index, |
| double & | dx, | ||
| double & | dy, | ||
| double & | dz | ||
| ) | const |
Gets the interior point of the voxel as doubles.
| index | Index to the block info |
| dx | Will contain X coordinates of the inner-voxel point, relative to the origin of the voxel, when the call returns |
| dy | Will contain Y coordinates of the inner-voxel point, relative to the origin of the voxel, when the call returns |
| dz | Will contain Z coordinates of the inner-voxel point, relative to the origin of the voxel, when the call returns |
Definition at line 397 of file VoxelLayer.h.
| void VoxelFarm::VoxelData< xDim, yDim, zDim, IdxType >::getVector | ( | const Index & | index, |
| float & | dx, | ||
| float & | dy, | ||
| float & | dz | ||
| ) | const |
Gets the interior point of the voxel as floats.
| index | Index to the block info |
| dx | Will contain X coordinates of the inner-voxel point, relative to the origin of the voxel, when the call returns |
| dy | Will contain Y coordinates of the inner-voxel point, relative to the origin of the voxel, when the call returns |
| dz | Will contain Z coordinates of the inner-voxel point, relative to the origin of the voxel, when the call returns |
Definition at line 405 of file VoxelLayer.h.
| void VoxelFarm::VoxelData< xDim, yDim, zDim, IdxType >::getVector | ( | const Index & | index, |
| unsigned char & | dx, | ||
| unsigned char & | dy, | ||
| unsigned char & | dz | ||
| ) | const |
Gets the interior point of the voxel as unsigned chars.
| index | Index to the block info |
| dx | Will contain X coordinates of the inner-voxel point, relative to the origin of the voxel, when the call returns |
| dy | Will contain Y coordinates of the inner-voxel point, relative to the origin of the voxel, when the call returns |
| dz | Will contain Z coordinates of the inner-voxel point, relative to the origin of the voxel, when the call returns |
Definition at line 413 of file VoxelLayer.h.
| void VoxelFarm::VoxelData< xDim, yDim, zDim, IdxType >::setMaterial | ( | const Index & | index, |
| MaterialId | material | ||
| ) |
Sets the material of the voxel.
| index | Index to the point info |
| material | ID for material being set. |
Definition at line 338 of file VoxelLayer.h.
| void VoxelFarm::VoxelData< xDim, yDim, zDim, IdxType >::setRotation | ( | const Index & | index, |
| double | dx, | ||
| double | dy, | ||
| double | dz | ||
| ) |
Sets the rotation of the voxel using doubles.
| index | Index to the point info |
| dx | X coordinates of the voxel rotation |
| dy | Y coordinates of the voxel rotation |
| dz | Z coordinates of the voxel rotation |
Definition at line 372 of file VoxelLayer.h.
| void VoxelFarm::VoxelData< xDim, yDim, zDim, IdxType >::setRotation | ( | const Index & | index, |
| unsigned char | dx, | ||
| unsigned char | dy, | ||
| unsigned char | dz | ||
| ) |
Sets the rotation of the voxel using unsigned chars.
| index | Index to the point info |
| dx | X coordinates of the voxel rotation |
| dy | Y coordinates of the voxel rotation |
| dz | Z coordinates of the voxel rotation |
Definition at line 382 of file VoxelLayer.h.
| void VoxelFarm::VoxelData< xDim, yDim, zDim, IdxType >::setVector | ( | const Index & | index, |
| double | dx, | ||
| double | dy, | ||
| double | dz | ||
| ) |
Sets the internal point in the voxel using doubles.
| index | Index to the point info |
| dx | X coordinates of the inner-voxel point, relative to the origin of the voxel |
| dy | Y coordinates of the inner-voxel point, relative to the origin of the voxel |
| dz | Z coordinates of the inner-voxel point, relative to the origin of the voxel |
Definition at line 351 of file VoxelLayer.h.
| void VoxelFarm::VoxelData< xDim, yDim, zDim, IdxType >::setVector | ( | const Index & | index, |
| unsigned char | dx, | ||
| unsigned char | dy, | ||
| unsigned char | dz | ||
| ) |
Sets the internal point in the voxel using unsigned chars.
| index | Index to the point info |
| dx | X coordinates of the inner-voxel point, relative to the origin of the voxel |
| dy | Y coordinates of the inner-voxel point, relative to the origin of the voxel |
| dz | Z coordinates of the inner-voxel point, relative to the origin of the voxel |
Definition at line 362 of file VoxelLayer.h.