ITK  6.0.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  * https://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 typename Superclass::SpatialObjectPointType;
60  using typename Superclass::PointType;
61  using typename Superclass::TransformType;
62  using typename Superclass::BoundingBoxType;
65 
67  itkNewMacro(Self);
68 
70  itkOverrideGetNameOfClassMacro(LineSpatialObject);
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 
84  typename LightObject::Pointer
85  InternalClone() const override;
86 };
87 } // end namespace itk
88 
89 #ifndef ITK_MANUAL_INSTANTIATION
90 # include "itkLineSpatialObject.hxx"
91 #endif
92 
93 #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::detail::VectorContainer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
Definition: itkVectorContainer.h:51
itk::LineSpatialObject::LinePointListType
std::vector< LinePointType > LinePointListType
Definition: itkLineSpatialObject.h:57
itk::GTest::TypedefsAndConstructors::Dimension2::PointType
ImageBaseType::PointType PointType
Definition: itkGTestTypedefsAndConstructors.h:51
itk::SmartPointer< Self >
itk::point
*par Constraints *The filter requires an image with at least two dimensions and a vector *length of at least The theory supports extension to scalar but *the implementation of the itk vector classes do not **The template parameter TRealType must be floating point(float or double) or *a user-defined "real" numerical type with arithmetic operations defined *sufficient to compute derivatives. **\par Performance *This filter will automatically multithread if run with *SetUsePrincipleComponents
itkLineSpatialObjectPoint.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::Object
Base class for most ITK classes.
Definition: itkObject.h:61
itk::LineSpatialObject::ScalarType
double ScalarType
Definition: itkLineSpatialObject.h:54
itk::LineSpatialObjectPoint
Point used for a line definition.
Definition: itkLineSpatialObjectPoint.h:43
itkPointBasedSpatialObject.h
itk::Point
A templated class holding a geometric point in n-Dimensional space.
Definition: itkPoint.h:53
itk::DataObject
Base class for all data objects in ITK.
Definition: itkDataObject.h:293