|
| virtual void | setBlock (CellId &cell, int &x, int &y, int &z, int material, double dx, double dy, double dz, TSet< CellId > *changedCells)=0 |
| | Sets a value for a voxel. More...
|
| |
| virtual BlockVoxelData * | fetchData (CellId cell, bool create)=0 |
| | Returns the voxel data buffer for the specified cell. This is a synchronous call. More...
|
| |
| virtual BlockVoxelData * | fetchCacheData (CellId cell, bool create)=0 |
| | Returns a cache voxel data buffer for the specified cell. More...
|
| |
|
virtual void | beginChanges ()=0 |
| | Sets a marker for a change set that can be undone.
|
| |
|
virtual void | trackCellChanges (CellId cell, const BlockVoxelData *blockData)=0 |
| | Requests changes made to a cell to be remembered so they can be undone.
|
| |
|
virtual void | endChanges ()=0 |
| | Closes the marker for a change set that can be undone.
|
| |
Definition at line 36 of file BlockData.h.
Returns a cache voxel data buffer for the specified cell.
- Parameters
-
| cell | Cell ID for the cell to be retrieved |
| create | If set to true will create an empty cell buffer if no buffer is found for the cell |
Implemented in VoxelFarm::CBlockData, and VoxelFarm::CBufferBlockData.
Returns the voxel data buffer for the specified cell. This is a synchronous call.
- Parameters
-
| cell | Cell ID for the cell to be retrieved |
| create | If set to true will create an empty cell buffer if no buffer is found for the cell |
Implemented in VoxelFarm::CBlockData, and VoxelFarm::CBufferBlockData.
| virtual void VoxelFarm::IBlockData::setBlock |
( |
CellId & |
cell, |
|
|
int & |
x, |
|
|
int & |
y, |
|
|
int & |
z, |
|
|
int |
material, |
|
|
double |
dx, |
|
|
double |
dy, |
|
|
double |
dz, |
|
|
TSet< CellId > * |
changedCells |
|
) |
| |
|
pure virtual |
Sets a value for a voxel.
- Parameters
-
| cell | ID for the cell containing the voxel to be set |
| x | X coordinates for a voxel relative to the origin of the Cell |
| y | Y coordinates for a voxel relative to the origin of the Cell |
| z | Z coordinates for a voxel relative to the origin of the Cell |
| material | ID for material being set. |
| 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 |
Implemented in VoxelFarm::CBlockData, and VoxelFarm::CBufferBlockData.
The documentation for this class was generated from the following file: