00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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
00086
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 }
00111
00112
00113 protected:
00114 OrthogonallyCorrected2DParametricPath();
00115 ~OrthogonallyCorrected2DParametricPath(){}
00116 void PrintSelf(std::ostream& os, Indent indent) const;
00117
00118 private:
00119 OrthogonallyCorrected2DParametricPath(const Self&);
00120 void operator=(const Self&);
00121
00122 OriginalPathConstPointer m_OriginalPath;
00123 OrthogonalCorrectionTablePointer m_OrthogonalCorrectionTable;
00124
00125 };
00126
00127 }
00128
00129 #endif