ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkTubeSpatialObject.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 itkTubeSpatialObject_h
19#define itkTubeSpatialObject_h
20
21#include <list>
22
25
26namespace itk
27{
40
41template <unsigned int TDimension = 3, class TSpatialObjectPointType = TubeSpatialObjectPoint<TDimension>>
42class ITK_TEMPLATE_EXPORT TubeSpatialObject : public PointBasedSpatialObject<TDimension, TSpatialObjectPointType>
43{
44public:
45 ITK_DISALLOW_COPY_AND_MOVE(TubeSpatialObject);
46
51
52 using ScalarType = double;
53
54 using TubePointType = TSpatialObjectPointType;
55 using TubePointListType = std::vector<TubePointType>;
56
57 using typename Superclass::PointType;
58 using typename Superclass::TransformType;
62 using typename Superclass::VectorType;
64 using typename Superclass::BoundingBoxType;
65
67 itkNewMacro(Self);
68
70 itkOverrideGetNameOfClassMacro(TubeSpatialObject);
71
74 void
75 Clear() override;
76
78 itkSetMacro(EndRounded, bool);
79 itkGetConstMacro(EndRounded, bool);
80 itkBooleanMacro(EndRounded);
82
84 bool
86
87#if !defined(ITK_LEGACY_REMOVE)
89 itkLegacyMacro(bool ComputeTangentAndNormals())
90 {
92 }
93#endif
94
96 unsigned int
97 RemoveDuplicatePointsInObjectSpace(double minSpacingInObjectSpace = 0);
98
101 itkSetMacro(ParentPoint, int);
102
105 itkGetConstMacro(ParentPoint, int);
106
109 itkSetMacro(Root, bool);
110
113 itkGetConstMacro(Root, bool);
114
115 itkBooleanMacro(Root);
116
122 bool
123 IsInsideInObjectSpace(const PointType & point) const override;
124
125 /* Avoid hiding the overload that supports depth and name arguments */
127
129 void
130 CopyInformation(const DataObject * data) override;
131
132protected:
134 void
136
138 ~TubeSpatialObject() override = default;
139
141 void
142 PrintSelf(std::ostream & os, Indent indent) const override;
143
144 typename LightObject::Pointer
145 InternalClone() const override;
146
147private:
150 bool m_Root{};
151};
152
153} // end namespace itk
154
155#ifndef ITK_MANUAL_INSTANTIATION
156# include "itkTubeSpatialObject.hxx"
157#endif
158
159#endif // itkTubeSpatialObject_h
Base class for all data objects in ITK.
Control indentation during Print() invocation.
Definition itkIndent.h:50
SmartPointer< Self > Pointer
AffineTransform< ScalarType, VDimension > TransformType
bool IsInsideInObjectSpace(const PointType &point) const override
Vector< ScalarType, VDimension > VectorType
CovariantVector< ScalarType, VDimension > CovariantVectorType
TSpatialObjectPointType SpatialObjectPointType
Point< ScalarType, VDimension > PointType
BoundingBox< IdentifierType, VDimension, ScalarType, VectorContainerType > BoundingBoxType
Implements transparent reference counting.
PointBasedSpatialObject< TDimension, DTITubeSpatialObjectPoint< TDimension > > Superclass
~TubeSpatialObject() override=default
void Clear() override
void PrintSelf(std::ostream &os, Indent indent) const override
LightObject::Pointer InternalClone() const override
bool IsInsideInObjectSpace(const PointType &point) const override
unsigned int RemoveDuplicatePointsInObjectSpace(double minSpacingInObjectSpace=0)
void CopyInformation(const DataObject *data) override
void ComputeMyBoundingBox() override
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
*par Constraints *The filter 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
detail::VectorContainer< std::conditional_t< std::is_void_v< T2 >, SizeValueType, T1 >, std::conditional_t< std::is_void_v< T2 >, T1, T2 > > VectorContainer