00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkOrthogonallyCorrected2DParametricPath.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:19 $ 00007 Version: $Revision: 1.6 $ 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 __itkOrthogonallyCorrected2DParametricPath_h 00019 #define __itkOrthogonallyCorrected2DParametricPath_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 00047 class ITKCommon_EXPORT OrthogonallyCorrected2DParametricPath : public 00048 ParametricPath<2> 00049 { 00050 public: 00052 typedef OrthogonallyCorrected2DParametricPath Self; 00053 typedef ParametricPath<2> Superclass; 00054 typedef SmartPointer<Self> Pointer; 00055 typedef SmartPointer<const Self> ConstPointer; 00056 00058 itkTypeMacro(OrthogonallyCorrected2DParametricPath, ParametricPath); 00059 00061 typedef Superclass::InputType InputType; 00062 00064 typedef Superclass::OutputType OutputType; 00065 00066 00068 typedef ContinuousIndex<double,2> ContinuousIndexType; 00069 typedef Index<2> IndexType; 00070 typedef Offset<2> OffsetType; 00071 typedef Superclass::VectorType VectorType; 00072 typedef ParametricPath<2> OriginalPathType; 00073 typedef OriginalPathType::ConstPointer OriginalPathConstPointer; 00074 typedef VectorContainer<unsigned, double> OrthogonalCorrectionTableType; 00075 typedef OrthogonalCorrectionTableType::Pointer OrthogonalCorrectionTablePointer; 00076 00077 00079 virtual OutputType Evaluate( const InputType & input ) const; 00080 00085 // The usual itkSetObjectMacro can not be used here because 00086 // m_DefaultInputStepSize must also be copied over. 00087 void SetOriginalPath( const OriginalPathType *originalPath ); 00088 00090 itkSetObjectMacro( OrthogonalCorrectionTable, OrthogonalCorrectionTableType ) 00091 00092 00093 itkNewMacro( Self ); 00094 00096 virtual void Initialize(void) 00097 { 00098 this->m_OriginalPath = NULL; 00099 this->m_OrthogonalCorrectionTable = NULL; 00100 } 00101 00103 virtual inline InputType StartOfInput() const 00104 { 00105 return m_OriginalPath->StartOfInput(); 00106 } 00107 virtual inline InputType EndOfInput() const 00108 { 00109 return m_OriginalPath->EndOfInput(); 00110 } 00112 00113 00114 protected: 00115 OrthogonallyCorrected2DParametricPath(); 00116 ~OrthogonallyCorrected2DParametricPath(){} 00117 void PrintSelf(std::ostream& os, Indent indent) const; 00118 00119 private: 00120 OrthogonallyCorrected2DParametricPath(const Self&); //purposely not implemented 00121 void operator=(const Self&); //purposely not implemented 00122 00123 OriginalPathConstPointer m_OriginalPath; 00124 OrthogonalCorrectionTablePointer m_OrthogonalCorrectionTable; 00125 00126 }; 00127 00128 } // namespace itk 00129 00130 #endif 00131