ITK  5.2.0
Insight Toolkit
itkLineSpatialObject.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 itkLineSpatialObject_h
19 #define itkLineSpatialObject_h
20 
21 #include <list>
22 
25 
26 namespace itk
27 {
39 template <unsigned int TDimension = 3>
40 class ITK_TEMPLATE_EXPORT LineSpatialObject
41  : public PointBasedSpatialObject<TDimension, LineSpatialObjectPoint<TDimension>>
42 {
43 public:
44  ITK_DISALLOW_COPY_AND_ASSIGN(LineSpatialObject);
45 
50 
51  using ScalarType = double;
52 
54  using LinePointListType = std::vector<LinePointType>;
55 
56  using SpatialObjectPointType = typename Superclass::SpatialObjectPointType;
57  using PointType = typename Superclass::PointType;
58  using TransformType = typename Superclass::TransformType;
59  using BoundingBoxType = typename Superclass::BoundingBoxType;
62 
64  itkNewMacro(Self);
65 
68 
71  bool
72  IsInsideInObjectSpace(const PointType & point) const override;
73 
74  /* Avoid hiding the overload that supports depth and name arguments */
75  using Superclass::IsInsideInObjectSpace;
76 
77 protected:
79  ~LineSpatialObject() override = default;
80 
82  void
83  PrintSelf(std::ostream & os, Indent indent) const override;
84 
85  typename LightObject::Pointer
86  InternalClone() const override;
87 };
88 } // end namespace itk
89 
90 #ifndef ITK_MANUAL_INSTANTIATION
91 # include "itkLineSpatialObject.hxx"
92 #endif
93 
94 #endif // itkLineSpatialObject_h
itk::PointBasedSpatialObject
This class serves as the base class for point-based spatial objects.
Definition: itkPointBasedSpatialObject.h:37
itk::LineSpatialObject
Representation of a Line based on the spatial object classes.
Definition: itkLineSpatialObject.h:40
itk::LineSpatialObject::LinePointListType
std::vector< LinePointType > LinePointListType
Definition: itkLineSpatialObject.h:54
itk::LineSpatialObject::BoundingBoxType
typename Superclass::BoundingBoxType BoundingBoxType
Definition: itkLineSpatialObject.h:59
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::LineSpatialObject::SpatialObjectPointType
typename Superclass::SpatialObjectPointType SpatialObjectPointType
Definition: itkLineSpatialObject.h:56
itk::LineSpatialObject::TransformType
typename Superclass::TransformType TransformType
Definition: itkLineSpatialObject.h:58
itk::LineSpatialObject::PointType
typename Superclass::PointType PointType
Definition: itkLineSpatialObject.h:57
itkLineSpatialObjectPoint.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::Object
Base class for most ITK classes.
Definition: itkObject.h:60
itk::LineSpatialObject::ScalarType
double ScalarType
Definition: itkLineSpatialObject.h:51
itk::LineSpatialObjectPoint
Point used for a line definition.
Definition: itkLineSpatialObjectPoint.h:43
itkPointBasedSpatialObject.h
itk::VectorContainer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
Definition: itkVectorContainer.h:48
itk::DataObject
Base class for all data objects in ITK.
Definition: itkDataObject.h:293