ITK  5.0.0
Insight Segmentation and Registration Toolkit
Classes | Namespaces | Macros | Functions
itkMeshConvertPixelTraits.h File Reference
#include "itkArray.h"
#include "itkMatrix.h"
#include "itkOffset.h"
#include "itkCovariantVector.h"
#include "itkVariableLengthVector.h"
#include "itkVector.h"
#include "itkPoint.h"
+ Include dependency graph for itkMeshConvertPixelTraits.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  itk::MeshConvertPixelTraits< PixelType >
 

Namespaces

 itk
 

Macros

#define ITK_DEFAULTCONVERTTRAITS_NATIVE_SPECIAL(type)
 
#define ITK_MESH_DEFAULTCONVERTTRAITS_ARRAY_TYPE(type, componenttype)
 
#define ITK_MESH_DEFAULTCONVERTTRAITS_ARRAY_TYPE_ALL_TYPES_MACRO(ArrayType)
 
#define ITK_MESH_DEFAULTCONVERTTRAITS_COMPLEX_TYPE(componenttype)
 
#define ITK_MESH_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE(type, componenttype, dimension)
 
#define ITK_MESH_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_MACRO(ArrayType, Type)
 
#define ITK_MESH_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_TYPES_MACRO(ArrayType)
 
#define ITK_MESH_DEFAULTCONVERTTRAITS_MATRIX_TYPE(type, componenttype, rows, cols)
 
#define ITK_MESH_DEFAULTCONVERTTRAITS_MATRIX_TYPE_ALL_MACRO(ArrayType, Type)
 
#define ITK_MESH_DEFAULTCONVERTTRAITS_MATRIX_TYPE_ALL_TYPES_MACRO(ArrayType)
 
#define ITK_MESH_DEFAULTCONVERTTRAITS_OFFSET_TYPE(dimension)
 

Functions

 itk::ITK_MESH_DEFAULTCONVERTTRAITS_ARRAY_TYPE_ALL_TYPES_MACRO (Array)
 
 itk::ITK_MESH_DEFAULTCONVERTTRAITS_ARRAY_TYPE_ALL_TYPES_MACRO (VariableLengthVector)
 
 itk::ITK_MESH_DEFAULTCONVERTTRAITS_COMPLEX_TYPE (float)
 
 itk::ITK_MESH_DEFAULTCONVERTTRAITS_COMPLEX_TYPE (double)
 
 itk::ITK_MESH_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_TYPES_MACRO (Vector)
 
 itk::ITK_MESH_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_TYPES_MACRO (CovariantVector)
 
 itk::ITK_MESH_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_TYPES_MACRO (Point)
 
 itk::ITK_MESH_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_TYPES_MACRO (FixedArray)
 
 itk::ITK_MESH_DEFAULTCONVERTTRAITS_MATRIX_TYPE_ALL_TYPES_MACRO (Matrix)
 

Macro Definition Documentation

#define ITK_DEFAULTCONVERTTRAITS_NATIVE_SPECIAL (   type)
Value:
template<> \
class MeshConvertPixelTraits<type> \
{ \
public: \
using ComponentType = type; \
static unsigned int GetNumberOfComponents() \
{ \
return 1; \
} \
static unsigned int GetNumberOfComponents(const type& itkNotUsed(pixel))\
{ \
return 1; \
} \
static ComponentType GetNthComponent(int itkNotUsed(c), const type& pixel)\
{ \
return pixel; \
} \
static void SetNthComponent(int , type& pixel, const ComponentType& v) \
{ \
pixel = v; \
} \
static type GetScalarValue(const type& pixel) \
{ \
return pixel; \
} \
};

Definition at line 72 of file itkMeshConvertPixelTraits.h.

#define ITK_MESH_DEFAULTCONVERTTRAITS_ARRAY_TYPE (   type,
  componenttype 
)
Value:
template<> \
class MeshConvertPixelTraits< type< componenttype> > \
{ \
public: \
using TargetType = type< componenttype >; \
using ComponentType = componenttype; \
static unsigned int GetNumberOfComponents() \
{ \
return 0; \
} \
static unsigned int GetNumberOfComponents(const TargetType& pixel) \
{ \
return pixel.Size(); \
} \
static ComponentType GetNthComponent(int c, const TargetType& pixel) \
{ \
return pixel[c]; \
} \
static void SetNthComponent(int i, TargetType & pixel, const ComponentType& v) \
{ \
pixel[i] = v; \
} \
static ComponentType GetScalarValue(const TargetType& pixel) \
{ \
return pixel[0]; \
} \
}; \

Definition at line 351 of file itkMeshConvertPixelTraits.h.

#define ITK_MESH_DEFAULTCONVERTTRAITS_ARRAY_TYPE_ALL_TYPES_MACRO (   ArrayType)
Value:

Definition at line 380 of file itkMeshConvertPixelTraits.h.

#define ITK_MESH_DEFAULTCONVERTTRAITS_COMPLEX_TYPE (   componenttype)

Definition at line 305 of file itkMeshConvertPixelTraits.h.

#define ITK_MESH_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE (   type,
  componenttype,
  dimension 
)
Value:
template<> \
class MeshConvertPixelTraits< type< componenttype, dimension> > \
{ \
public: \
using TargetType = type< componenttype, dimension >; \
using ComponentType = componenttype; \
static unsigned int GetNumberOfComponents() \
{ \
return dimension; \
} \
static unsigned int GetNumberOfComponents(const TargetType& itkNotUsed(pixel)) \
{ \
return dimension; \
} \
static ComponentType GetNthComponent(int c, const TargetType& pixel) \
{ \
return pixel[c]; \
} \
static void SetNthComponent(int i, TargetType & pixel, const ComponentType& v) \
{ \
pixel[i] = v; \
} \
static ComponentType GetScalarValue(const TargetType& pixel) \
{ \
return pixel[0]; \
} \
}; \

Definition at line 160 of file itkMeshConvertPixelTraits.h.

#define ITK_MESH_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_MACRO (   ArrayType,
  Type 
)
#define ITK_MESH_DEFAULTCONVERTTRAITS_FIXEDARRAY_TYPE_ALL_TYPES_MACRO (   ArrayType)
#define ITK_MESH_DEFAULTCONVERTTRAITS_MATRIX_TYPE (   type,
  componenttype,
  rows,
  cols 
)

Definition at line 231 of file itkMeshConvertPixelTraits.h.

#define ITK_MESH_DEFAULTCONVERTTRAITS_MATRIX_TYPE_ALL_MACRO (   ArrayType,
  Type 
)
Value:
#define ITK_MESH_DEFAULTCONVERTTRAITS_MATRIX_TYPE(type, componenttype, rows, cols)

Definition at line 269 of file itkMeshConvertPixelTraits.h.

#define ITK_MESH_DEFAULTCONVERTTRAITS_MATRIX_TYPE_ALL_TYPES_MACRO (   ArrayType)
#define ITK_MESH_DEFAULTCONVERTTRAITS_OFFSET_TYPE (   dimension)
Value:
template<> \
class MeshConvertPixelTraits< Offset<dimension> > \
{ \
public: \
using TargetType = Offset<dimension>; \
using ComponentType = TargetType::OffsetValueType; \
static unsigned int GetNumberOfComponents() \
{ \
return dimension; \
} \
static unsigned int GetNumberOfComponents(const TargetType& itkNotUsed(pixel)) \
{ \
return dimension; \
} \
static ComponentType GetNthComponent(int c, const TargetType& pixel) \
{ \
return pixel[c]; \
} \
static void SetNthComponent(int i, TargetType & pixel, const ComponentType& v) \
{ \
pixel[i] = v; \
} \
static ComponentType GetScalarValue(const TargetType& pixel) \
{ \
return pixel[0]; \
} \
}; \
signed long OffsetValueType
Definition: itkIntTypes.h:94

Definition at line 119 of file itkMeshConvertPixelTraits.h.