Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkPolyLineParametricPath.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkPolyLineParametricPath.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:23 $ 00007 Version: $Revision: 1.5 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef _itkPolyLineParametricPathPath_h 00019 #define _itkPolyLineParametricPathPath_h 00020 00021 #include "itkParametricPath.h" 00022 #include "itkVectorContainer.h" 00023 #include "itkContinuousIndex.h" 00024 #include "itkIndex.h" 00025 #include "itkOffset.h" 00026 #include "itkVector.h" 00027 00028 namespace itk 00029 { 00030 00031 00055 template <unsigned int VDimension> 00056 class ITK_EXPORT PolyLineParametricPath : public 00057 ParametricPath< VDimension > 00058 { 00059 public: 00061 typedef PolyLineParametricPath Self; 00062 typedef ParametricPath<VDimension> Superclass; 00063 typedef SmartPointer<Self> Pointer; 00064 typedef SmartPointer<const Self> ConstPointer; 00065 00067 itkTypeMacro(PolyLineParametricPath, ParametricPath); 00068 00070 typedef typename Superclass::InputType InputType; 00071 00073 typedef typename Superclass::OutputType OutputType; 00074 00075 00077 typedef ContinuousIndex<double,VDimension> ContinuousIndexType; 00078 typedef Index< VDimension > IndexType; 00079 typedef Offset< VDimension > OffsetType; 00080 typedef Point<double,VDimension> PointType; 00081 typedef Vector<double,VDimension> VectorType; 00082 typedef ContinuousIndexType VertexType; 00083 typedef VectorContainer<unsigned, VertexType> VertexListType; 00084 typedef typename VertexListType::Pointer VertexListPointer; 00085 00086 00088 virtual OutputType Evaluate( const InputType & input ) const; 00089 00091 // * input. This is an exact, algebraic function. */ 00092 //virtual VectorType EvaluateDerivative(const InputType & input) const; 00093 00098 inline void AddVertex( const ContinuousIndexType & vertex ) 00099 { 00100 m_VertexList->InsertElement( m_VertexList->Size(), vertex ); 00101 this->Modified(); 00102 } 00103 00107 virtual inline InputType EndOfInput() const 00108 { 00109 return m_VertexList->Size() - 1; 00110 } 00111 00113 itkNewMacro( Self ); 00114 00116 virtual void Initialize(void) 00117 { 00118 m_VertexList->Initialize(); 00119 } 00120 00121 00122 protected: 00123 PolyLineParametricPath(); 00124 ~PolyLineParametricPath(){} 00125 void PrintSelf(std::ostream& os, Indent indent) const; 00126 00127 private: 00128 PolyLineParametricPath(const Self&); //purposely not implemented 00129 void operator=(const Self&); //purposely not implemented 00130 00131 VertexListPointer m_VertexList; 00132 }; 00133 00134 } // namespace itk 00135 00136 #ifndef ITK_MANUAL_INSTANTIATION 00137 #include "itkPolyLineParametricPath.txx" 00138 #endif 00139 00140 #endif

Generated at Sun Apr 1 02:41:25 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000