DMRITool  v0.1.1-139-g860d86b4
Diffusion MRI Tool
Public Types | Public Member Functions | Private Attributes | List of all members
itk::SpatiallyDenseSparseVectorImagePixelAccessor< TValueType, TKeyType > Class Template Reference

#include <itkSpatiallyDenseSparseVectorImagePixelAccessor.h>

Detailed Description

template<class TValueType, class TKeyType>
class itk::SpatiallyDenseSparseVectorImagePixelAccessor< TValueType, TKeyType >

Give access to partial aspects of a type.

SpatiallyDenseSparseVectorImagePixelAccessor is specifically meant to provide SpatiallyDenseSparseVectorImage with the same DefaultPixelAccessor interface that DefaultPixelAccessor provides to Image.

SpatiallyDenseSparseVectorImagePixelAccessor is templated over an internal type and an external type representation. This class encapsulates a customized convertion between the internal and external type representations.

Definition at line 43 of file itkSpatiallyDenseSparseVectorImagePixelAccessor.h.

Public Types

typedef VariableLengthVector< TValueType > ExternalType
 
typedef SparseVector< TValueType, TKeyType > InternalType
 
typedef unsigned long VectorLengthType
 

Public Member Functions

ExternalType Get (const InternalType &input, const SizeValueType offset) const
 
VectorLengthType GetVectorLength () const
 
void Set (InternalType &output, const ExternalType &input, const SizeValueType offset) const
 
void SetVectorLength (VectorLengthType length)
 
 SpatiallyDenseSparseVectorImagePixelAccessor ()
 
 SpatiallyDenseSparseVectorImagePixelAccessor (ExternalType fillBufferValue, VectorLengthType length)
 
virtual ~SpatiallyDenseSparseVectorImagePixelAccessor ()
 

Private Attributes

ExternalType m_FillBufferValue
 
VectorLengthType m_VectorLength
 

Member Typedef Documentation

template<class TValueType , class TKeyType >
typedef VariableLengthVector<TValueType> itk::SpatiallyDenseSparseVectorImagePixelAccessor< TValueType, TKeyType >::ExternalType

External typedef. It defines the external aspect that this class will exhibit.

Definition at line 49 of file itkSpatiallyDenseSparseVectorImagePixelAccessor.h.

template<class TValueType , class TKeyType >
typedef SparseVector<TValueType, TKeyType> itk::SpatiallyDenseSparseVectorImagePixelAccessor< TValueType, TKeyType >::InternalType

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

Definition at line 53 of file itkSpatiallyDenseSparseVectorImagePixelAccessor.h.

template<class TValueType , class TKeyType >
typedef unsigned long itk::SpatiallyDenseSparseVectorImagePixelAccessor< TValueType, TKeyType >::VectorLengthType

Constructor & Destructor Documentation

template<class TValueType , class TKeyType >
itk::SpatiallyDenseSparseVectorImagePixelAccessor< TValueType, TKeyType >::SpatiallyDenseSparseVectorImagePixelAccessor ( )
inline
template<class TValueType , class TKeyType >
itk::SpatiallyDenseSparseVectorImagePixelAccessor< TValueType, TKeyType >::SpatiallyDenseSparseVectorImagePixelAccessor ( ExternalType  fillBufferValue,
VectorLengthType  length 
)
inline

Constructor to initialize slices and image size at construction time

Definition at line 109 of file itkSpatiallyDenseSparseVectorImagePixelAccessor.h.

template<class TValueType , class TKeyType >
virtual itk::SpatiallyDenseSparseVectorImagePixelAccessor< TValueType, TKeyType >::~SpatiallyDenseSparseVectorImagePixelAccessor ( )
inlinevirtual

Member Function Documentation

template<class TValueType , class TKeyType >
ExternalType itk::SpatiallyDenseSparseVectorImagePixelAccessor< TValueType, TKeyType >::Get ( const InternalType input,
const SizeValueType  offset 
) const
inline

Get the value from input

Definition at line 73 of file itkSpatiallyDenseSparseVectorImagePixelAccessor.h.

template<class TValueType , class TKeyType >
VectorLengthType itk::SpatiallyDenseSparseVectorImagePixelAccessor< TValueType, TKeyType >::GetVectorLength ( ) const
inline

Get Vector lengths

Definition at line 104 of file itkSpatiallyDenseSparseVectorImagePixelAccessor.h.

template<class TValueType , class TKeyType >
void itk::SpatiallyDenseSparseVectorImagePixelAccessor< TValueType, TKeyType >::Set ( InternalType output,
const ExternalType input,
const SizeValueType  offset 
) const
inline

Set output using the value in input

Definition at line 58 of file itkSpatiallyDenseSparseVectorImagePixelAccessor.h.

References itk::SparseVector< TValueType, TKeyType >::Clear().

+ Here is the call graph for this function:

template<class TValueType , class TKeyType >
void itk::SpatiallyDenseSparseVectorImagePixelAccessor< TValueType, TKeyType >::SetVectorLength ( VectorLengthType  length)
inline

Set the length of each vector in the VectorImage

Definition at line 98 of file itkSpatiallyDenseSparseVectorImagePixelAccessor.h.

Member Data Documentation

template<class TValueType , class TKeyType >
ExternalType itk::SpatiallyDenseSparseVectorImagePixelAccessor< TValueType, TKeyType >::m_FillBufferValue
private
template<class TValueType , class TKeyType >
VectorLengthType itk::SpatiallyDenseSparseVectorImagePixelAccessor< TValueType, TKeyType >::m_VectorLength
private

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