MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::VoxelsVolumeCachingAccessor< V > Class Template Reference

#include <MRVoxels/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

Detailed Description

template<typename V>
class MR::VoxelsVolumeCachingAccessor< V >

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.


The documentation for this class was generated from the following file: