ITK  6.0.0
Insight Toolkit
itkPointSet.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/*=========================================================================
19 *
20 * Portions of this file are subject to the VTK Toolkit Version 3 copyright.
21 *
22 * Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
23 *
24 * For complete copyright, license and disclaimer of warranty information
25 * please refer to the NOTICE file at the top of the ITK source tree.
26 *
27 *=========================================================================*/
28#ifndef itkPointSet_h
29#define itkPointSet_h
30
31#include "itkPointSetBase.h"
33#include <set>
34
35namespace itk
36{
37
78template <typename TPixelType,
79 unsigned int VDimension = 3,
80 typename TMeshTraits = DefaultStaticMeshTraits<TPixelType, VDimension, VDimension>>
81class ITK_TEMPLATE_EXPORT PointSet : public PointSetBase<typename TMeshTraits::PointsContainer>
82{
83public:
84 ITK_DISALLOW_COPY_AND_MOVE(PointSet);
85
87 using Self = PointSet;
91
93 itkNewMacro(Self);
94
96 itkOverrideGetNameOfClassMacro(PointSet);
97
99 using MeshTraits = TMeshTraits;
100 using PixelType = typename MeshTraits::PixelType;
101
103 using PointIdentifier = typename MeshTraits::PointIdentifier;
105 using PointDataContainer = typename MeshTraits::PointDataContainer;
106
110
112 using PointDataContainerIterator = typename PointDataContainer::ConstIterator;
113
114protected:
119 PointDataContainerPointer m_PointDataContainer{};
120
121public:
125 void
126 Initialize() override;
127
129 void
131
135
137 const PointDataContainer *
139
145
152 bool
154
155 void
156 Graft(const DataObject * data) override;
157
158protected:
160 PointSet() = default;
161 ~PointSet() override = default;
162 void
163 PrintSelf(std::ostream & os, Indent indent) const override;
167 InternalClone() const override;
168
169}; // End Class: PointSet
170} // end namespace itk
171
172#ifndef ITK_MANUAL_INSTANTIATION
173# include "itkPointSet.hxx"
174#endif
175
176#endif
Base class for all data objects in ITK.
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Base class for most ITK classes.
Definition: itkObject.h:62
A superclass of PointSet supports point (geometric coordinate and attribute) definition.
A superclass of the N-dimensional mesh structure; supports point (geometric coordinate and attribute)...
Definition: itkPointSet.h:82
typename PointDataContainer::ConstIterator PointDataContainerIterator
Definition: itkPointSet.h:112
bool GetPointData(PointIdentifier, PixelType *) const
PointSet()=default
void Graft(const DataObject *data) override
void Initialize() override
TMeshTraits MeshTraits
Definition: itkPointSet.h:99
typename PointDataContainer::ConstPointer PointDataContainerConstPointer
Definition: itkPointSet.h:109
~PointSet() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
void SetPointData(PointDataContainer *)
const PointDataContainer * GetPointData() const
typename MeshTraits::PointIdentifier PointIdentifier
Definition: itkPointSet.h:103
LightObject::Pointer InternalClone() const override
typename MeshTraits::PixelType PixelType
Definition: itkPointSet.h:100
typename MeshTraits::PointType PointType
Definition: itkPointSet.h:104
PointDataContainer * GetPointData()
typename MeshTraits::PointDataContainer PointDataContainer
Definition: itkPointSet.h:105
void SetPointData(PointIdentifier, PixelType)
typename PointDataContainer::Pointer PointDataContainerPointer
Definition: itkPointSet.h:108
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....