ITK  4.8.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 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 
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(){}
123  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
124 
136 
137 private:
138  ParametricPath(const Self &); //purposely not implemented
139  void operator=(const Self &); //purposely not implemented
140 };
141 
142 } // namespace itk
143 
144 #ifndef ITK_MANUAL_INSTANTIATION
145 #include "itkParametricPath.hxx"
146 #endif
147 
148 #endif
Vector< double, VDimension > VectorType
SmartPointer< const Self > ConstPointer
Superclass::OutputType OutputType
void PrintSelf(std::ostream &os, Indent indent) const override
Superclass::InputType InputType
ContinuousIndex< SpacePrecisionType, VDimension > ContinuousIndexType
TOutput OutputType
Definition: itkPath.h:72
Represent a path through ND Space.
Definition: itkPath.h:53
SmartPointer< Self > Pointer
Index< VDimension > IndexType
virtual IndexType EvaluateToIndex(const InputType &input) const override
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
virtual VectorType EvaluateDerivative(const InputType &input) const
virtual OffsetType IncrementInput(InputType &input) const override
void operator=(const Self &)
TInput InputType
Definition: itkPath.h:66
Base class for all data objects in ITK.