ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkOrthogonallyCorrected2DParametricPath.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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  * http://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 
25 namespace itk
26 {
44 class ITK_TEMPLATE_EXPORT
46  ParametricPath< 2 >
47 {
48 public:
49  ITK_DISALLOW_COPY_AND_ASSIGN(OrthogonallyCorrected2DParametricPath);
50 
56 
59 
61  using InputType = Superclass::InputType;
62 
64  using OutputType = Superclass::OutputType;
65 
75 
77 
79  OutputType Evaluate(const InputType & input) const override;
80 
85  // The usual itkSetObjectMacro can not be used here because
86  // m_DefaultInputStepSize must also be copied over.
87  void SetOriginalPath(const OriginalPathType *originalPath);
88 
90  itkSetObjectMacro(OrthogonalCorrectionTable, OrthogonalCorrectionTableType)
91 
92 
93  itkNewMacro(Self);
94 
96  void Initialize() override
97  {
98  this->m_OriginalPath = nullptr;
99  this->m_OrthogonalCorrectionTable = nullptr;
100  }
101 
103  InputType StartOfInput() const override
104  {
105  return m_OriginalPath->StartOfInput();
106  }
107 
108  InputType EndOfInput() const override
109  {
110  return m_OriginalPath->EndOfInput();
111  }
112 
113 protected:
115  ~OrthogonallyCorrected2DParametricPath() override = default;
116  void PrintSelf(std::ostream & os, Indent indent) const override;
117 
118 private:
121 };
122 } // namespace itk
123 
124 #endif
OrthogonalCorrectionTableType::ElementIdentifier OrthogonalCorrectionTableSizeType
Represent a n-dimensional index in a n-dimensional image.
Definition: itkIndex.h:66
TElementIdentifier ElementIdentifier
Represent an orthogonally corrected 2D parametric path.
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image...
Definition: itkOffset.h:67
Represent a parametric path through ND Space.
A templated class holding a point in n-Dimensional image space.
Define a front-end to the STL &quot;vector&quot; container that conforms to the IndexedContainerInterface.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for most ITK classes.
Definition: itkObject.h:60
Base class for all data objects in ITK.