ITK  4.9.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 #include "itkPathTemplateExport.h"
25 
26 namespace itk
27 {
47  ParametricPath< 2 >
48 {
49 public:
55 
58 
60  typedef Superclass::InputType InputType;
61 
63  typedef Superclass::OutputType OutputType;
64 
69  typedef Superclass::VectorType VectorType;
74 
76 
78  virtual OutputType Evaluate(const InputType & input) const ITK_OVERRIDE;
79 
84  // The usual itkSetObjectMacro can not be used here because
85  // m_DefaultInputStepSize must also be copied over.
86  void SetOriginalPath(const OriginalPathType *originalPath);
87 
89  itkSetObjectMacro(OrthogonalCorrectionTable, OrthogonalCorrectionTableType)
90 
91 
92  itkNewMacro(Self);
93 
95  virtual void Initialize(void) ITK_OVERRIDE
96  {
97  this->m_OriginalPath = ITK_NULLPTR;
98  this->m_OrthogonalCorrectionTable = ITK_NULLPTR;
99  }
100 
102  virtual inline InputType StartOfInput() const ITK_OVERRIDE
103  {
104  return m_OriginalPath->StartOfInput();
105  }
106 
107  virtual inline InputType EndOfInput() const ITK_OVERRIDE
108  {
109  return m_OriginalPath->EndOfInput();
110  }
111 
112 protected:
115  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
116 
117 private:
118  OrthogonallyCorrected2DParametricPath(const Self &) ITK_DELETE_FUNCTION;
119  void operator=(const Self &) ITK_DELETE_FUNCTION;
120 
121  OriginalPathConstPointer m_OriginalPath;
122  OrthogonalCorrectionTablePointer m_OrthogonalCorrectionTable;
123 };
124 } // namespace itk
125 
126 #endif
Represent the offset between two n-dimensional indexes in a n-dimensional image.
Definition: itkOffset.h:55
TElementIdentifier ElementIdentifier
OrthogonalCorrectionTableType::ElementIdentifier OrthogonalCorrectionTableSizeType
#define ITKPath_EXPORT_INHERIT_TEMPLATE
Represent an orthogonally corrected 2D parametric path.
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
OrthogonalCorrectionTableType::Pointer OrthogonalCorrectionTablePointer
Represent a n-dimensional index in a n-dimensional image.
Definition: itkIndex.h:71
Base class for all data objects in ITK.