An implementation of IBlockData for merging a buffer into another IBlockData.
More...
#include <BlockData.h>
|
|
| CBufferBlockData (IBlockData *blockData) |
| |
|
void | merge (TSet< CellId > *changedCells) |
| | Merge the data in blockCache with the data in blockData and returns the affected cells in changedCells.
|
| |
| virtual void | setBlock (CellId &cell, int &x, int &y, int &z, int material, double dx, double dy, double dz, TSet< CellId > *changedCells) |
| | Sets a value for a voxel. More...
|
| |
| virtual void | getBlock (CellId cell, int x, int y, int z, int &material, double &dx, double &dy, double &dz) |
| | Gets the value of a voxel. More...
|
| |
|
virtual void | beginChanges () |
| | Sets a marker for a change set that can be undone.
|
| |
|
virtual void | trackCellChanges (CellId cell, const BlockVoxelData *blockData) |
| | Requests changes made to a cell to be remembered so they can be undone.
|
| |
|
virtual void | endChanges () |
| | Closes the marker for a change set that can be undone.
|
| |
| virtual BlockVoxelData * | fetchData (CellId cell, bool create) |
| | Returns the voxel data buffer for the specified cell. This is a synchronous call. More...
|
| |
| virtual BlockVoxelData * | fetchCacheData (CellId cell, bool create) |
| | Returns a cache voxel data buffer for the specified cell. More...
|
| |
An implementation of IBlockData for merging a buffer into another IBlockData.
Definition at line 111 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 |
Implements VoxelFarm::IBlockData.
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 |
Implements VoxelFarm::IBlockData.
| virtual void VoxelFarm::CBufferBlockData::getBlock |
( |
CellId |
cell, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
z, |
|
|
int & |
material, |
|
|
double & |
dx, |
|
|
double & |
dy, |
|
|
double & |
dz |
|
) |
| |
|
virtual |
Gets the value of a voxel.
- Parameters
-
| cell | ID for the cell containing the voxel to be read |
| 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 | Will contain the material ID for the voxel when the call returns |
| 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 |
| virtual void VoxelFarm::CBufferBlockData::setBlock |
( |
CellId & |
cell, |
|
|
int & |
x, |
|
|
int & |
y, |
|
|
int & |
z, |
|
|
int |
material, |
|
|
double |
dx, |
|
|
double |
dy, |
|
|
double |
dz, |
|
|
TSet< CellId > * |
changedCells |
|
) |
| |
|
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 |
Implements VoxelFarm::IBlockData.
The documentation for this class was generated from the following file: