ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkWasmPolyDataToPolyDataFilter.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 itkWasmPolyDataToPolyDataFilter_h
19#define itkWasmPolyDataToPolyDataFilter_h
20
21#include "itkProcessObject.h"
22#include "itkWasmPolyData.h"
23
24namespace itk
25{
34template <typename TPolyData>
35class ITK_TEMPLATE_EXPORT WasmPolyDataToPolyDataFilter : public ProcessObject
36{
37public:
38 ITK_DISALLOW_COPY_AND_MOVE(WasmPolyDataToPolyDataFilter);
39
45
47 itkNewMacro(Self);
48
50 itkOverrideGetNameOfClassMacro(WasmPolyDataToPolyDataFilter);
51
54
55 using PolyDataType = TPolyData;
57
60 virtual void
62
63 virtual void
64 SetInput(unsigned int, const WasmPolyDataType * mesh);
65
66 const WasmPolyDataType *
68
69 const WasmPolyDataType *
70 GetInput(unsigned int idx);
71
74 const PolyDataType *
75 GetOutput() const;
76
78 GetOutput(unsigned int idx);
79
80protected:
82 ~WasmPolyDataToPolyDataFilter() 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} // end namespace itk
99
100#ifndef ITK_MANUAL_INSTANTIATION
101# include "itkWasmPolyDataToPolyDataFilter.hxx"
102#endif
103
104#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
Implements transparent reference counting.
const WasmPolyDataType * GetInput(unsigned int idx)
ProcessObject::DataObjectPointer MakeOutput(const ProcessObject::DataObjectIdentifierType &) override
Make a DataObject of the correct type to used as the specified output.
ProcessObject::DataObjectPointer MakeOutput(ProcessObject::DataObjectPointerArraySizeType idx) override
Make a DataObject of the correct type to used as the specified output.
const PolyDataType * GetOutput() const
PolyDataType * GetOutput(unsigned int idx)
Superclass::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
virtual void SetInput(unsigned int, const WasmPolyDataType *mesh)
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void SetInput(const WasmPolyDataType *mesh)
~WasmPolyDataToPolyDataFilter() override=default
const WasmPolyDataType * GetInput()
Superclass::DataObjectIdentifierType DataObjectIdentifierType
JSON representation for an itk::PolyData.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....