ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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
77
78template <typename TPixelType,
79 unsigned int VDimension = 3,
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;
104 using PointType = typename MeshTraits::PointType;
105 using PointDataContainer = typename MeshTraits::PointDataContainer;
106
108 using PointDataContainerPointer = typename PointDataContainer::Pointer;
109 using PointDataContainerConstPointer = typename PointDataContainer::ConstPointer;
110
112 using PointDataContainerIterator = typename PointDataContainer::ConstIterator;
113
114protected:
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;
165
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
SmartPointer< Self > Pointer
PointSetBase()=default
typename PointDataContainer::ConstIterator PointDataContainerIterator
bool GetPointData(PointIdentifier, PixelType *) const
PointSet()=default
void Graft(const DataObject *data) override
void Initialize() override
TMeshTraits MeshTraits
Definition itkPointSet.h:99
PointSetBase< typename TMeshTraits::PointsContainer > Superclass
Definition itkPointSet.h:88
typename PointDataContainer::ConstPointer PointDataContainerConstPointer
~PointSet() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< Self > Pointer
Definition itkPointSet.h:89
void SetPointData(PointDataContainer *)
const PointDataContainer * GetPointData() const
typename MeshTraits::PointIdentifier PointIdentifier
LightObject::Pointer InternalClone() const override
typename MeshTraits::PixelType PixelType
typename MeshTraits::PointType PointType
PointDataContainer * GetPointData()
typename MeshTraits::PointDataContainer PointDataContainer
SmartPointer< const Self > ConstPointer
Definition itkPointSet.h:90
void SetPointData(PointIdentifier, PixelType)
PointSet Self
Definition itkPointSet.h:87
typename PointDataContainer::Pointer PointDataContainerPointer
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....