#include <itkSupportInputMeshTypes.h>
Instantiatiate a Pipeline functor over multiple pixel types and dimensions and match to the input mesh type.
Instantiate the PipelineFunctor (function object) over multiple pixel types and mesh dimensions. If the input mesh matches these pixel types or dimensions, use the compile-time optimized pipeline for that mesh type. Otherwise, exit the pipeline with an error identifying the unsupported mesh type.
Example usage:
[...]
It is assumed that the cell and point data will have the same pixel type.
The number of pixel components is taken from the point pixel data. If there are 0 point pixel data components, the cell pixel data components are queried.
Definition at line 91 of file itkSupportInputMeshTypes.h.
Static Public Member Functions | |
| template<unsigned int... VDimensions> | |
| static int | Dimensions (const std::string &inputMeshOptionName, Pipeline &pipeline) |
Static Private Member Functions | |
| template<unsigned int VDimension, unsigned int... VDimensions> | |
| static int | IterateDimensions (Pipeline &pipeline, const MeshTypeJSON &meshType, bool passThrough=false) |
| template<unsigned int VDimension, typename TPixel, typename... TPixelsRest> | |
| static int | IteratePixelTypes (Pipeline &pipeline, const MeshTypeJSON &meshType, bool passThrough=false) |
|
inlinestatic |
Definition at line 96 of file itkSupportInputMeshTypes.h.
References itk::wasm::Pipeline::get_argc(), itk::wasm::Pipeline::get_argv(), IterateDimensions(), and ITK_WASM_PRE_PARSE.
|
inlinestaticprivate |
Definition at line 174 of file itkSupportInputMeshTypes.h.
References itk::MeshTypeJSON::dimension, itk::wasm::Pipeline::exit(), IterateDimensions(), and IteratePixelTypes().
Referenced by Dimensions(), and IterateDimensions().
|
inlinestaticprivate |
Definition at line 128 of file itkSupportInputMeshTypes.h.
References itk::MeshTypeJSON::cellPixelComponents, itk::wasm::Pipeline::exit(), IteratePixelTypes(), itk::wasm::MapComponentType< TComponent >::JSONComponentEnum, itk::wasm::MapPixelType< TPixel >::JSONPixelEnum, itk::MeshTypeJSON::pointPixelComponents, itk::MeshTypeJSON::pointPixelComponentType, itk::MeshTypeJSON::pointPixelType, itk::VariableLengthVector, and itk::VariableSizeMatrix.
Referenced by IterateDimensions(), and IteratePixelTypes().