#include <MRVoxelsVolumeCachingAccessor.h>
Classes | |
| struct | Parameters |
Public Types | |
| using | VolumeType = V |
| using | ValueType = typename V::ValueType |
Public Member Functions | |
| VoxelsVolumeCachingAccessor (const VoxelsVolumeAccessor< V > &accessor, const VolumeIndexer &indexer, Parameters parameters={}) | |
| int | currentLayer () const |
| get current layer | |
| bool | preloadLayer (int z, const ProgressCallback &cb={}) |
| bool | preloadNextLayer (const ProgressCallback &cb={}) |
| ValueType | get (const VoxelLocation &loc) const |
| get voxel volume data | |
This accessor first loads data for given number of layers in internal cache, and then returns values from the cache. Direct access to data outside of cache is not allowed.
| using MR::VoxelsVolumeCachingAccessor< V >::ValueType = typename V::ValueType |
| using MR::VoxelsVolumeCachingAccessor< V >::VolumeType = V |
|
inline |
|
inlinenodiscard |
get current layer
|
inline |
get voxel volume data
|
inline |
preload layers, starting from z; return false if the operation was cancelled from callback
|
inline |
preload the next layer; return false if the operation was cancelled from callback