Public Types | Public Member Functions | Private Attributes

cmtk::Matrix3D< T > Class Template Reference
[cmtkBase Library]

Three-dimensional matrix template. More...

#include <cmtkMatrix.h>

Inheritance diagram for cmtk::Matrix3D< T >:
Inheritance graph
[legend]
Collaboration diagram for cmtk::Matrix3D< T >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Matrix3D< T > Self
 This class.
typedef SmartPointer< SelfSmartPtr
 Smart pointer.
typedef Matrix2D< T * > Superclass
 Superclass.

Public Member Functions

 Matrix3D (const size_t dims2, const size_t dims1, const size_t dims0)
 Constructor: allocate and create cross-references.
size_t GetNumberOfPlanes () const
 Return number of planes.
void Resize (const size_t numberOfRows, const size_t numberOfColumns, const size_t numberOfPlanes)
 Resize the matrix.
void SetAllToZero ()
 Reset all values to zero.
void SetAll (const T value)
 Set all values.
Matrix2D< T > & operator= (const Matrix2D< T > &other)
 Copy another matrix.

Private Attributes

size_t m_NumberOfPlanes
 Planes in the 3D matrix.
size_t m_NumberOfElements
 Number of matrix elements.

Detailed Description

template<class T>
class cmtk::Matrix3D< T >

Three-dimensional matrix template.

Definition at line 247 of file cmtkMatrix.h.


Member Typedef Documentation

template<class T >
typedef Matrix3D<T> cmtk::Matrix3D< T >::Self

This class.

Reimplemented from cmtk::Matrix2D< T * >.

Definition at line 253 of file cmtkMatrix.h.

template<class T >
typedef SmartPointer<Self> cmtk::Matrix3D< T >::SmartPtr

Smart pointer.

Reimplemented from cmtk::Matrix2D< T * >.

Definition at line 256 of file cmtkMatrix.h.

template<class T >
typedef Matrix2D<T*> cmtk::Matrix3D< T >::Superclass

Superclass.

Reimplemented from cmtk::Matrix2D< T * >.

Definition at line 259 of file cmtkMatrix.h.


Constructor & Destructor Documentation

template<class T >
cmtk::Matrix3D< T >::Matrix3D ( const size_t  dims2,
const size_t  dims1,
const size_t  dims0 
) [inline]

Constructor: allocate and create cross-references.

Definition at line 263 of file cmtkMatrix.h.


Member Function Documentation

template<class T >
size_t cmtk::Matrix3D< T >::GetNumberOfPlanes (  ) const [inline]

Return number of planes.

Definition at line 279 of file cmtkMatrix.h.

template<class T >
Matrix2D<T>& cmtk::Matrix3D< T >::operator= ( const Matrix2D< T > &  other ) [inline]

Copy another matrix.

Definition at line 328 of file cmtkMatrix.h.

References cmtk::Matrix2D< T >::GetNumberOfColumns(), and cmtk::Matrix2D< T >::GetNumberOfRows().

template<class T >
void cmtk::Matrix3D< T >::Resize ( const size_t  numberOfRows,
const size_t  numberOfColumns,
const size_t  numberOfPlanes 
) [inline]

Resize the matrix.

Definition at line 285 of file cmtkMatrix.h.

References cmtk::Memory::DeleteArray(), and NULL.

template<class T >
void cmtk::Matrix3D< T >::SetAll ( const T  value ) [inline]

Set all values.

Definition at line 319 of file cmtkMatrix.h.

template<class T >
void cmtk::Matrix3D< T >::SetAllToZero (  ) [inline]

Reset all values to zero.

Reimplemented from cmtk::Matrix2D< T * >.

Definition at line 313 of file cmtkMatrix.h.


Member Data Documentation

template<class T >
size_t cmtk::Matrix3D< T >::m_NumberOfElements [private]

Number of matrix elements.

Reimplemented from cmtk::Matrix2D< T * >.

Definition at line 340 of file cmtkMatrix.h.

template<class T >
size_t cmtk::Matrix3D< T >::m_NumberOfPlanes [private]

Planes in the 3D matrix.

Definition at line 337 of file cmtkMatrix.h.


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