ITK  6.0.0
Insight Toolkit
itkOrthogonallyCorrected2DParametricPath.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 itkOrthogonallyCorrected2DParametricPath_h
19#define itkOrthogonallyCorrected2DParametricPath_h
20
21#include "itkParametricPath.h"
22#include "itkVectorContainer.h"
23#include "itkIndex.h"
24
25namespace itk
26{
45class ITK_TEMPLATE_EXPORT OrthogonallyCorrected2DParametricPath : public ParametricPath<2>
46{
47public:
48 ITK_DISALLOW_COPY_AND_MOVE(OrthogonallyCorrected2DParametricPath);
49
55
57 itkOverrideGetNameOfClassMacro(OrthogonallyCorrected2DParametricPath);
58
60 using InputType = Superclass::InputType;
61
63 using OutputType = Superclass::OutputType;
64
74
76
79 Evaluate(const InputType & inputValue) const override;
80
85 // The usual itkSetObjectMacro can not be used here because
86 // m_DefaultInputStepSize must also be copied over.
87 void
88 SetOriginalPath(const OriginalPathType * originalPath);
89
91 itkSetObjectMacro(OrthogonalCorrectionTable, OrthogonalCorrectionTableType);
92
94 itkNewMacro(Self);
95
97 void
98 Initialize() override
99 {
100 this->m_OriginalPath = nullptr;
101 this->m_OrthogonalCorrectionTable = nullptr;
102 }
103
105 InputType
106 StartOfInput() const override
107 {
108 return m_OriginalPath->StartOfInput();
109 }
110
111 InputType
112 EndOfInput() const override
113 {
114 return m_OriginalPath->EndOfInput();
115 }
116
117protected:
120 void
121 PrintSelf(std::ostream & os, Indent indent) const override;
122
123private:
124 OriginalPathConstPointer m_OriginalPath{};
125 OrthogonalCorrectionTablePointer m_OrthogonalCorrectionTable{};
126};
127} // namespace itk
128
129#endif
A templated class holding a point in n-Dimensional image space.
Base class for all data objects in ITK.
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Base class for most ITK classes.
Definition: itkObject.h:62
Represent an orthogonally corrected 2D parametric path.
OutputType Evaluate(const InputType &inputValue) const override
void SetOriginalPath(const OriginalPathType *originalPath)
~OrthogonallyCorrected2DParametricPath() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
OrthogonalCorrectionTableType::ElementIdentifier OrthogonalCorrectionTableSizeType
Represent a parametric path through ND Space.
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
TElementIdentifier ElementIdentifier
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image.
Definition: itkOffset.h:67