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 
26 namespace itk
27 {
38 template <unsigned int TDimension = 3, class TSpatialObjectPointType = SurfaceSpatialObjectPoint<TDimension>>
39 class ITK_TEMPLATE_EXPORT SurfaceSpatialObject
40  : public PointBasedSpatialObject<TDimension, SurfaceSpatialObjectPoint<TDimension>>
41 {
42 public:
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)
76 
77  itkLegacyMacro(bool Approximate3DNormals();)
78 #endif
79 
81  bool
82  ComputeNormals();
83 
84 protected:
86  ~SurfaceSpatialObject() override = default;
87 
88  typename LightObject::Pointer
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
itk::PointBasedSpatialObject
This class serves as the base class for point-based spatial objects.
Definition: itkPointBasedSpatialObject.h:37
itk::detail::VectorContainer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
Definition: itkVectorContainer.h:51
itk::GTest::TypedefsAndConstructors::Dimension2::PointType
ImageBaseType::PointType PointType
Definition: itkGTestTypedefsAndConstructors.h:51
itk::SurfaceSpatialObject::SurfacePointListType
std::vector< SurfacePointType > SurfacePointListType
Definition: itkSurfaceSpatialObject.h:53
itk::SmartPointer< Self >
itkSurfaceSpatialObjectPoint.h
itk::SurfaceSpatialObject::SurfacePointType
TSpatialObjectPointType SurfacePointType
Definition: itkSurfaceSpatialObject.h:52
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::Object
Base class for most ITK classes.
Definition: itkObject.h:61
itkPointBasedSpatialObject.h
itk::SurfaceSpatialObject
Representation of a Surface based on the spatial object classes.
Definition: itkSurfaceSpatialObject.h:39
itk::SurfaceSpatialObject::ScalarType
double ScalarType
Definition: itkSurfaceSpatialObject.h:50
itk::DataObject
Base class for all data objects in ITK.
Definition: itkDataObject.h:293