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 {
42 template <unsigned int TDimension = 3>
43 class ITK_TEMPLATE_EXPORT LineSpatialObject
44  : public PointBasedSpatialObject<TDimension, LineSpatialObjectPoint<TDimension>>
45 {
46 public:
47  ITK_DISALLOW_COPY_AND_MOVE(LineSpatialObject);
48 
53 
54  using ScalarType = double;
55 
57  using LinePointListType = std::vector<LinePointType>;
58 
59  using SpatialObjectPointType = typename Superclass::SpatialObjectPointType;
60  using PointType = typename Superclass::PointType;
61  using TransformType = typename Superclass::TransformType;
62  using BoundingBoxType = typename Superclass::BoundingBoxType;
65 
67  itkNewMacro(Self);
68 
71 
74  bool
75  IsInsideInObjectSpace(const PointType & point) const override;
76 
77  /* Avoid hiding the overload that supports depth and name arguments */
78  using Superclass::IsInsideInObjectSpace;
79 
80 protected:
82  ~LineSpatialObject() override = default;
83 
85  void
86  PrintSelf(std::ostream & os, Indent indent) const override;
87 
88  typename LightObject::Pointer
89  InternalClone() const override;
90 };
91 } // end namespace itk
92 
93 #ifndef ITK_MANUAL_INSTANTIATION
94 # include "itkLineSpatialObject.hxx"
95 #endif
96 
97 #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:43
itk::LineSpatialObject::LinePointListType
std::vector< LinePointType > LinePointListType
Definition: itkLineSpatialObject.h:57
itk::LineSpatialObject::BoundingBoxType
typename Superclass::BoundingBoxType BoundingBoxType
Definition: itkLineSpatialObject.h:62
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:59
itk::LineSpatialObject::TransformType
typename Superclass::TransformType TransformType
Definition: itkLineSpatialObject.h:61
itk::LineSpatialObject::PointType
typename Superclass::PointType PointType
Definition: itkLineSpatialObject.h:60
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:62
itk::LineSpatialObject::ScalarType
double ScalarType
Definition: itkLineSpatialObject.h:54
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