ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkWasmTransformToTransformFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef itkWasmTransformToTransformFilter_h
19#define itkWasmTransformToTransformFilter_h
20
21#include "itkProcessObject.h"
22#include "itkWasmTransform.h"
24
25namespace itk
26{
35template <typename TTransform>
36class ITK_TEMPLATE_EXPORT WasmTransformToTransformFilter : public ProcessObject
37{
38public:
39 ITK_DISALLOW_COPY_AND_MOVE(WasmTransformToTransformFilter);
40
46
48 itkNewMacro(Self);
49
51 itkOverrideGetNameOfClassMacro(WasmTransformToTransformFilter);
52
55
56 using TransformType = TTransform;
59
62 virtual void
63 SetInput(const WasmTransformType * transform);
64
65 virtual void
66 SetInput(unsigned int, const WasmTransformType * transform);
67
68 const WasmTransformType *
70
71 const WasmTransformType *
72 GetInput(unsigned int idx);
73
76 const TransformType *
77 GetOutput() const;
78
80 GetOutput(unsigned int idx);
81
82protected:
84 ~WasmTransformToTransformFilter() override = default;
85
90
91 void
93 {} // do nothing
94 void
95 GenerateData() override;
96
97 void
98 PrintSelf(std::ostream & os, Indent indent) const override;
99
100 typename TransformType::Pointer m_OutputTransform;
101};
102} // end namespace itk
103
104#ifndef ITK_MANUAL_INSTANTIATION
105# include "itkWasmTransformToTransformFilter.hxx"
106#endif
107
108#endif
Decorates any subclass of itkObject with a DataObject API.
Control indentation during Print() invocation.
Definition itkIndent.h:53
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
DataObject::Pointer DataObjectPointer
DataObject::DataObjectIdentifierType DataObjectIdentifierType
Implements transparent reference counting.
virtual void SetInput(unsigned int, const WasmTransformType *transform)
Superclass::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
ProcessObject::DataObjectPointer MakeOutput(const ProcessObject::DataObjectIdentifierType &) override
Make a DataObject of the correct type to used as the specified output.
~WasmTransformToTransformFilter() override=default
TransformType * GetOutput(unsigned int idx)
ProcessObject::DataObjectPointer MakeOutput(ProcessObject::DataObjectPointerArraySizeType idx) override
Make a DataObject of the correct type to used as the specified output.
const WasmTransformType * GetInput()
const TransformType * GetOutput() const
virtual void SetInput(const WasmTransformType *transform)
void PrintSelf(std::ostream &os, Indent indent) const override
DataObjectDecorator< TransformType > DecoratorType
const WasmTransformType * GetInput(unsigned int idx)
Superclass::DataObjectIdentifierType DataObjectIdentifierType
JSON representation for an itk::Transform.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....