MeshLib
 
Loading...
Searching...
No Matches
MR::VoxelsVolumeAccessorWithBackground< Accessor > Class Template Reference

accessor override with a preset background value: out-of bounds indexes correspond to a fixed value More...

#include <MRVoxelsVolumeAccess.h>

+ Inheritance diagram for MR::VoxelsVolumeAccessorWithBackground< Accessor >:

Public Types

using VolumeType = typename Accessor::VolumeType
 
using ValueType = typename VolumeType::ValueType
 

Public Member Functions

 VoxelsVolumeAccessorWithBackground (const VolumeType &volume, ValueType bgValue)
 
ValueType safeGet (const Vector3i &pos) const
 

Detailed Description

template<typename Accessor>
class MR::VoxelsVolumeAccessorWithBackground< Accessor >

accessor override with a preset background value: out-of bounds indexes correspond to a fixed value

Member Typedef Documentation

◆ ValueType

template<typename Accessor >
using MR::VoxelsVolumeAccessorWithBackground< Accessor >::ValueType = typename VolumeType::ValueType

◆ VolumeType

template<typename Accessor >
using MR::VoxelsVolumeAccessorWithBackground< Accessor >::VolumeType = typename Accessor::VolumeType

Constructor & Destructor Documentation

◆ VoxelsVolumeAccessorWithBackground()

template<typename Accessor >
MR::VoxelsVolumeAccessorWithBackground< Accessor >::VoxelsVolumeAccessorWithBackground ( const VolumeType & volume,
ValueType bgValue )
inline

Member Function Documentation

◆ safeGet()

template<typename Accessor >
ValueType MR::VoxelsVolumeAccessorWithBackground< Accessor >::safeGet ( const Vector3i & pos) const
inline

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