ITK  4.9.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 ITK_OVERRIDE;
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 ITK_OVERRIDE
107  {
108  return m_VertexList->Size() - 1;
109  }
110 
112  itkNewMacro(Self);
113 
115  virtual void Initialize(void) ITK_OVERRIDE
116  {
117  m_VertexList->Initialize();
118  }
119 
121  itkGetModifiableObjectMacro(VertexList, VertexListType);
122 
127  virtual OffsetType IncrementInput(InputType & input) const ITK_OVERRIDE;
128 
132  virtual VectorType EvaluateDerivative(const InputType & input) const ITK_OVERRIDE;
133 
134 protected:
137  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
138 
139 private:
140  PolyLineParametricPath(const Self &) ITK_DELETE_FUNCTION;
141  void operator=(const Self &) ITK_DELETE_FUNCTION;
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
void PrintSelf(std::ostream &os, Indent indent) const override
Superclass::ContinuousIndexType ContinuousIndexType
virtual void Initialize(void) override
Point< double, VDimension > PointType
virtual VectorType EvaluateDerivative(const InputType &input) const override
Represent a parametric path through ND Space.
virtual OutputType Evaluate(const InputType &input) const override
virtual InputType EndOfInput() const override
virtual void Modified() 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 OffsetType IncrementInput(InputType &input) const override
ParametricPath< VDimension > Superclass
Vector< double, VDimension > VectorType
A templated class holding a geometric point in n-Dimensional space.
Definition: itkPoint.h:52