A.I.M.S


aims::BucketMap< T > Class Template Reference

An alternate, ordered, representation for buckets (voxels lists). More...

#include <aims/bucket/bucket.h>

Inheritance diagram for aims::BucketMap< T >:
Collaboration diagram for aims::BucketMap< T >:

Public Types

typedef std::map< int,
std::map< Point3d, T,
BucketMapLess > > 
BaseMap
 
typedef std::map< Point3d, T,
BucketMapLess
Bucket
 
typedef std::map< int, Bucket >
::iterator 
iterator
 
typedef std::map< int, Bucket >
::const_iterator 
const_iterator
 

Public Member Functions

 BucketMap ()
 
 BucketMap (const BucketMap< T > &other)
 
 BucketMap (const AimsBucket< T > &)
 build from AimsBucket More...
 
virtual ~BucketMap ()
 
BucketMap< T > & operator= (const AimsBucket< T > &)
 
void insert (const Point3d &pos, const T &item)
 Function redefined to omit time. More...
 
void insert (const std::pair< const Point3d, T > &item)
 Function redefined to omit time, looks more like STL maps. More...
 
void erase (const Point3d &pos)
 Function redefined to omit time. More...
 
void merge (const BucketMap< T > &)
 
float sizeX () const
 returns the X resolution in mm More...
 
float sizeY () const
 returns the Y resolution in mm More...
 
float sizeZ () const
 returns the Z resolution in mm More...
 
float sizeT () const
 returns the T resolution in s More...
 
void setSizeX (float sizex)
 sets the X resolution of the data in mm More...
 
void setSizeY (float sizey)
 sets the Y resolution of the data in mm More...
 
void setSizeZ (float sizez)
 sets the Z resolution of the data in mm More...
 
void setSizeT (float sizet)
 sets the T resolution of the data in s More...
 
void setSizeXYZT (float sizex, float sizey, float sizez, float sizet)
 sets X,Y,Z and T resolutions of the data More...
 
const aims::PythonHeaderheader () const
 
aims::PythonHeaderheader ()
 
void setHeader (const aims::PythonHeader &hdr)
 

Protected Attributes

aims::PythonHeader _header
 

Detailed Description

template<class T>
class aims::BucketMap< T >

An alternate, ordered, representation for buckets (voxels lists).

Compared to AimsBucket, this version stores points in an ordered map, sorted by (z,y,x) key.

Conversion operator makes it easy to transform an AimsBucket to a BucketMap and vice versa

Definition at line 57 of file bucket.h.

Member Typedef Documentation

template<class T>
typedef std::map< int , std::map< Point3d, T, BucketMapLess > > aims::BucketMap< T >::BaseMap

Definition at line 101 of file bucketMap.h.

template<class T>
typedef std::map< Point3d, T, BucketMapLess > aims::BucketMap< T >::Bucket

Definition at line 102 of file bucketMap.h.

template<class T>
typedef std::map<int, Bucket >::const_iterator aims::BucketMap< T >::const_iterator

Definition at line 104 of file bucketMap.h.

template<class T>
typedef std::map<int, Bucket >::iterator aims::BucketMap< T >::iterator

Definition at line 103 of file bucketMap.h.

Constructor & Destructor Documentation

template<class T>
aims::BucketMap< T >::BucketMap ( )
inline

Definition at line 106 of file bucketMap.h.

template<class T>
aims::BucketMap< T >::BucketMap ( const BucketMap< T > &  other)
inline

Definition at line 108 of file bucketMap.h.

template<class T>
aims::BucketMap< T >::BucketMap ( const AimsBucket< T > &  other)
inline

build from AimsBucket

Definition at line 322 of file bucketMap.h.

template<class T>
virtual aims::BucketMap< T >::~BucketMap ( )
inlinevirtual

Definition at line 113 of file bucketMap.h.

Member Function Documentation

template<class T>
aims::PythonHeader& aims::BucketMap< T >::header ( )
inline

Definition at line 149 of file bucketMap.h.

template<class T>
void aims::BucketMap< T >::insert ( const Point3d pos,
const T &  item 
)
inline
template<class T>
void aims::BucketMap< T >::insert ( const std::pair< const Point3d, T > &  item)
inline

Function redefined to omit time, looks more like STL maps.

Definition at line 194 of file bucketMap.h.

template<class T>
void aims::BucketMap< T >::merge ( const BucketMap< T > &  bck)
inline

Definition at line 208 of file bucketMap.h.

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

template<class T>
BucketMap< T > & aims::BucketMap< T >::operator= ( const AimsBucket< T > &  other)
inline

Definition at line 330 of file bucketMap.h.

References AimsBucket< T >::header().

template<class T >
void aims::BucketMap< T >::setSizeT ( float  sizet)
inline

sets the T resolution of the data in s

Definition at line 296 of file bucketMap.h.

References ASSERT.

template<class T >
void aims::BucketMap< T >::setSizeX ( float  sizex)
inline

sets the X resolution of the data in mm

Definition at line 257 of file bucketMap.h.

References ASSERT.

template<class T >
void aims::BucketMap< T >::setSizeY ( float  sizey)
inline

sets the Y resolution of the data in mm

Definition at line 270 of file bucketMap.h.

References ASSERT.

template<class T >
void aims::BucketMap< T >::setSizeZ ( float  sizez)
inline

sets the Z resolution of the data in mm

Definition at line 283 of file bucketMap.h.

References ASSERT.

Member Data Documentation

template<class T>
aims::PythonHeader aims::BucketMap< T >::_header
protected

Definition at line 153 of file bucketMap.h.


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