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

#include <aims/bucket/sparsevolume.h>

Inheritance diagram for aims::SparseVolume< BucketMap< Void > >:
Collaboration diagram for aims::SparseVolume< BucketMap< Void > >:

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

Definition at line 318 of file sparsevolume.h.

Member Typedef Documentation

◆ const_iterator

typedef BucketMap<Void>::const_iterator aims::SparseVolume< BucketMap< Void > >::const_iterator

Definition at line 325 of file sparsevolume.h.

◆ const_LowLevelStorage

typedef const BucketMap<Void>::Bucket aims::SparseVolume< BucketMap< Void > >::const_LowLevelStorage

Definition at line 323 of file sparsevolume.h.

◆ iterator

typedef BucketMap<Void>::iterator aims::SparseVolume< BucketMap< Void > >::iterator

Definition at line 324 of file sparsevolume.h.

◆ LowLevelStorage

typedef BucketMap<Void>::Bucket aims::SparseVolume< BucketMap< Void > >::LowLevelStorage

Definition at line 322 of file sparsevolume.h.

◆ VoxelType

typedef int aims::SparseVolume< BucketMap< Void > >::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

◆ SparseVolume() [2/3]

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

Definition at line 745 of file sparsevolume.h.

References SparseVolume().

◆ SparseVolume() [3/3]

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

Definition at line 754 of file sparsevolume.h.

References SparseVolume().

◆ ~SparseVolume()

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

Definition at line 762 of file sparsevolume.h.

References SparseVolume(), and ~SparseVolume().

Referenced by ~SparseVolume().

Member Function Documentation

◆ alloc()

◆ at() [1/3]

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

Definition at line 368 of file sparsevolume.h.

◆ at() [2/3]

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

Definition at line 816 of file sparsevolume.h.

References at(), and SparseVolume().

◆ at() [3/3]

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

Definition at line 809 of file sparsevolume.h.

References at(), and SparseVolume().

Referenced by at(), at(), checkedAt(), checkedAt(), and checkedAt().

◆ background()

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

Definition at line 338 of file sparsevolume.h.

Referenced by setValue().

◆ begin() [1/2]

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

Definition at line 360 of file sparsevolume.h.

References data().

◆ begin() [2/2]

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

Definition at line 361 of file sparsevolume.h.

References data().

◆ checkedAt() [1/3]

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

Definition at line 354 of file sparsevolume.h.

References at().

◆ checkedAt() [2/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.

References at().

◆ checkedAt() [3/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.

References at().

◆ data()

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

Definition at line 333 of file sparsevolume.h.

Referenced by alloc(), begin(), begin(), end(), and end().

◆ end() [1/2]

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

Definition at line 362 of file sparsevolume.h.

References data().

◆ end() [2/2]

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

Definition at line 363 of file sparsevolume.h.

References data().

◆ fill()

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

Definition at line 347 of file sparsevolume.h.

References setBackground().

◆ getSize()

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

Definition at line 768 of file sparsevolume.h.

References getSize(), and SparseVolume().

Referenced by getSize().

◆ header() [1/2]

Definition at line 343 of file sparsevolume.h.

◆ header() [2/2]

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

Definition at line 341 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 364 of file sparsevolume.h.

◆ reset()

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

Definition at line 852 of file sparsevolume.h.

References reset(), and SparseVolume().

Referenced by reset().

◆ setBackground()

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

Definition at line 339 of file sparsevolume.h.

Referenced by fill().

◆ setValue() [1/2]

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

Definition at line 839 of file sparsevolume.h.

References background(), setValue(), and SparseVolume().

◆ setValue() [2/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 831 of file sparsevolume.h.

References setValue(), and SparseVolume().

Referenced by setValue(), and setValue().

◆ voxelSize()

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

Definition at line 797 of file sparsevolume.h.

References SparseVolume(), and voxelSize().

Referenced by voxelSize().


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