ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkSpeedFunctionPathInformation.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 itkSpeedFunctionPathInformation_h
19#define itkSpeedFunctionPathInformation_h
20
21#include "itkLightObject.h"
22#include "itkObjectFactory.h"
23
24#include <vector>
25
26namespace itk
27{
28
52template <typename TPoint>
53class ITK_TEMPLATE_EXPORT SpeedFunctionPathInformation : public LightObject
54{
55public:
56 ITK_DISALLOW_COPY_AND_MOVE(SpeedFunctionPathInformation);
57
63
64
66 itkOverrideGetNameOfClassMacro(SpeedFunctionPathInformation);
67
69 itkNewMacro(Self);
70
72 using PointType = TPoint;
73 using PointsContainerType = std::vector<PointType>;
74
75 void
77
78 void
79 SetStartPoint(const PointType & start);
80
81 void
82 SetEndPoint(const PointType & end);
83
84 void
85 AddWayPoint(const PointType & way);
86
87
89 void
91
92 void
94
95 void
97
98 // methods for modifying path seeds - needed when using
99 // an extended seed.
100 void
101 SetCurrent(const PointsContainerType & newcurrent);
102 void
103 SetPrevious(const PointsContainerType & newprevious);
104 void
105 SetNext(const PointsContainerType & newnext);
106
107 void
108 SetCurrent(const PointType & current);
109 void
110 SetPrevious(const PointType & newprevious);
111 void
112 SetNext(const PointType & newnext);
113
114 void
116
117 unsigned int
119
120 const PointsContainerType &
122
123 const PointsContainerType &
124 GetEndPoint() const;
125
126 const PointsContainerType &
128
129 bool
131
132 const PointsContainerType &
134
135 const PointsContainerType &
137
138 const PointsContainerType &
140
141 const PointsContainerType &
143
144
145protected:
148 void
149 PrintSelf(std::ostream & os, Indent indent) const override;
150
151 std::vector<PointsContainerType> m_Information;
153
154
157 {
159 V[0] = P;
160 return (V);
161 }
162};
163
164
165} // end namespace itk
166
167#ifndef ITK_MANUAL_INSTANTIATION
168# include "itkSpeedFunctionPathInformation.hxx"
169#endif
170
171#endif
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
const PointsContainerType & GetCurrentFrontAndAdvance()
void SetPrevious(const PointsContainerType &newprevious)
const PointsContainerType & GetWayPoint(SizeValueType i) const
void SetCurrent(const PointType &current)
const PointsContainerType & PeekNextFront() const
PointsContainerType PtoPVec(const PointType &P)
void SetNext(const PointType &newnext)
unsigned int GetNumberOfPoints() const
const PointsContainerType & GetEndPoint() const
const PointsContainerType & PeekCurrentFront() const
void SetCurrent(const PointsContainerType &newcurrent)
void AddWayPoint(const PointsContainerType &way)
const PointsContainerType & GetStartPoint() const
void SetStartPoint(const PointsContainerType &start)
void SetNext(const PointsContainerType &newnext)
void SetEndPoint(const PointType &end)
const PointsContainerType & PeekPreviousFront() const
void PrintSelf(std::ostream &os, Indent indent) const override
void SetEndPoint(const PointsContainerType &end)
void SetPrevious(const PointType &newprevious)
void SetStartPoint(const PointType &start)
void AddWayPoint(const PointType &way)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType
Definition itkIntTypes.h:82