ITK  5.1.0
Insight 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
62  : public 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
93  EvaluateToIndex(const InputType & input) const override;
94 
110  OffsetType
111  IncrementInput(InputType & input) const override;
112 
119  virtual VectorType
120  EvaluateDerivative(const InputType & input) const;
121 
122  itkSetMacro(DefaultInputStepSize, InputType) itkGetConstReferenceMacro(DefaultInputStepSize, InputType)
123 
124  protected : ParametricPath();
125  ~ParametricPath() override = default;
126  void
127  PrintSelf(std::ostream & os, Indent indent) const override;
128 
140 };
142 
143 } // namespace itk
144 
145 #ifndef ITK_MANUAL_INSTANTIATION
146 # include "itkParametricPath.hxx"
147 #endif
148 
149 #endif // itkParametricPath.h
itk::Index
Represent a n-dimensional index in a n-dimensional image.
Definition: itkIndex.h:66
itk::Path
Represent a path through ND Space.
Definition: itkPath.h:53
itkContinuousIndex.h
itk::ParametricPath< 2 >::OutputType
typename Superclass::OutputType OutputType
Definition: itkParametricPath.h:84
itk::ParametricPath
Represent a parametric path through ND Space.
Definition: itkParametricPath.h:61
itkOffset.h
itk::Vector< double, VDimension >
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itkPath.h
itk::Offset
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image.
Definition: itkOffset.h:67
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkArray.h:26
itk::ContinuousIndex
A templated class holding a point in n-Dimensional image space.
Definition: itkContinuousIndex.h:46
itkVector.h
itk::Object
Base class for most ITK classes.
Definition: itkObject.h:60
itk::ParametricPath< 2 >::InputType
typename Superclass::InputType InputType
Definition: itkParametricPath.h:81
itk::ParametricPath::m_DefaultInputStepSize
InputType m_DefaultInputStepSize
Definition: itkParametricPath.h:139
itk::DataObject
Base class for all data objects in ITK.
Definition: itkDataObject.h:288
itkImageBase.h