ITK  5.3.0
Insight Toolkit
Public Types | Public Member Functions | Protected Types | Private Attributes | List of all members
itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > > Class Template Reference

#include <itkNthElementPixelAccessor.h>

+ Inheritance diagram for itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >:
+ Collaboration diagram for itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >:

Public Types

using ActualPixelType = VariableLengthVector< TPixelType >
 
using ExternalType = TOutputPixelType
 
using InternalType = TPixelType
 
using Self = NthElementPixelAccessor
 
using VectorLengthType = unsigned int
 

Public Member Functions

ExternalType Get (const ActualPixelType &input) const
 
ExternalType Get (const InternalType &input, const SizeValueType offset) const
 
unsigned int GetElementNumber () const
 
VectorLengthType GetVectorLength () const
 
 ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION (Self)
 
 NthElementPixelAccessor (unsigned int length=1)
 
bool operator== (const Self &accessor) const
 
void Set (ActualPixelType &output, const ExternalType &input) const
 
void Set (InternalType &output, const ExternalType &input, const unsigned long offset) const
 
void SetElementNumber (unsigned int nth)
 
void SetVectorLength (VectorLengthType l)
 
NthElementPixelAccessoroperator= (const NthElementPixelAccessor &accessor)
 

Protected Types

using Superclass = DefaultVectorPixelAccessor< TPixelType >
 

Private Attributes

VectorLengthType m_ElementNumber { 0 }
 

Additional Inherited Members

- Private Types inherited from itk::DefaultVectorPixelAccessor< TPixelType >
using ExternalType = VariableLengthVector< TPixelType >
 
using InternalType = TPixelType
 
using VectorLengthType = unsigned int
 
- Private Member Functions inherited from itk::DefaultVectorPixelAccessor< TPixelType >
 DefaultVectorPixelAccessor ()=default
 
 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
 
 ~DefaultVectorPixelAccessor ()=default
 
void SetVectorLength (VectorLengthType l)
 

Detailed Description

template<typename TOutputPixelType, typename TPixelType>
class itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >

Definition at line 122 of file itkNthElementPixelAccessor.h.

Member Typedef Documentation

◆ ActualPixelType

template<typename TOutputPixelType , typename TPixelType >
using itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::ActualPixelType = VariableLengthVector<TPixelType>

Definition at line 138 of file itkNthElementPixelAccessor.h.

◆ ExternalType

template<typename TOutputPixelType , typename TPixelType >
using itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::ExternalType = TOutputPixelType

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

Definition at line 133 of file itkNthElementPixelAccessor.h.

◆ InternalType

template<typename TOutputPixelType , typename TPixelType >
using itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::InternalType = TPixelType

Internal type alias used by the ImageAdaptor for the buffer pointer

Definition at line 136 of file itkNthElementPixelAccessor.h.

◆ Self

template<typename TOutputPixelType , typename TPixelType >
using itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::Self = NthElementPixelAccessor

Standard class type aliases.

Definition at line 127 of file itkNthElementPixelAccessor.h.

◆ Superclass

template<typename TOutputPixelType , typename TPixelType >
using itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::Superclass = DefaultVectorPixelAccessor<TPixelType>
protected

Definition at line 223 of file itkNthElementPixelAccessor.h.

◆ VectorLengthType

template<typename TOutputPixelType , typename TPixelType >
using itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::VectorLengthType = unsigned int

Definition at line 129 of file itkNthElementPixelAccessor.h.

Constructor & Destructor Documentation

◆ NthElementPixelAccessor()

template<typename TOutputPixelType , typename TPixelType >
itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::NthElementPixelAccessor ( unsigned int  length = 1)
inline

Definition at line 200 of file itkNthElementPixelAccessor.h.

Member Function Documentation

◆ Get() [1/2]

template<typename TOutputPixelType , typename TPixelType >
ExternalType itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::Get ( const ActualPixelType input) const
inline

◆ Get() [2/2]

template<typename TOutputPixelType , typename TPixelType >
ExternalType itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::Get ( const InternalType input,
const SizeValueType  offset 
) const
inline

◆ GetElementNumber()

template<typename TOutputPixelType , typename TPixelType >
unsigned int itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::GetElementNumber ( ) const
inline

Get the element number to access in the container

Definition at line 174 of file itkNthElementPixelAccessor.h.

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

◆ GetVectorLength()

template<typename TOutputPixelType , typename TPixelType >
VectorLengthType itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::GetVectorLength ( ) const
inline

Get Vector lengths

Definition at line 195 of file itkNthElementPixelAccessor.h.

◆ ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION()

template<typename TOutputPixelType , typename TPixelType >
itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION ( Self  )

◆ operator=()

template<typename TOutputPixelType , typename TPixelType >
NthElementPixelAccessor& itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::operator= ( const NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > > &  accessor)
inline

Assignment operator

Definition at line 214 of file itkNthElementPixelAccessor.h.

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

◆ operator==()

template<typename TOutputPixelType , typename TPixelType >
bool itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::operator== ( const Self accessor) const
inline

This is needed to convert a pixel accessor to a functor.

See also
AdaptImageFilter

Definition at line 205 of file itkNthElementPixelAccessor.h.

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

◆ Set() [1/2]

template<typename TOutputPixelType , typename TPixelType >
void itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::Set ( ActualPixelType output,
const ExternalType input 
) const
inline

◆ Set() [2/2]

template<typename TOutputPixelType , typename TPixelType >
void itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::Set ( InternalType output,
const ExternalType input,
const unsigned long  offset 
) const
inline

◆ SetElementNumber()

template<typename TOutputPixelType , typename TPixelType >
void itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::SetElementNumber ( unsigned int  nth)
inline

Set the element number to access in the container

Definition at line 181 of file itkNthElementPixelAccessor.h.

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

◆ SetVectorLength()

template<typename TOutputPixelType , typename TPixelType >
void itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::SetVectorLength ( VectorLengthType  l)
inline

Set the length of each vector in the VectorImage

Definition at line 188 of file itkNthElementPixelAccessor.h.

Member Data Documentation

◆ m_ElementNumber

template<typename TOutputPixelType , typename TPixelType >
VectorLengthType itk::NthElementPixelAccessor< TOutputPixelType, itk::VariableLengthVector< TPixelType > >::m_ElementNumber { 0 }
private

Definition at line 226 of file itkNthElementPixelAccessor.h.


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