ITK  5.2.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  * http://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>
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 
53  using SurfacePointListType = std::vector<SurfacePointType>;
54 
55  using SpatialObjectPointType = typename Superclass::SpatialObjectPointType;
56  using PointType = typename Superclass::PointType;
57  using TransformType = typename Superclass::TransformType;
60  using BoundingBoxType = typename Superclass::BoundingBoxType;
61  using CovariantVectorType = typename Superclass::CovariantVectorType;
62 
64  itkNewMacro(Self);
65 
68 
71  void
72  Clear() override;
73 
75  bool
76  Approximate3DNormals();
77 
78 protected:
80  ~SurfaceSpatialObject() override = default;
81 
83  void
84  PrintSelf(std::ostream & os, Indent indent) const override;
85 
86  typename LightObject::Pointer
87  InternalClone() const override;
88 };
89 
90 } // end namespace itk
91 
92 #ifndef ITK_MANUAL_INSTANTIATION
93 # include "itkSurfaceSpatialObject.hxx"
94 #endif
95 
96 #endif // itkSurfaceSpatialObject_h
itk::PointBasedSpatialObject
This class serves as the base class for point-based spatial objects.
Definition: itkPointBasedSpatialObject.h:37
itk::SurfaceSpatialObject::PointType
typename Superclass::PointType PointType
Definition: itkSurfaceSpatialObject.h:56
itk::SurfaceSpatialObject::BoundingBoxType
typename Superclass::BoundingBoxType BoundingBoxType
Definition: itkSurfaceSpatialObject.h:60
itk::SurfaceSpatialObject::ScalarType
double ScalarType
Definition: itkSurfaceSpatialObject.h:50
itk::GTest::TypedefsAndConstructors::Dimension2::PointType
ImageBaseType::PointType PointType
Definition: itkGTestTypedefsAndConstructors.h:51
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::SurfaceSpatialObject::TransformType
typename Superclass::TransformType TransformType
Definition: itkSurfaceSpatialObject.h:57
itkSurfaceSpatialObjectPoint.h
itk::SurfaceSpatialObjectPoint
Point used for a Surface definition.
Definition: itkSurfaceSpatialObjectPoint.h:39
itk::SurfaceSpatialObject::SpatialObjectPointType
typename Superclass::SpatialObjectPointType SpatialObjectPointType
Definition: itkSurfaceSpatialObject.h:55
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::SurfaceSpatialObject::CovariantVectorType
typename Superclass::CovariantVectorType CovariantVectorType
Definition: itkSurfaceSpatialObject.h:61
itk::Object
Base class for most ITK classes.
Definition: itkObject.h:62
itkPointBasedSpatialObject.h
itk::VectorContainer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
Definition: itkVectorContainer.h:48
itk::SurfaceSpatialObject
Representation of a Surface based on the spatial object classes.
Definition: itkSurfaceSpatialObject.h:39
itk::SurfaceSpatialObject::SurfacePointListType
std::vector< SurfacePointType > SurfacePointListType
Definition: itkSurfaceSpatialObject.h:53
itk::DataObject
Base class for all data objects in ITK.
Definition: itkDataObject.h:293