ITK  4.13.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:
67 
71 
74 
76  itkTypeMacro(ParametricPath, Path);
77 
79  typedef typename Superclass::InputType InputType;
80 
82  typedef typename Superclass::OutputType OutputType;
83 
87 
90  virtual IndexType EvaluateToIndex(const InputType & input) const ITK_OVERRIDE;
91 
107  virtual OffsetType IncrementInput(InputType & input) const ITK_OVERRIDE;
108 
115  virtual VectorType EvaluateDerivative(const InputType & input) const;
116 
117  itkSetMacro(DefaultInputStepSize, InputType)
118  itkGetConstReferenceMacro(DefaultInputStepSize, InputType)
119 
120 protected:
121  ParametricPath();
122  ~ParametricPath() ITK_OVERRIDE {}
123  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
124 
136 
137 private:
138  ITK_DISALLOW_COPY_AND_ASSIGN(ParametricPath);
139 };
140 
141 } // namespace itk
142 
143 #ifndef ITK_MANUAL_INSTANTIATION
144 #include "itkParametricPath.hxx"
145 #endif
146 
147 #endif // itkParametricPath.h
Vector< double, VDimension > VectorType
SmartPointer< const Self > ConstPointer
Superclass::OutputType OutputType
Superclass::InputType InputType
ContinuousIndex< SpacePrecisionType, VDimension > ContinuousIndexType
Represent a path through ND Space.
Definition: itkPath.h:53
SmartPointer< Self > Pointer
Index< VDimension > IndexType
Represent a parametric path through ND Space.
Offset< VDimension > OffsetType
Path< double, ContinuousIndexType, VDimension > Superclass
InputType m_DefaultInputStepSize
A templated class holding a point in n-Dimensional image space.
Control indentation during Print() invocation.
Definition: itkIndent.h:49