ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkPolyData.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 itkPolyData_h
19#define itkPolyData_h
20
21#include "itkDataObject.h"
22#include "itkObjectFactory.h"
24
25namespace itk
26{
27
34template <typename TPixel, typename TCellPixel = TPixel>
35class ITK_TEMPLATE_EXPORT PolyData : public DataObject
36{
37public:
38 ITK_DISALLOW_COPY_AND_MOVE(PolyData);
39
40 using Self = PolyData;
44
45 static constexpr unsigned int PointDimension = 3;
46
47
49 itkNewMacro(Self);
50
52 itkOverrideGetNameOfClassMacro(PolyData);
53
55 using PixelType = TPixel;
56 using CellPixelType = TCellPixel;
58
69
70 void
71 Initialize() override;
72
75
79 void
83 const PointsContainer *
84 GetPoints() const;
85
87 void
91 const CellsContainer *
92 GetVertices() const;
93
95 void
99 const CellsContainer *
100 GetLines() const;
101
103 void
107 const CellsContainer *
108 GetPolygons() const;
109
112 void
116 const CellsContainer *
118
119 void
123 const PointDataContainer *
125
129 bool
132
136 bool
138
143 void
147 const CellDataContainer *
148 GetCellData() const;
149
153 bool
155
156protected:
158 ~PolyData() override = default;
159
160 void
161 PrintSelf(std::ostream & os, Indent indent) const override;
162
165 typename PointsContainer::Pointer m_PointsContainer;
166
171
176 typename PointDataContainer::Pointer m_PointDataContainer;
177
178 typename CellDataContainer::Pointer m_CellDataContainer;
179
180private:
181};
182
183} // end namespace itk
184
185#ifndef ITK_MANUAL_INSTANTIATION
186# include "itkPolyData.hxx"
187#endif
188
189#endif // itkPolyData_h
Control indentation during Print() invocation.
Definition itkIndent.h:53
void SetPoints(PointsContainer *)
bool GetPointData(PointIdentifier, PixelType *) const
typename MeshTraits::PointIdentifier PointIdentifier
Definition itkPolyData.h:62
const CellsContainer * GetTriangleStrips() const
void SetPoint(PointIdentifier, PointType)
void SetCellData(CellIdentifier, CellPixelType)
const CellDataContainer * GetCellData() const
void SetPolygons(CellsContainer *)
PointIdentifier GetNumberOfPoints() const
const CellsContainer * GetPolygons() const
typename InputMeshType::PixelType PixelType
Definition itkPolyData.h:55
bool GetPoint(PointIdentifier, PointType *) const
const PointDataContainer * GetPointData() const
CellsContainer * GetTriangleStrips()
PointsContainer * GetPoints()
void SetPointData(PointIdentifier, PixelType)
const CellsContainer * GetVertices() const
CellsContainer * GetVertices()
typename MeshTraits::PointsContainer PointsContainer
Definition itkPolyData.h:64
PointType GetPoint(PointIdentifier) const
DefaultStaticMeshTraits< PixelType, PointDimension, PointDimension, float, float, CellPixelType > MeshTraits
Definition itkPolyData.h:57
CellDataContainer * GetCellData()
const PointsContainer * GetPoints() const
VectorContainer< CellIdentifier, uint32_t > CellsContainer
Definition itkPolyData.h:68
typename MeshTraits::CellIdentifier CellIdentifier
Definition itkPolyData.h:66
void SetTriangleStrips(CellsContainer *)
typename MeshTraits::PointDataContainer PointDataContainer
Definition itkPolyData.h:65
typename InputMeshType::PixelType CellPixelType
Definition itkPolyData.h:56
const CellsContainer * GetLines() const
void Initialize() override
CellsContainer * GetPolygons()
void PrintSelf(std::ostream &os, Indent indent) const override
void SetLines(CellsContainer *)
void SetVertices(CellsContainer *)
typename MeshTraits::CellDataContainer CellDataContainer
Definition itkPolyData.h:67
static constexpr unsigned int PointDimension
Definition itkPolyData.h:45
~PolyData() override=default
typename MeshTraits::CoordinateType CoordinateType
Definition itkPolyData.h:60
bool GetCellData(CellIdentifier, CellPixelType *) const
PointDataContainer * GetPointData()
void SetCellData(CellDataContainer *)
void SetPointData(PointDataContainer *)
CellsContainer * GetLines()
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
detail::VectorContainer< std::conditional_t< std::is_void_v< T2 >, SizeValueType, T1 >, std::conditional_t< std::is_void_v< T2 >, T1, T2 > > VectorContainer