#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 | |
void | preloadLayer (int z) |
preload layers, starting from z | |
void | preloadNextLayer () |
preload the next layer | |
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
|
inline |
preload the next layer