ITK  4.6.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;
91 
107  virtual OffsetType IncrementInput(InputType & input) const;
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;
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
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
void PrintSelf(std::ostream &os, Indent indent) const
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
virtual OffsetType IncrementInput(InputType &input) const
virtual VectorType EvaluateDerivative(const InputType &input) const
void operator=(const Self &)
virtual IndexType EvaluateToIndex(const InputType &input) const
TInput InputType
Definition: itkPath.h:66
Base class for all data objects in ITK.