Combines several voxel layers into the final dataset sent to the contouring phase. More...
#include <Generator.h>
Classes | |
| class | CCache |
| struct | LayerCache |
Public Member Functions | |
| CGenerator () | |
| Constructs the Generator object. | |
| CGenerator (const CGenerator &other) | |
| void | deleteLayerGroups () |
| deletes the layer groups | |
| void | generate (CellId cell, ContourVoxelData *data, bool &empty, LODStats stats, int group=0) |
| Loads and mixes voxel data from different sources and places it in the specified buffer. | |
| void | getVoxel (CellId cell, int x, int y, int z, MaterialId &material, double &dx, double &dy, double &dz) |
| Retrieves data for a given voxel. | |
| void | planJobs (Scene *scene, LODStats stats) |
| Removes any generation cached data for the specified cell. The getVoxel function may be required to run the generation logic for the entire cell just to return the value of a single voxel. To speed-up subsequent access within the same cell, the contents of the generation are cached the first time. | |
| void | runJobs (LODStats stats) |
| void | removeCachedData (CellId cell) |
| void | addVoxelLayer (IVoxelLayer *layer, bool newGroup=false) |
| Adds a new group of layers. | |
| int | layerGroupCount () |
| It holds the number of groups of layers. | |
| void | setCacheSize (int size) |
Public Attributes | |
| TMap< CellId, ContourVoxelData * > | dataQueryCacheIndex |
Protected Attributes | |
| CCache * | cache |
| bool | ownsCache |
Combines several voxel layers into the final dataset sent to the contouring phase.
Definition at line 20 of file Generator.h.