ITK  5.1.0
Insight Toolkit
Public Types | Public Member Functions | 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
 
 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)
 
using Superclass = DefaultVectorPixelAccessor< TPixelType >
 
VectorLengthType m_ElementNumber { 0 }
 
NthElementPixelAccessoroperator= (const NthElementPixelAccessor &accessor)
 

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 >
ExternalType Get (const InternalType &input, const SizeValueType offset) const
 
void Set (InternalType &output, const ExternalType &input, const unsigned long offset) const
 
void SetVectorLength (VectorLengthType l)
 
VectorLengthType GetVectorLength () const
 
 DefaultVectorPixelAccessor ()=default
 
 DefaultVectorPixelAccessor (VectorLengthType l)
 
 ~DefaultVectorPixelAccessor ()=default
 

Detailed Description

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

Definition at line 119 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 135 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 130 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 133 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 124 of file itkNthElementPixelAccessor.h.

◆ Superclass

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

Assignment operator

Definition at line 218 of file itkNthElementPixelAccessor.h.

◆ VectorLengthType

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

Definition at line 126 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 197 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 171 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 192 of file itkNthElementPixelAccessor.h.

◆ operator!=()

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

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

See also
AdaptImageFilter

Definition at line 202 of file itkNthElementPixelAccessor.h.

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

◆ 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 209 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 178 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 185 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

Assignment operator

Definition at line 221 of file itkNthElementPixelAccessor.h.


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