ITK  6.0.0
Insight Toolkit
itkSurfaceSpatialObject.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 itkSurfaceSpatialObject_h
19#define itkSurfaceSpatialObject_h
20
21#include <list>
22
25
26namespace itk
27{
38template <unsigned int TDimension = 3, class TSpatialObjectPointType = SurfaceSpatialObjectPoint<TDimension>>
39class ITK_TEMPLATE_EXPORT SurfaceSpatialObject
40 : public PointBasedSpatialObject<TDimension, SurfaceSpatialObjectPoint<TDimension>>
41{
42public:
43 ITK_DISALLOW_COPY_AND_MOVE(SurfaceSpatialObject);
44
49
50 using ScalarType = double;
51
52 using SurfacePointType = TSpatialObjectPointType;
53 using SurfacePointListType = std::vector<SurfacePointType>;
54
55 using typename Superclass::SpatialObjectPointType;
56 using typename Superclass::PointType;
57 using typename Superclass::TransformType;
58 using typename Superclass::BoundingBoxType;
59 using typename Superclass::CovariantVectorType;
60
63
65 itkNewMacro(Self);
66
68 itkOverrideGetNameOfClassMacro(SurfaceSpatialObject);
69
72 void
73 Clear() override;
74
75#if !defined(ITK_LEGACY_REMOVE)
77 itkLegacyMacro(bool Approximate3DNormals();)
78#endif
79
81 bool
83
84protected:
86 ~SurfaceSpatialObject() override = default;
87
89 InternalClone() const override;
90};
91
92} // end namespace itk
93
94#ifndef ITK_MANUAL_INSTANTIATION
95# include "itkSurfaceSpatialObject.hxx"
96#endif
97
98#endif // itkSurfaceSpatialObject_h
Base class for all data objects in ITK.
Base class for most ITK classes.
Definition: itkObject.h:62
This class serves as the base class for point-based spatial objects.
Representation of a Surface based on the spatial object classes.
std::vector< SurfacePointType > SurfacePointListType
TSpatialObjectPointType SurfacePointType
LightObject::Pointer InternalClone() const override
~SurfaceSpatialObject() override=default
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....