ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkLineSpatialObject.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 itkLineSpatialObject_h
19 #define itkLineSpatialObject_h
20 
21 #include <list>
22 
25 
26 namespace itk
27 {
42 template< unsigned int TDimension = 3 >
43 class ITK_TEMPLATE_EXPORT LineSpatialObject:
44  public PointBasedSpatialObject< TDimension,
45  LineSpatialObjectPoint< TDimension> >
46 {
47 public:
48  ITK_DISALLOW_COPY_AND_ASSIGN(LineSpatialObject);
49 
51  using Superclass = PointBasedSpatialObject< TDimension,
55 
56  using ScalarType = double;
57 
59  using LinePointListType = std::vector< LinePointType >;
60 
61  using SpatialObjectPointType = typename Superclass::SpatialObjectPointType;
62  using PointType = typename Superclass::PointType;
63  using TransformType = typename Superclass::TransformType;
64  using BoundingBoxType = typename Superclass::BoundingBoxType;
67 
69  itkNewMacro(Self);
70 
73 
76  bool IsInsideInObjectSpace(const PointType & point, unsigned int depth = 0,
77  const std::string & name = "") const override;
78 
79 protected:
81  ~LineSpatialObject() override = default;
82 
84  void PrintSelf(std::ostream & os, Indent indent) const override;
85 
86  typename LightObject::Pointer InternalClone() const override;
87 
88 };
89 } // end namespace itk
90 
91 #ifndef ITK_MANUAL_INSTANTIATION
92 #include "itkLineSpatialObject.hxx"
93 #endif
94 
95 #endif // itkLineSpatialObject_h
typename Superclass::BoundingBoxType BoundingBoxType
This class serves as the base class for point-based spatial objects.
typename Superclass::SpatialObjectPointType SpatialObjectPointType
Point used for a line definition.
typename Superclass::PointType PointType
Representation of a Line based on the spatial object classes.
Define a front-end to the STL &quot;vector&quot; container that conforms to the IndexedContainerInterface.
typename Superclass::TransformType TransformType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for most ITK classes.
Definition: itkObject.h:60
Base class for all data objects in ITK.
std::vector< LinePointType > LinePointListType