ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkWasmMeshToMeshFilter.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 itkWasmMeshToMeshFilter_h
19#define itkWasmMeshToMeshFilter_h
20
21#include "itkProcessObject.h"
22#include "itkWasmMesh.h"
23
24namespace itk
25{
34template <typename TMesh>
35class ITK_TEMPLATE_EXPORT WasmMeshToMeshFilter : public ProcessObject
36{
37public:
38 ITK_DISALLOW_COPY_AND_MOVE(WasmMeshToMeshFilter);
39
45
47 itkNewMacro(Self);
48
50 itkOverrideGetNameOfClassMacro(WasmMeshToMeshFilter);
51
54
55 using MeshType = TMesh;
57
60 virtual void
61 SetInput(const WasmMeshType * mesh);
62
63 virtual void
64 SetInput(unsigned int, const WasmMeshType * mesh);
65
66 const WasmMeshType *
68
69 const WasmMeshType *
70 GetInput(unsigned int idx);
71
72 MeshType *
74 const MeshType *
75 GetOutput() const;
76
77 MeshType *
78 GetOutput(unsigned int idx);
79
80protected:
82 ~WasmMeshToMeshFilter() override = default;
83
88
89 void
91 {} // do nothing
92 void
93 GenerateData() override;
94
95 void
96 PrintSelf(std::ostream & os, Indent indent) const override;
97};
98
99template <typename TPixel, unsigned int VDimension>
100class ITK_TEMPLATE_EXPORT WasmMeshToMeshFilter<QuadEdgeMesh<TPixel, VDimension>> : public ProcessObject
101{
102public:
103 ITK_DISALLOW_COPY_AND_MOVE(WasmMeshToMeshFilter);
104
110
112 itkNewMacro(Self);
113
116
119
122
125 virtual void
126 SetInput(const WasmMeshType * mesh);
127
128 virtual void
129 SetInput(unsigned int, const WasmMeshType * mesh);
130
131 const WasmMeshType *
133
134 const WasmMeshType *
135 GetInput(unsigned int idx);
136
137 MeshType *
139 const MeshType *
140 GetOutput() const;
141
142 MeshType *
143 GetOutput(unsigned int idx);
144
145protected:
147 ~WasmMeshToMeshFilter() override = default;
148
153
154 void
156 {} // do nothing
157 void
158 GenerateData() override;
159
160 void
161 PrintSelf(std::ostream & os, Indent indent) const override;
162};
163} // end namespace itk
164
165#ifndef ITK_MANUAL_INSTANTIATION
166# include "itkWasmMeshToMeshFilter.hxx"
167#endif
168
169#endif
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
Mesh class for 2D manifolds embedded in ND space.
Implements transparent reference counting.
ProcessObject::DataObjectPointer MakeOutput(ProcessObject::DataObjectPointerArraySizeType idx) override
Make a DataObject of the correct type to used as the specified output.
Superclass::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
ProcessObject::DataObjectPointer MakeOutput(const ProcessObject::DataObjectIdentifierType &) override
Make a DataObject of the correct type to used as the specified output.
virtual void SetInput(unsigned int, const WasmMeshType *mesh)
void PrintSelf(std::ostream &os, Indent indent) const override
const MeshType * GetOutput() const
void GenerateData() override
~WasmMeshToMeshFilter() override=default
SmartPointer< const Self > ConstPointer
MeshType * GetOutput(unsigned int idx)
ProcessObject::DataObjectPointer MakeOutput(const ProcessObject::DataObjectIdentifierType &) override
Make a DataObject of the correct type to used as the specified output.
const WasmMeshType * GetInput(unsigned int idx)
const WasmMeshType * GetInput()
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void SetInput(const WasmMeshType *mesh)
Superclass::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
ProcessObject::DataObjectPointer MakeOutput(ProcessObject::DataObjectPointerArraySizeType idx) override
Make a DataObject of the correct type to used as the specified output.
Superclass::DataObjectIdentifierType DataObjectIdentifierType
virtual void SetInput(unsigned int, const WasmMeshType *mesh)
JSON representation for an itk::Mesh.
Definition itkWasmMesh.h:45
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....