Public Types | Public Member Functions | Private Attributes

cmtk::Region< NDIM, T > Class Template Reference

Class for n-dimensional image index. More...

#include <cmtkRegion.h>

Collaboration diagram for cmtk::Region< NDIM, T >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Region< NDIM, T > Self
 This class.
typedef FixedVector< NDIM, T > IndexType
 Index type.
typedef SmartPointer< SelfSmartPtr
 Smart pointer to this class.
typedef SmartConstPointer< SelfSmartConstPtr
 Smart pointer-to-const to this class.

Public Member Functions

 Region ()
 Default constructor.
 Region (const typename Self::IndexType &fromIndex, const typename Self::IndexType &toIndex)
 Constructor from two index, from and to.
Self::IndexTypeFrom ()
 Get "from".
const Self::IndexTypeFrom () const
 Get const "from".
Self::IndexTypeTo ()
 Get "from".
const Self::IndexTypeTo () const
 Get const "from".
Size () const
 Compute region size (e.g., number of pixels for grid regions).
const Self::IndexType begin () const
 Region "begin" index.
const Self::IndexType end () const
 Region "end" index.

Private Attributes

Self::IndexType m_RegionFrom
 Beginning index.
Self::IndexType m_RegionTo
 End index.

Detailed Description

template<size_t NDIM, typename T = int>
class cmtk::Region< NDIM, T >

Class for n-dimensional image index.

Definition at line 50 of file cmtkRegion.h.


Member Typedef Documentation

template<size_t NDIM, typename T = int>
typedef FixedVector<NDIM,T> cmtk::Region< NDIM, T >::IndexType

Index type.

Definition at line 57 of file cmtkRegion.h.

template<size_t NDIM, typename T = int>
typedef Region<NDIM,T> cmtk::Region< NDIM, T >::Self

This class.

Definition at line 54 of file cmtkRegion.h.

template<size_t NDIM, typename T = int>
typedef SmartConstPointer<Self> cmtk::Region< NDIM, T >::SmartConstPtr

Smart pointer-to-const to this class.

Definition at line 63 of file cmtkRegion.h.

template<size_t NDIM, typename T = int>
typedef SmartPointer<Self> cmtk::Region< NDIM, T >::SmartPtr

Smart pointer to this class.

Definition at line 60 of file cmtkRegion.h.


Constructor & Destructor Documentation

template<size_t NDIM, typename T = int>
cmtk::Region< NDIM, T >::Region (  ) [inline]

Default constructor.

Definition at line 66 of file cmtkRegion.h.

template<size_t NDIM, typename T = int>
cmtk::Region< NDIM, T >::Region ( const typename Self::IndexType fromIndex,
const typename Self::IndexType toIndex 
) [inline]

Constructor from two index, from and to.

Definition at line 69 of file cmtkRegion.h.


Member Function Documentation

template<size_t NDIM, typename T = int>
const Self::IndexType cmtk::Region< NDIM, T >::begin (  ) const [inline]

Region "begin" index.

Definition at line 109 of file cmtkRegion.h.

template<size_t NDIM, typename T = int>
const Self::IndexType cmtk::Region< NDIM, T >::end (  ) const [inline]

Region "end" index.

Definition at line 115 of file cmtkRegion.h.

template<size_t NDIM, typename T = int>
const Self::IndexType& cmtk::Region< NDIM, T >::From (  ) const [inline]

Get const "from".

Definition at line 82 of file cmtkRegion.h.

template<size_t NDIM, typename T = int>
Self::IndexType& cmtk::Region< NDIM, T >::From (  ) [inline]
template<size_t NDIM, typename T = int>
T cmtk::Region< NDIM, T >::Size (  ) const [inline]
template<size_t NDIM, typename T = int>
Self::IndexType& cmtk::Region< NDIM, T >::To (  ) [inline]
template<size_t NDIM, typename T = int>
const Self::IndexType& cmtk::Region< NDIM, T >::To (  ) const [inline]

Get const "from".

Definition at line 94 of file cmtkRegion.h.


Member Data Documentation

template<size_t NDIM, typename T = int>
Self::IndexType cmtk::Region< NDIM, T >::m_RegionFrom [private]

Beginning index.

Definition at line 124 of file cmtkRegion.h.

template<size_t NDIM, typename T = int>
Self::IndexType cmtk::Region< NDIM, T >::m_RegionTo [private]

End index.

Definition at line 127 of file cmtkRegion.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines