OTB
9.0.0
Orfeo Toolbox
|
#include <otbVariadicInputsImageFilter.h>
Public Types | |
using | ConstPointer = itk::SmartPointer< const Self > |
template<vcl_size_t I> | |
using | InputImageType = typename std::tuple_element< I, InputTypesTupleType >::type |
using | InputTypesTupleType = std::tuple< TInputs... > |
using | Pointer = itk::SmartPointer< Self > |
using | Self = VariadicInputsImageFilter< TOuptut, TInputs... > |
using | Superclass = itk::ImageSource< TOuptut > |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static constexpr vcl_size_t | NumberOfInputs = std::tuple_size<InputTypesTupleType>::value |
template<std::vcl_size_t I = 0> | |
void | SetInput (const InputImageType< I > *inputPtr) |
DefineLegacySetInputMacro (1) | |
DefineLegacySetInputMacro (2) | |
DefineLegacySetInputMacro (3) | |
DefineLegacySetInputMacro (4) | |
DefineLegacySetInputMacro (5) | |
DefineLegacySetInputMacro (6) | |
DefineLegacySetInputMacro (7) | |
DefineLegacySetInputMacro (8) | |
DefineLegacySetInputMacro (9) | |
DefineLegacySetInputMacro (10) | |
template<std::vcl_size_t I = 0> | |
const InputImageType< I > * | GetInput () |
void | SetInputs (TInputs *... inputs) |
auto | GetInputs () |
VariadicInputsImageFilter () | |
~VariadicInputsImageFilter ()=default | |
template<class Tuple , vcl_size_t... Is> | |
void | SetInputsImpl (Tuple &t, std::index_sequence< Is... >) |
template<vcl_size_t... Is> | |
auto | GetInputsImpl (std::index_sequence< Is... >) |
VariadicInputsImageFilter (const Self &)=delete | |
void | operator= (const Self &)=delete |
Base class for image filter with variadic inputs.
This filter act as a base class for all filters that will take several input images with different types and produce an output image.
Type for each input is taken from the variadic template parameter TInputs.
Inputs get be set/get with SetInput<N>() and GetInput<N>(), when N is the index (first input is 0) of the input. This is resolved at compile time: you can not call SetInput<N>() with an argument not matching the Nth input type (it will lead to type mismatch compilation error).
Note that you can also call SetInput() and GetInput() which will automatically fetch the first input.
Alternatively, you can call SetInputs() with all the input image in the same order as in the template parameters.
Last, there is a macro that generates SetInput1() ... SetInput10() (iff the number of varidic input types is large enough) for backward compatibility.
Definition at line 58 of file otbVariadicInputsImageFilter.h.
using otb::VariadicInputsImageFilter< TOuptut, TInputs >::ConstPointer = itk::SmartPointer<const Self> |
Definition at line 63 of file otbVariadicInputsImageFilter.h.
using otb::VariadicInputsImageFilter< TOuptut, TInputs >::InputImageType = typename std::tuple_element<I, InputTypesTupleType>::type |
Definition at line 70 of file otbVariadicInputsImageFilter.h.
using otb::VariadicInputsImageFilter< TOuptut, TInputs >::InputTypesTupleType = std::tuple<TInputs...> |
Definition at line 67 of file otbVariadicInputsImageFilter.h.
using otb::VariadicInputsImageFilter< TOuptut, TInputs >::Pointer = itk::SmartPointer<Self> |
Definition at line 62 of file otbVariadicInputsImageFilter.h.
using otb::VariadicInputsImageFilter< TOuptut, TInputs >::Self = VariadicInputsImageFilter<TOuptut, TInputs...> |
Definition at line 61 of file otbVariadicInputsImageFilter.h.
using otb::VariadicInputsImageFilter< TOuptut, TInputs >::Superclass = itk::ImageSource<TOuptut> |
Definition at line 64 of file otbVariadicInputsImageFilter.h.
|
inlineprotected |
Set | the Ith input |
Definition at line 141 of file otbVariadicInputsImageFilter.h.
|
protecteddefault |
Set | the Ith input |
|
privatedelete |
Set | the Ith input |
virtual::itk::LightObject::Pointer otb::VariadicInputsImageFilter< TOuptut, TInputs >::CreateAnother | ( | void | ) | const |
otb::VariadicInputsImageFilter< TOuptut, TInputs >::DefineLegacySetInputMacro | ( | 1 | ) |
Set | the Ith input |
otb::VariadicInputsImageFilter< TOuptut, TInputs >::DefineLegacySetInputMacro | ( | 10 | ) |
Set | the Ith input |
otb::VariadicInputsImageFilter< TOuptut, TInputs >::DefineLegacySetInputMacro | ( | 2 | ) |
Set | the Ith input |
otb::VariadicInputsImageFilter< TOuptut, TInputs >::DefineLegacySetInputMacro | ( | 3 | ) |
Set | the Ith input |
otb::VariadicInputsImageFilter< TOuptut, TInputs >::DefineLegacySetInputMacro | ( | 4 | ) |
Set | the Ith input |
otb::VariadicInputsImageFilter< TOuptut, TInputs >::DefineLegacySetInputMacro | ( | 5 | ) |
Set | the Ith input |
otb::VariadicInputsImageFilter< TOuptut, TInputs >::DefineLegacySetInputMacro | ( | 6 | ) |
Set | the Ith input |
otb::VariadicInputsImageFilter< TOuptut, TInputs >::DefineLegacySetInputMacro | ( | 7 | ) |
Set | the Ith input |
otb::VariadicInputsImageFilter< TOuptut, TInputs >::DefineLegacySetInputMacro | ( | 8 | ) |
Set | the Ith input |
otb::VariadicInputsImageFilter< TOuptut, TInputs >::DefineLegacySetInputMacro | ( | 9 | ) |
Set | the Ith input |
|
inline |
Set | the Ith input |
Definition at line 115 of file otbVariadicInputsImageFilter.h.
Referenced by otb::VariadicInputsImageFilter< TOuptut, TInputs... >::GetInput().
|
inline |
Definition at line 134 of file otbVariadicInputsImageFilter.h.
|
inlineprivate |
Set | the Ith input |
Definition at line 158 of file otbVariadicInputsImageFilter.h.
Referenced by otb::VariadicInputsImageFilter< TOuptut, TInputs... >::GetInputs().
|
static |
|
privatedelete |
Set | the Ith input |
|
inline |
Set | the Ith input |
Definition at line 85 of file otbVariadicInputsImageFilter.h.
|
inline |
inputs | A vararg list of inputs |
Definition at line 124 of file otbVariadicInputsImageFilter.h.
|
inlineprivate |
Set | the Ith input |
Definition at line 150 of file otbVariadicInputsImageFilter.h.
Referenced by otb::VariadicInputsImageFilter< TOuptut, TInputs... >::SetInputs().
|
staticconstexpr |
Definition at line 71 of file otbVariadicInputsImageFilter.h.
Referenced by otb::VariadicInputsImageFilter< TOuptut, TInputs... >::GetInput(), and otb::VariadicInputsImageFilter< TOuptut, TInputs... >::SetInput().