ITK  4.2.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Private Attributes
itk::DefaultVectorPixelAccessor< TType > Class Template Reference

#include <itkDefaultVectorPixelAccessor.h>

+ Inheritance diagram for itk::DefaultVectorPixelAccessor< TType >:

List of all members.

Public Types

typedef VariableLengthVector
< TType > 
ExternalType
typedef TType InternalType
typedef unsigned int VectorLengthType

Public Member Functions

 DefaultVectorPixelAccessor ()
 DefaultVectorPixelAccessor (VectorLengthType l)
ExternalType Get (const InternalType &input, const SizeValueType offset) const
VectorLengthType GetVectorLength () const
void Set (InternalType &output, const ExternalType &input, const unsigned long offset) const
virtual ~DefaultVectorPixelAccessor ()
void SetVectorLength (VectorLengthType l)

Private Attributes

VectorLengthType m_OffsetMultiplier
VectorLengthType m_VectorLength

Detailed Description

template<class TType>
class itk::DefaultVectorPixelAccessor< TType >

Give access to partial aspects of a type.

DefaultVectorPixelAccessor is specifically meant to provide VectorImage with the same DefaultPixelAccessor interface that DefaultPixelAccessor provides to Image.

The template parameters is the type that is contained in by the elements of a vector.

The class also contains a m_VectorLength parameter, set with the SetVectorLength method to set the length of the vectors. This must be set before the accessor can be used. This is the length of each of the vector containers.

Note:
This work is part of the National Alliance for Medical Image Computing (NAMIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149.

Definition at line 50 of file itkDefaultVectorPixelAccessor.h.


Member Typedef Documentation

template<class TType>
typedef VariableLengthVector< TType > itk::DefaultVectorPixelAccessor< TType >::ExternalType

External typedef. It defines the external aspect that this class will exhibit. Here it is an VariableLengthVector. The container does not manage the memory. In other words it is an array reference with the contents pointing to the actual data in the image.

Reimplemented in itk::Accessor::VectorImageToImagePixelAccessor< TType >, and itk::Accessor::VectorImageToImagePixelAccessor< TPixelType >.

Definition at line 60 of file itkDefaultVectorPixelAccessor.h.

template<class TType>
typedef TType itk::DefaultVectorPixelAccessor< TType >::InternalType

Internal typedef. It defines the internal real representation of data.

Reimplemented in itk::Accessor::VectorImageToImagePixelAccessor< TType >, and itk::Accessor::VectorImageToImagePixelAccessor< TPixelType >.

Definition at line 63 of file itkDefaultVectorPixelAccessor.h.

template<class TType>
typedef unsigned int itk::DefaultVectorPixelAccessor< TType >::VectorLengthType

Constructor & Destructor Documentation

template<class TType>
itk::DefaultVectorPixelAccessor< TType >::DefaultVectorPixelAccessor ( )
inline

Definition at line 96 of file itkDefaultVectorPixelAccessor.h.

template<class TType>
itk::DefaultVectorPixelAccessor< TType >::DefaultVectorPixelAccessor ( VectorLengthType  l)
inline

Constructor to initialize VectorLength at construction time

Definition at line 99 of file itkDefaultVectorPixelAccessor.h.

template<class TType>
virtual itk::DefaultVectorPixelAccessor< TType >::~DefaultVectorPixelAccessor ( )
inlinevirtual

Definition at line 105 of file itkDefaultVectorPixelAccessor.h.


Member Function Documentation

template<class TType>
ExternalType itk::DefaultVectorPixelAccessor< TType >::Get ( const InternalType input,
const SizeValueType  offset 
) const
inline
template<class TType>
VectorLengthType itk::DefaultVectorPixelAccessor< TType >::GetVectorLength ( ) const
inline
template<class TType>
void itk::DefaultVectorPixelAccessor< TType >::Set ( InternalType output,
const ExternalType input,
const unsigned long  offset 
) const
inline
template<class TType>
void itk::DefaultVectorPixelAccessor< TType >::SetVectorLength ( VectorLengthType  l)
inline

Member Data Documentation

template<class TType>
VectorLengthType itk::DefaultVectorPixelAccessor< TType >::m_OffsetMultiplier
private

Definition at line 108 of file itkDefaultVectorPixelAccessor.h.

template<class TType>
VectorLengthType itk::DefaultVectorPixelAccessor< TType >::m_VectorLength
private

Definition at line 107 of file itkDefaultVectorPixelAccessor.h.


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