ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkPolyLineParametricPath.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 itkPolyLineParametricPath_h
19#define itkPolyLineParametricPath_h
20
21#include "itkParametricPath.h"
22#include "itkVectorContainer.h"
23#include "itkIndex.h"
24
25namespace itk
26{
56template <unsigned int VDimension>
57class ITK_TEMPLATE_EXPORT PolyLineParametricPath : public ParametricPath<VDimension>
58{
59public:
60 ITK_DISALLOW_COPY_AND_MOVE(PolyLineParametricPath);
61
67
69 itkOverrideGetNameOfClassMacro(PolyLineParametricPath);
70
72 using typename Superclass::InputType;
73
75 using typename Superclass::OutputType;
76
86
89 Evaluate(const InputType & input) const override;
90
93 // virtual VectorType EvaluateDerivative(const InputType & input) const;
94
99 inline void
101 {
102 m_VertexList->InsertElement(m_VertexList->Size(), vertex);
103 this->Modified();
104 }
105
106
110 InputType
111 EndOfInput() const override
112 {
113 return m_VertexList->Size() - 1;
114 }
115
117 itkNewMacro(Self);
118
120 void
121 Initialize() override
122 {
123 m_VertexList->Initialize();
124 }
125
127 itkGetModifiableObjectMacro(VertexList, VertexListType);
128
134 IncrementInput(InputType & input) const override;
135
140 EvaluateDerivative(const InputType & input) const override;
141
142protected:
144 ~PolyLineParametricPath() override = default;
145 void
146 PrintSelf(std::ostream & os, Indent indent) const override;
147
148private:
150};
151} // end namespace itk
152
153#ifndef ITK_MANUAL_INSTANTIATION
154# include "itkPolyLineParametricPath.hxx"
155#endif
156
157#endif
Control indentation during Print() invocation.
Definition itkIndent.h:50
virtual void Modified() const
ContinuousIndexType OutputType
Definition itkPath.h:75
ContinuousIndex< SpacePrecisionType, VDimension > ContinuousIndexType
A templated class holding a geometric point in n-Dimensional space.
Definition itkPoint.h:54
InputType EndOfInput() const override
VectorType EvaluateDerivative(const InputType &input) const override
OutputType Evaluate(const InputType &input) const override
VectorContainer< unsigned int, VertexType > VertexListType
void PrintSelf(std::ostream &os, Indent indent) const override
void AddVertex(const ContinuousIndexType &vertex)
ContinuousIndexType OutputType
Vector< double, VDimension > VectorType
typename VertexListType::Pointer VertexListPointer
OffsetType IncrementInput(InputType &input) const override
ContinuousIndex< SpacePrecisionType, VDimension > ContinuousIndexType
ParametricPath< VDimension > Superclass
~PolyLineParametricPath() override=default
Implements transparent reference counting.
A templated class holding a n-Dimensional vector.
Definition itkVector.h:63
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
detail::VectorContainer< std::conditional_t< std::is_void_v< T2 >, SizeValueType, T1 >, std::conditional_t< std::is_void_v< T2 >, T1, T2 > > VectorContainer
Represent a n-dimensional index in a n-dimensional image.
Definition itkIndex.h:69
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image.
Definition itkOffset.h:67