Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::NthElementPixelAccessor< T, TContainer > Class Template Reference
[Image Adaptors]

Give access to the N-th of a Container type. More...

#include <itkNthElementPixelAccessor.h>

List of all members.

Public Types

typedef NthElementPixelAccessor Self
typedef T ExternalType
typedef TContainer InternalType

Public Member Functions

void Set (InternalType &output, const ExternalType &input) const
ExternalType Get (const InternalType &input) const
unsigned int GetElementNumber (void) const
void SetElementNumber (unsigned int nth)
bool operator!= (const Self &accessor) const
NthElementPixelAccessoroperator= (const NthElementPixelAccessor &accessor)
 NthElementPixelAccessor ()


Detailed Description

template<class T, class TContainer>
class itk::NthElementPixelAccessor< T, TContainer >

Give access to the N-th of a Container type.

This class is intended to be used as parameter of an ImageAdaptor to make a Container appears as being of scalar type T, showing only the N-th component.

This class is templated over the container type. Any container type that provides a method: operator[]( unsigned int ) can be used here, for example: itkPoint, itkVector, itkVectorContainer, and std::vector.

For performance, no bound checking is performed during access to the n-th element.

See also:
ImageAdaptor

PixelAccessor

Definition at line 48 of file itkNthElementPixelAccessor.h.


Member Typedef Documentation

template<class T, class TContainer>
typedef T itk::NthElementPixelAccessor< T, TContainer >::ExternalType
 

that this class will exhibit

Definition at line 55 of file itkNthElementPixelAccessor.h.

Referenced by itk::NthElementPixelAccessor< T, TContainer >::Get(), and itk::NthElementPixelAccessor< T, TContainer >::Set().

template<class T, class TContainer>
typedef TContainer itk::NthElementPixelAccessor< T, TContainer >::InternalType
 

Internal typedef. It defines the internal real representation of data

Definition at line 59 of file itkNthElementPixelAccessor.h.

Referenced by itk::NthElementPixelAccessor< T, TContainer >::Get(), and itk::NthElementPixelAccessor< T, TContainer >::Set().

template<class T, class TContainer>
typedef NthElementPixelAccessor itk::NthElementPixelAccessor< T, TContainer >::Self
 

Standard class typedefs.

Definition at line 52 of file itkNthElementPixelAccessor.h.

Referenced by itk::NthElementPixelAccessor< T, TContainer >::operator!=().


Constructor & Destructor Documentation

template<class T, class TContainer>
itk::NthElementPixelAccessor< T, TContainer >::NthElementPixelAccessor  )  [inline]
 

Constructor

Definition at line 92 of file itkNthElementPixelAccessor.h.


Member Function Documentation

template<class T, class TContainer>
ExternalType itk::NthElementPixelAccessor< T, TContainer >::Get const InternalType input  )  const [inline]
 

Read access to the NthElement component

Definition at line 66 of file itkNthElementPixelAccessor.h.

References itk::NthElementPixelAccessor< T, TContainer >::ExternalType, and itk::NthElementPixelAccessor< T, TContainer >::InternalType.

template<class T, class TContainer>
unsigned int itk::NthElementPixelAccessor< T, TContainer >::GetElementNumber void   )  const [inline]
 

Get the element number to access in the container

Definition at line 70 of file itkNthElementPixelAccessor.h.

template<class T, class TContainer>
bool itk::NthElementPixelAccessor< T, TContainer >::operator!= const Self accessor  )  const [inline]
 

operator!=. This is needed to convert a pixel accessor to a functor.

See also:
AdaptImageFilter

Definition at line 79 of file itkNthElementPixelAccessor.h.

References itk::NthElementPixelAccessor< T, TContainer >::m_ElementNumber, and itk::NthElementPixelAccessor< T, TContainer >::Self.

template<class T, class TContainer>
NthElementPixelAccessor& itk::NthElementPixelAccessor< T, TContainer >::operator= const NthElementPixelAccessor< T, TContainer > &  accessor  )  [inline]
 

Assignment operator

Definition at line 85 of file itkNthElementPixelAccessor.h.

References itk::NthElementPixelAccessor< T, TContainer >::m_ElementNumber.

template<class T, class TContainer>
void itk::NthElementPixelAccessor< T, TContainer >::Set InternalType output,
const ExternalType input
const [inline]
 

Write access to the NthElement component

Definition at line 62 of file itkNthElementPixelAccessor.h.

References itk::NthElementPixelAccessor< T, TContainer >::ExternalType, and itk::NthElementPixelAccessor< T, TContainer >::InternalType.

template<class T, class TContainer>
void itk::NthElementPixelAccessor< T, TContainer >::SetElementNumber unsigned int  nth  )  [inline]
 

Set the element number to access in the container

Definition at line 74 of file itkNthElementPixelAccessor.h.


The documentation for this class was generated from the following file:
Generated at Thu May 25 01:58:46 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000