ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkPolyDataToMeshFilter.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 itkPolyDataToMeshFilter_h
19#define itkPolyDataToMeshFilter_h
20
21#include "itkProcessObject.h"
22#include "itkPolyData.h"
23#include "itkMesh.h"
24
25#include <type_traits>
26
27namespace itk
28{
38template <typename TInputPolyData>
40{
41public:
42 ITK_DISALLOW_COPY_AND_MOVE(PolyDataToMeshFilter);
43
49
51 itkNewMacro(Self);
52
54 itkOverrideGetNameOfClassMacro(PolyDataToMeshFilter);
55
56 static constexpr unsigned int PointDimension = TInputPolyData::PointDimension;
57
58 using InputPolyDataType = TInputPolyData;
62
71
74 void
76
78 const InputPolyDataType *
79 GetInput() const;
80
81 const InputPolyDataType *
82 GetInput(unsigned int idx) const;
83
86 const OutputMeshType *
87 GetOutput() const;
88
90 GetOutput(unsigned int idx);
91
92 void
94
95protected:
97 ~PolyDataToMeshFilter() override = default;
98
99 void
100 PrintSelf(std::ostream & os, Indent indent) const override;
101
102 void
103 GenerateData() override;
104
109
110private:
111};
112} // namespace itk
113
114#ifndef ITK_MANUAL_INSTANTIATION
115# include "itkPolyDataToMeshFilter.hxx"
116#endif
117
118#endif // itkPolyDataToMeshFilter
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements the N-dimensional mesh structure.
Definition itkMesh.h:127
CellInterface< CellPixelType, CellTraits > CellType
Definition itkMesh.h:222
typename OutputMeshType::PointType OutputPointType
const OutputMeshType * GetOutput() const
PolyDataToMeshFilter< TInputPolyData > Self
~PolyDataToMeshFilter() override=default
ProcessObject::DataObjectPointer MakeOutput(const ProcessObject::DataObjectIdentifierType &) override
Make a DataObject of the correct type to used as the specified output.
typename OutputMeshType::CellPixelType OutputCellPixelType
OutputMeshType * GetOutput()
typename OutputMeshType::CellType OutputCellType
void GenerateOutputInformation() override
SmartPointer< const Self > ConstPointer
ProcessObject::DataObjectPointer MakeOutput(ProcessObject::DataObjectPointerArraySizeType idx) override
Make a DataObject of the correct type to used as the specified output.
static constexpr unsigned int PointDimension
typename OutputMeshType::PointIdentifier OutputPointIdentifier
void SetInput(const InputPolyDataType *input)
void GenerateData() override
Mesh< typename InputPolyDataType::PixelType, PointDimension > OutputMeshType
void PrintSelf(std::ostream &os, Indent indent) const override
typename OutputMeshType::PixelType OutputPointPixelType
typename OutputMeshType::CellAutoPointer OutputCellAutoPointer
typename OutputMeshType::CellIdentifier OutputCellIdentifier
typename OutputMeshType::CoordinateType OutputCoordinateType
const InputPolyDataType * GetInput() const
OutputMeshType * GetOutput(unsigned int idx)
const InputPolyDataType * GetInput(unsigned int idx) const
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.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....