ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkParametricPath.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 itkParametricPath_h
19 #define itkParametricPath_h
20 
21 #include "itkImageBase.h"
22 #include "itkPath.h"
23 #include "itkContinuousIndex.h"
24 #include "itkOffset.h"
25 #include "itkVector.h"
26 
27 namespace itk
28 {
60 template< unsigned int VDimension >
61 class ITK_TEMPLATE_EXPORT ParametricPath:public
62  Path< double, ContinuousIndex< SpacePrecisionType, VDimension >, VDimension >
63 {
64 public:
65  ITK_DISALLOW_COPY_AND_ASSIGN(ParametricPath);
66 
69 
73 
76 
78  itkTypeMacro(ParametricPath, Path);
79 
81  using InputType = typename Superclass::InputType;
82 
84  using OutputType = typename Superclass::OutputType;
85 
89 
92  IndexType EvaluateToIndex(const InputType & input) const override;
93 
109  OffsetType IncrementInput(InputType & input) const override;
110 
117  virtual VectorType EvaluateDerivative(const InputType & input) const;
118 
119  itkSetMacro(DefaultInputStepSize, InputType)
120  itkGetConstReferenceMacro(DefaultInputStepSize, InputType)
121 
122 protected:
123  ParametricPath();
124  ~ParametricPath() override = default;
125  void PrintSelf(std::ostream & os, Indent indent) const override;
126 
137  InputType m_DefaultInputStepSize;
138 };
140 
141 } // namespace itk
142 
143 #ifndef ITK_MANUAL_INSTANTIATION
144 #include "itkParametricPath.hxx"
145 #endif
146 
147 #endif // itkParametricPath.h
Represent a n-dimensional index in a n-dimensional image.
Definition: itkIndex.h:66
typename Superclass::InputType InputType
Represent a path through ND Space.
Definition: itkPath.h:53
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.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for most ITK classes.
Definition: itkObject.h:60
typename Superclass::OutputType OutputType
Base class for all data objects in ITK.