MeshLib Documentation
Loading...
Searching...
No Matches
MR::VoxelsVolumeCachingAccessor< V > Class Template Reference

#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
 

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.

Member Typedef Documentation

◆ ValueType

template<typename V >
using MR::VoxelsVolumeCachingAccessor< V >::ValueType = typename V::ValueType

◆ VolumeType

template<typename V >
using MR::VoxelsVolumeCachingAccessor< V >::VolumeType = V

Constructor & Destructor Documentation

◆ VoxelsVolumeCachingAccessor()

template<typename V >
MR::VoxelsVolumeCachingAccessor< V >::VoxelsVolumeCachingAccessor ( const VoxelsVolumeAccessor< V > & accessor,
const VolumeIndexer & indexer,
Parameters parameters = {} )
inline

Member Function Documentation

◆ currentLayer()

template<typename V >
int MR::VoxelsVolumeCachingAccessor< V >::currentLayer ( ) const
inlinenodiscard

get current layer

◆ get()

template<typename V >
ValueType MR::VoxelsVolumeCachingAccessor< V >::get ( const VoxelLocation & loc) const
inline

get voxel volume data

◆ preloadLayer()

template<typename V >
void MR::VoxelsVolumeCachingAccessor< V >::preloadLayer ( int z)
inline

preload layers, starting from z

◆ preloadNextLayer()

template<typename V >
void MR::VoxelsVolumeCachingAccessor< V >::preloadNextLayer ( )
inline

preload the next layer


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