ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkWasmPolyData.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 itkWasmPolyData_h
19#define itkWasmPolyData_h
20
21#include "itkWasmDataObject.h"
22#include "itkVectorContainer.h"
23
24namespace itk
25{
44template <typename TPolyData>
45class ITK_TEMPLATE_EXPORT WasmPolyData : public WasmDataObject
46{
47public:
48 ITK_DISALLOW_COPY_AND_MOVE(WasmPolyData);
49
55
56 itkNewMacro(Self);
58 itkOverrideGetNameOfClassMacro(WasmPolyData);
59
60 using PolyDataType = TPolyData;
61
62 void
63 SetPolyData(const PolyDataType * polyData)
64 {
65 this->SetDataObject(const_cast<PolyDataType *>(polyData));
66 }
67
68 const PolyDataType *
70 {
71 return static_cast<const PolyDataType *>(this->GetDataObject());
72 }
73
74protected:
75 WasmPolyData() = default;
76 ~WasmPolyData() override = default;
77};
78
79} // namespace itk
80
81#endif
Implements transparent reference counting.
virtual void SetDataObject(DataObject *_arg)
virtual const DataObject * GetDataObject() const
WasmDataObject()=default
const PolyDataType * GetPolyData() const
WasmPolyData()=default
~WasmPolyData() override=default
SmartPointer< const Self > ConstPointer
void SetPolyData(const PolyDataType *polyData)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....