ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkPolyDataToWasmPolyDataFilter.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 itkPolyDataToWasmPolyDataFilter_h
19#define itkPolyDataToWasmPolyDataFilter_h
20
21#include "itkProcessObject.h"
22#include "itkWasmPolyData.h"
23
24namespace itk
25{
32template <typename TPolyData>
33class ITK_TEMPLATE_EXPORT PolyDataToWasmPolyDataFilter : public ProcessObject
34{
35public:
36 ITK_DISALLOW_COPY_AND_MOVE(PolyDataToWasmPolyDataFilter);
37
43
45 itkNewMacro(Self);
46
48 itkOverrideGetNameOfClassMacro(PolyDataToWasmPolyDataFilter);
49
52
53 using PolyDataType = TPolyData;
55
58 virtual void
59 SetInput(const PolyDataType * polyData);
60
61 virtual void
62 SetInput(unsigned int, const PolyDataType * polyData);
63
64 const PolyDataType *
66
67 const PolyDataType *
68 GetInput(unsigned int idx);
69
72 const WasmPolyDataType *
73 GetOutput() const;
74
76 GetOutput(unsigned int idx);
77
78protected:
80 ~PolyDataToWasmPolyDataFilter() override = default;
81
86
87 void
89 {} // do nothing
90 void
91 GenerateData() override;
92
93 void
94 PrintSelf(std::ostream & os, Indent indent) const override;
95};
96} // end namespace itk
97
98#ifndef ITK_MANUAL_INSTANTIATION
99# include "itkPolyDataToWasmPolyDataFilter.hxx"
100#endif
101
102#endif
Control indentation during Print() invocation.
Definition itkIndent.h:53
void PrintSelf(std::ostream &os, Indent indent) const override
const PolyDataType * GetInput()
virtual void SetInput(const PolyDataType *polyData)
WasmPolyDataType * GetOutput()
const PolyDataType * GetInput(unsigned int idx)
const WasmPolyDataType * GetOutput() const
Superclass::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
ProcessObject::DataObjectPointer MakeOutput(ProcessObject::DataObjectPointerArraySizeType idx) override
Make a DataObject of the correct type to used as the specified output.
WasmPolyDataType * GetOutput(unsigned int idx)
Superclass::DataObjectIdentifierType DataObjectIdentifierType
ProcessObject::DataObjectPointer MakeOutput(const ProcessObject::DataObjectIdentifierType &) override
Make a DataObject of the correct type to used as the specified output.
~PolyDataToWasmPolyDataFilter() override=default
virtual void SetInput(unsigned int, const PolyDataType *polyData)
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.
JSON representation for an itk::PolyData.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....