aimsdata  4.7.0
Neuroimaging data handling
aims::SparseVolume< BucketMap< Void > > Class Template Reference

#include <aims/bucket/sparsevolume.h>

Public Types

typedef int VoxelType
 
typedef BucketMap< Void >::Bucket LowLevelStorage
 
typedef const BucketMap< Void >::Bucket const_LowLevelStorage
 
typedef BucketMap< Void >::iterator iterator
 
typedef BucketMap< Void >::const_iterator const_iterator
 

Public Member Functions

 SparseVolume (int sizeX=1, int sizeY=1, int sizeZ=1, int sizeT=1, const carto::AllocatorContext &allocatorContext=carto::AllocatorContext(), bool allocated=true)
 
 SparseVolume (const carto::rc_ptr< BucketMap< Void > > &other)
 
 SparseVolume (const BucketMap< Void > &other)
 
virtual ~SparseVolume ()
 
carto::rc_ptr< BucketMap< Void > > data () const
 
void reset (BucketMap< Void > *x)
 
const VoxelTypebackground () const
 
void setBackground (const VoxelType &x)
 
std::vector< int > getSize () const
 
const carto::PropertySetheader () const
 
carto::PropertySetheader ()
 
std::vector< float > voxelSize () const
 
void fill (const VoxelType &value)
 
const VoxelTypeat (int x, int y=0, int z=0, int t=0) const
 
void setValue (const VoxelType &value, int x, int y=0, int z=0, int t=0)
 
const VoxelTypeat (const Point3d &p) const
 
void setValue (const VoxelType &value, const Point3d &p)
 
const VoxelTypecheckedAt (const Point3d &p) const
 
const VoxelTypecheckedAt (int x, int y=0, int z=0) const
 
const VoxelTypecheckedAt (int x, int y, int z, int t) const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 

Static Public Member Functions

template<typename U >
static SparseVolume< BucketMap< Void > > alloc (const SparseVolume< BucketMap< U > > &other)
 
static const Point3dposition3d (const const_iterator &, const const_LowLevelStorage::const_iterator &iv)
 
static const Voidat (const const_LowLevelStorage::const_iterator &iv)
 

Detailed Description

template<>
class aims::SparseVolume< BucketMap< Void > >

Definition at line 318 of file sparsevolume.h.

Member Typedef Documentation

◆ const_iterator

◆ const_LowLevelStorage

Definition at line 323 of file sparsevolume.h.

◆ iterator

Definition at line 324 of file sparsevolume.h.

◆ LowLevelStorage

Definition at line 322 of file sparsevolume.h.

◆ VoxelType

Definition at line 321 of file sparsevolume.h.

Constructor & Destructor Documentation

◆ SparseVolume() [1/3]

aims::SparseVolume< BucketMap< Void > >::SparseVolume ( int  sizeX = 1,
int  sizeY = 1,
int  sizeZ = 1,
int  sizeT = 1,
const carto::AllocatorContext &  allocatorContext = carto::AllocatorContext(),
bool  allocated = true 
)
inline

Definition at line 715 of file sparsevolume.h.

◆ SparseVolume() [2/3]

aims::SparseVolume< BucketMap< Void > >::SparseVolume ( const carto::rc_ptr< BucketMap< Void > > &  other)
inline

Definition at line 723 of file sparsevolume.h.

◆ SparseVolume() [3/3]

aims::SparseVolume< BucketMap< Void > >::SparseVolume ( const BucketMap< Void > &  other)
inline

Definition at line 732 of file sparsevolume.h.

◆ ~SparseVolume()

aims::SparseVolume< BucketMap< Void > >::~SparseVolume ( )
inlinevirtual

Definition at line 740 of file sparsevolume.h.

Member Function Documentation

◆ alloc()

◆ at() [1/3]

const int & aims::SparseVolume< BucketMap< Void > >::at ( int  x,
int  y = 0,
int  z = 0,
int  t = 0 
) const
inline

Definition at line 787 of file sparsevolume.h.

◆ at() [2/3]

const int & aims::SparseVolume< BucketMap< Void > >::at ( const Point3d p) const
inline

Definition at line 794 of file sparsevolume.h.

◆ at() [3/3]

static const Void& aims::SparseVolume< BucketMap< Void > >::at ( const const_LowLevelStorage::const_iterator &  iv)
inlinestatic

Definition at line 368 of file sparsevolume.h.

◆ background()

const VoxelType& aims::SparseVolume< BucketMap< Void > >::background ( ) const
inline

Definition at line 338 of file sparsevolume.h.

◆ begin() [1/2]

iterator aims::SparseVolume< BucketMap< Void > >::begin ( )
inline

Definition at line 360 of file sparsevolume.h.

◆ begin() [2/2]

const_iterator aims::SparseVolume< BucketMap< Void > >::begin ( ) const
inline

Definition at line 361 of file sparsevolume.h.

◆ checkedAt() [1/3]

const VoxelType& aims::SparseVolume< BucketMap< Void > >::checkedAt ( const Point3d p) const
inline

Definition at line 354 of file sparsevolume.h.

◆ checkedAt() [2/3]

const VoxelType& aims::SparseVolume< BucketMap< Void > >::checkedAt ( int  x,
int  y = 0,
int  z = 0 
) const
inline

Definition at line 356 of file sparsevolume.h.

◆ checkedAt() [3/3]

const VoxelType& aims::SparseVolume< BucketMap< Void > >::checkedAt ( int  x,
int  y,
int  z,
int  t 
) const
inline

Definition at line 358 of file sparsevolume.h.

◆ data()

carto::rc_ptr<BucketMap<Void> > aims::SparseVolume< BucketMap< Void > >::data ( ) const
inline

Definition at line 333 of file sparsevolume.h.

◆ end() [1/2]

iterator aims::SparseVolume< BucketMap< Void > >::end ( )
inline

Definition at line 362 of file sparsevolume.h.

◆ end() [2/2]

const_iterator aims::SparseVolume< BucketMap< Void > >::end ( ) const
inline

Definition at line 363 of file sparsevolume.h.

◆ fill()

void aims::SparseVolume< BucketMap< Void > >::fill ( const VoxelType value)
inline

Definition at line 347 of file sparsevolume.h.

◆ getSize()

std::vector< int > aims::SparseVolume< BucketMap< Void > >::getSize ( ) const
inline

Definition at line 746 of file sparsevolume.h.

◆ header() [1/2]

const carto::PropertySet& aims::SparseVolume< BucketMap< Void > >::header ( ) const
inline

Definition at line 341 of file sparsevolume.h.

◆ header() [2/2]

Definition at line 343 of file sparsevolume.h.

◆ position3d()

static const Point3d& aims::SparseVolume< BucketMap< Void > >::position3d ( const const_iterator ,
const const_LowLevelStorage::const_iterator &  iv 
)
inlinestatic

Definition at line 365 of file sparsevolume.h.

◆ reset()

void aims::SparseVolume< BucketMap< Void > >::reset ( BucketMap< Void > *  x)
inline

Definition at line 830 of file sparsevolume.h.

◆ setBackground()

void aims::SparseVolume< BucketMap< Void > >::setBackground ( const VoxelType x)
inline

Definition at line 339 of file sparsevolume.h.

◆ setValue() [1/2]

void aims::SparseVolume< BucketMap< Void > >::setValue ( const VoxelType value,
int  x,
int  y = 0,
int  z = 0,
int  t = 0 
)
inline

Definition at line 809 of file sparsevolume.h.

◆ setValue() [2/2]

void aims::SparseVolume< BucketMap< Void > >::setValue ( const VoxelType value,
const Point3d p 
)
inline

Definition at line 817 of file sparsevolume.h.

References aims::BucketMap< T >::erase().

◆ voxelSize()

std::vector< float > aims::SparseVolume< BucketMap< Void > >::voxelSize ( ) const
inline

Definition at line 775 of file sparsevolume.h.


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