A.I.M.S


aims::SparseVolume< carto::Volume< T > > Class Template Reference

#include <aims/bucket/sparsevolume.h>

Classes

class  const_iterator
 
class  const_LowLevelStorage
 
class  iterator
 
class  LowLevelStorage
 

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 (int sizeX, int sizeY, int sizeZ, int sizeT, T *buffer)
 
 SparseVolume (const carto::VolumeRef< T > &other)
 
 SparseVolume (const carto::Volume< T > &other)
 
 SparseVolume (const carto::rc_ptr< carto::Volume< T > > &x)
 
virtual ~SparseVolume ()
 
carto::VolumeRef< T > data () const
 
void reset (carto::Volume< T > *x)
 
const T & background () const
 
void setBackground (const T &value)
 
std::vector< int > getSize () const
 
const carto::PropertySetheader () const
 
carto::PropertySetheader ()
 
std::vector< float > voxelSize () const
 
void fill (const T &value)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
const T & at (int x, int y=0, int z=0, int t=0) const
 
void setValue (const T &value, int x, int y=0, int z=0, int t=0)
 
const T & at (const Point3d &p) const
 
void setValue (const T &value, const Point3d &p)
 
const T & checkedAt (const Point3d &p) const
 checks volume bounds before returning value More...
 
const T & checkedAt (int x, int y=0, int z=0, int t=0) const
 

Static Public Member Functions

template<typename U >
static SparseVolume
< carto::Volume< T > > 
alloc (const SparseVolume< carto::Volume< U > > &other)
 
static Point4d position (const const_iterator &i, const typename const_LowLevelStorage::const_iterator &iv)
 
static Point3d position3d (const const_iterator &i, const typename const_LowLevelStorage::const_iterator &iv)
 
static const T & at (const typename const_LowLevelStorage::const_iterator &iv)
 

Detailed Description

template<typename T>
class aims::SparseVolume< carto::Volume< T > >

Definition at line 51 of file sparsevolume.h.

Constructor & Destructor Documentation

template<typename T >
aims::SparseVolume< carto::Volume< T > >::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 382 of file sparsevolume.h.

template<typename T >
aims::SparseVolume< carto::Volume< T > >::SparseVolume ( int  sizeX,
int  sizeY,
int  sizeZ,
int  sizeT,
T *  buffer 
)
inline

Definition at line 395 of file sparsevolume.h.

template<typename T >
aims::SparseVolume< carto::Volume< T > >::SparseVolume ( const carto::VolumeRef< T > &  other)
inline

Definition at line 406 of file sparsevolume.h.

template<typename T >
aims::SparseVolume< carto::Volume< T > >::SparseVolume ( const carto::Volume< T > &  other)
inline

Definition at line 416 of file sparsevolume.h.

template<typename T >
aims::SparseVolume< carto::Volume< T > >::SparseVolume ( const carto::rc_ptr< carto::Volume< T > > &  x)
inline

Definition at line 427 of file sparsevolume.h.

template<typename T >
aims::SparseVolume< carto::Volume< T > >::~SparseVolume ( )
inlinevirtual

Definition at line 436 of file sparsevolume.h.

Member Function Documentation

template<typename T >
const T& aims::SparseVolume< carto::Volume< T > >::at ( int  x,
int  y = 0,
int  z = 0,
int  t = 0 
) const
inline

Definition at line 224 of file sparsevolume.h.

template<typename T >
const T& aims::SparseVolume< carto::Volume< T > >::at ( const Point3d p) const
inline

Definition at line 228 of file sparsevolume.h.

template<typename T >
static const T& aims::SparseVolume< carto::Volume< T > >::at ( const typename const_LowLevelStorage::const_iterator iv)
inlinestatic

Definition at line 245 of file sparsevolume.h.

template<typename T >
const T& aims::SparseVolume< carto::Volume< T > >::background ( ) const
inline

Definition at line 209 of file sparsevolume.h.

template<typename T >
iterator aims::SparseVolume< carto::Volume< T > >::begin ( )
inline

Definition at line 219 of file sparsevolume.h.

template<typename T >
const_iterator aims::SparseVolume< carto::Volume< T > >::begin ( ) const
inline

Definition at line 221 of file sparsevolume.h.

template<typename T >
const T& aims::SparseVolume< carto::Volume< T > >::checkedAt ( const Point3d p) const
inline

checks volume bounds before returning value

Definition at line 233 of file sparsevolume.h.

template<typename T >
const T & aims::SparseVolume< carto::Volume< T > >::checkedAt ( int  x,
int  y = 0,
int  z = 0,
int  t = 0 
) const
inline

Definition at line 478 of file sparsevolume.h.

template<typename T >
carto::VolumeRef<T> aims::SparseVolume< carto::Volume< T > >::data ( ) const
inline

Definition at line 204 of file sparsevolume.h.

template<typename T >
iterator aims::SparseVolume< carto::Volume< T > >::end ( )
inline

Definition at line 220 of file sparsevolume.h.

template<typename T >
const_iterator aims::SparseVolume< carto::Volume< T > >::end ( ) const
inline

Definition at line 222 of file sparsevolume.h.

template<typename T >
void aims::SparseVolume< carto::Volume< T > >::fill ( const T &  value)
inline

Definition at line 217 of file sparsevolume.h.

template<typename T >
std::vector< int > aims::SparseVolume< carto::Volume< T > >::getSize ( ) const
inline

Definition at line 443 of file sparsevolume.h.

template<typename T >
const carto::PropertySet& aims::SparseVolume< carto::Volume< T > >::header ( ) const
inline

Definition at line 212 of file sparsevolume.h.

template<typename T >
carto::PropertySet& aims::SparseVolume< carto::Volume< T > >::header ( )
inline

Definition at line 214 of file sparsevolume.h.

template<typename T >
static Point4d aims::SparseVolume< carto::Volume< T > >::position ( const const_iterator &  i,
const typename const_LowLevelStorage::const_iterator iv 
)
inlinestatic

Definition at line 237 of file sparsevolume.h.

template<typename T >
static Point3d aims::SparseVolume< carto::Volume< T > >::position3d ( const const_iterator &  i,
const typename const_LowLevelStorage::const_iterator iv 
)
inlinestatic

Definition at line 241 of file sparsevolume.h.

template<typename T >
void aims::SparseVolume< carto::Volume< T > >::reset ( carto::Volume< T > *  x)
inline

Definition at line 491 of file sparsevolume.h.

template<typename T >
void aims::SparseVolume< carto::Volume< T > >::setBackground ( const T &  value)
inline

Definition at line 210 of file sparsevolume.h.

template<typename T >
void aims::SparseVolume< carto::Volume< T > >::setValue ( const T &  value,
int  x,
int  y = 0,
int  z = 0,
int  t = 0 
)
inline

Definition at line 226 of file sparsevolume.h.

template<typename T >
void aims::SparseVolume< carto::Volume< T > >::setValue ( const T &  value,
const Point3d p 
)
inline

Definition at line 230 of file sparsevolume.h.


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