00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkOrthogonallyCorrected2DParametricPath.h,v $ 00005 Language: C++ 00006 Date: $Date: 2009-02-19 19:41:22 $ 00007 Version: $Revision: 1.8 $ 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 typedef OrthogonalCorrectionTableType::VectorContainerSizeType OrthogonalCorrectionTableSizeType; 00078 00080 virtual OutputType Evaluate( const InputType & input ) const; 00081 00086 // The usual itkSetObjectMacro can not be used here because 00087 // m_DefaultInputStepSize must also be copied over. 00088 void SetOriginalPath( const OriginalPathType *originalPath ); 00089 00091 itkSetObjectMacro( OrthogonalCorrectionTable, OrthogonalCorrectionTableType ) 00092 00093 00094 itkNewMacro( Self ); 00095 00097 virtual void Initialize(void) 00098 { 00099 this->m_OriginalPath = NULL; 00100 this->m_OrthogonalCorrectionTable = NULL; 00101 } 00102 00104 virtual inline InputType StartOfInput() const 00105 { 00106 return m_OriginalPath->StartOfInput(); 00107 } 00108 virtual inline InputType EndOfInput() const 00109 { 00110 return m_OriginalPath->EndOfInput(); 00111 } 00113 00114 00115 protected: 00116 OrthogonallyCorrected2DParametricPath(); 00117 ~OrthogonallyCorrected2DParametricPath(){} 00118 void PrintSelf(std::ostream& os, Indent indent) const; 00119 00120 private: 00121 OrthogonallyCorrected2DParametricPath(const Self&); //purposely not implemented 00122 void operator=(const Self&); //purposely not implemented 00123 00124 OriginalPathConstPointer m_OriginalPath; 00125 OrthogonalCorrectionTablePointer m_OrthogonalCorrectionTable; 00126 00127 }; 00128 00129 } // namespace itk 00130 00131 #endif 00132