ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkPolyLineParametricPath.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 __itkPolyLineParametricPath_h
19 #define __itkPolyLineParametricPath_h
20 
21 #include "itkParametricPath.h"
22 #include "itkVectorContainer.h"
23 #include "itkIndex.h"
24 
25 namespace itk
26 {
55 template< unsigned int VDimension >
57  ParametricPath< VDimension >
58 {
59 public:
65 
68 
70  typedef typename Superclass::InputType InputType;
71 
74 
84 
86  virtual OutputType Evaluate(const InputType & input) const;
87 
90  //virtual VectorType EvaluateDerivative(const InputType & input) const;
91 
96  inline void AddVertex(const ContinuousIndexType & vertex)
97  {
98  m_VertexList->InsertElement(m_VertexList->Size(), vertex);
99  this->Modified();
100  }
102 
106  virtual inline InputType EndOfInput() const
107  {
108  return m_VertexList->Size() - 1;
109  }
110 
112  itkNewMacro(Self);
113 
115  virtual void Initialize(void)
116  {
117  m_VertexList->Initialize();
118  }
119 
121  itkGetModifiableObjectMacro(VertexList, VertexListType);
122 
127  virtual OffsetType IncrementInput(InputType & input) const;
128 
132  virtual VectorType EvaluateDerivative(const InputType & input) const;
133 
134 protected:
137  void PrintSelf(std::ostream & os, Indent indent) const;
138 
139 private:
140  PolyLineParametricPath(const Self &); //purposely not implemented
141  void operator=(const Self &); //purposely not implemented
142 
144 };
145 } // end namespace itk
146 
147 #ifndef ITK_MANUAL_INSTANTIATION
148 #include "itkPolyLineParametricPath.hxx"
149 #endif
150 
151 #endif
Represent a path of line segments through ND Space.
void AddVertex(const ContinuousIndexType &vertex)
SmartPointer< const Self > ConstPointer
Superclass::OutputType OutputType
VertexListType::Pointer VertexListPointer
Superclass::InputType InputType
ContinuousIndex< SpacePrecisionType, VDimension > ContinuousIndexType
Superclass::ContinuousIndexType ContinuousIndexType
Point< double, VDimension > PointType
Represent a parametric path through ND Space.
void operator=(const Self &)
virtual InputType EndOfInput() const
virtual void Modified() const
virtual OffsetType IncrementInput(InputType &input) const
VectorContainer< unsigned, VertexType > VertexListType
A templated class holding a point in n-Dimensional image space.
Define a front-end to the STL &quot;vector&quot; container that conforms to the IndexedContainerInterface.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
virtual VectorType EvaluateDerivative(const InputType &input) const
ParametricPath< VDimension > Superclass
Vector< double, VDimension > VectorType
void PrintSelf(std::ostream &os, Indent indent) const
A templated class holding a geometric point in n-Dimensional space.
Definition: itkPoint.h:51
virtual OutputType Evaluate(const InputType &input) const