ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkSurfaceSpatialObject.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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,
41  SurfaceSpatialObjectPoint< TDimension > >
42 {
43 public:
44  ITK_DISALLOW_COPY_AND_ASSIGN(SurfaceSpatialObject);
45 
47  using Superclass = PointBasedSpatialObject< TDimension,
51 
52  using ScalarType = double;
53 
55  using SurfacePointListType = std::vector< SurfacePointType >;
56 
57  using SpatialObjectPointType = typename Superclass::SpatialObjectPointType;
58  using PointType = typename Superclass::PointType;
59  using TransformType = typename Superclass::TransformType;
62  using BoundingBoxType = typename Superclass::BoundingBoxType;
63  using CovariantVectorType = typename Superclass::CovariantVectorType;
64 
66  itkNewMacro(Self);
67 
70 
72  bool Approximate3DNormals();
73 
74 protected:
76  ~SurfaceSpatialObject() override = default;
77 
79  void PrintSelf(std::ostream & os, Indent indent) const override;
80 
81  typename LightObject::Pointer InternalClone() const override;
82 
83 };
84 
85 } // end namespace itk
86 
87 #ifndef ITK_MANUAL_INSTANTIATION
88 #include "itkSurfaceSpatialObject.hxx"
89 #endif
90 
91 #endif // itkSurfaceSpatialObject_h
Point used for a Surface definition.
typename Superclass::TransformType TransformType
std::vector< SurfacePointType > SurfacePointListType
This class serves as the base class for point-based spatial objects.
typename Superclass::SpatialObjectPointType SpatialObjectPointType
Representation of a Surface based on the spatial object classes.
typename Superclass::CovariantVectorType CovariantVectorType
Define a front-end to the STL &quot;vector&quot; container that conforms to the IndexedContainerInterface.
typename Superclass::PointType PointType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename Superclass::BoundingBoxType BoundingBoxType
Base class for most ITK classes.
Definition: itkObject.h:60
Base class for all data objects in ITK.