ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkBlobSpatialObject.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 itkBlobSpatialObject_h
19 #define itkBlobSpatialObject_h
20 
21 #include <list>
22 
24 
25 namespace itk
26 {
45 template< unsigned int TDimension = 3 >
46 class ITK_TEMPLATE_EXPORT BlobSpatialObject:
47  public PointBasedSpatialObject< TDimension,
48  SpatialObjectPoint< TDimension > >
49 {
50 public:
51  ITK_DISALLOW_COPY_AND_ASSIGN(BlobSpatialObject);
52 
54  using Superclass = PointBasedSpatialObject< TDimension,
58 
59  using ScalarType = double;
60 
62  using BlobPointListType = std::vector< BlobPointType >;
63 
64  using PointType = typename Superclass::PointType;
65  using SpatialObjectPointType = typename Superclass::SpatialObjectPointType;
66  using TransformType = typename Superclass::TransformType;
67  using BoundingBoxType = typename Superclass::BoundingBoxType;
70 
72  itkNewMacro(Self);
73 
75  itkTypeMacro(BlobSpatialObject, SpatialObject);
76 
77 protected:
78 
80  ~BlobSpatialObject() override = default;
81 
83  void PrintSelf(std::ostream & os, Indent indent) const override;
84 
85  typename LightObject::Pointer InternalClone() const override;
86 
87 };
88 } // end namespace itk
89 
90 #ifndef ITK_MANUAL_INSTANTIATION
91 #include "itkBlobSpatialObject.hxx"
92 #endif
93 
94 #endif // itkBlobSpatialObject_h
std::vector< BlobPointType > BlobPointListType
Spatial object representing a potentially amorphous object.
This class serves as the base class for point-based spatial objects.
typename Superclass::BoundingBoxType BoundingBoxType
Implementation of the composite pattern.
typename Superclass::PointType PointType
typename Superclass::SpatialObjectPointType SpatialObjectPointType
Point used for spatial objets.
Define a front-end to the STL &quot;vector&quot; container that conforms to the IndexedContainerInterface.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for most ITK classes.
Definition: itkObject.h:60
typename Superclass::TransformType TransformType
Base class for all data objects in ITK.