ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkOrthogonallyCorrected2DParametricPath_h 00019 #define __itkOrthogonallyCorrected2DParametricPath_h 00020 00021 #include "itkParametricPath.h" 00022 #include "itkVectorContainer.h" 00023 #include "itkIndex.h" 00024 00025 namespace itk 00026 { 00044 class ITK_EXPORT OrthogonallyCorrected2DParametricPath:public 00045 ParametricPath< 2 > 00046 { 00047 public: 00049 typedef OrthogonallyCorrected2DParametricPath Self; 00050 typedef ParametricPath< 2 > Superclass; 00051 typedef SmartPointer< Self > Pointer; 00052 typedef SmartPointer< const Self > ConstPointer; 00053 00055 itkTypeMacro(OrthogonallyCorrected2DParametricPath, ParametricPath); 00056 00058 typedef Superclass::InputType InputType; 00059 00061 typedef Superclass::OutputType OutputType; 00062 00064 typedef ContinuousIndex< double, 2 > ContinuousIndexType; 00065 typedef Index< 2 > IndexType; 00066 typedef Offset< 2 > OffsetType; 00067 typedef Superclass::VectorType VectorType; 00068 typedef ParametricPath< 2 > OriginalPathType; 00069 typedef OriginalPathType::ConstPointer OriginalPathConstPointer; 00070 typedef VectorContainer< unsigned, double > OrthogonalCorrectionTableType; 00071 typedef OrthogonalCorrectionTableType::Pointer OrthogonalCorrectionTablePointer; 00072 00073 typedef OrthogonalCorrectionTableType::ElementIdentifier OrthogonalCorrectionTableSizeType; 00074 00076 virtual OutputType Evaluate(const InputType & input) const; 00077 00082 // The usual itkSetObjectMacro can not be used here because 00083 // m_DefaultInputStepSize must also be copied over. 00084 void SetOriginalPath(const OriginalPathType *originalPath); 00085 00087 itkSetObjectMacro(OrthogonalCorrectionTable, OrthogonalCorrectionTableType) 00088 00089 00090 itkNewMacro(Self); 00091 00093 virtual void Initialize(void) 00094 { 00095 this->m_OriginalPath = NULL; 00096 this->m_OrthogonalCorrectionTable = NULL; 00097 } 00098 00100 virtual inline InputType StartOfInput() const 00101 { 00102 return m_OriginalPath->StartOfInput(); 00103 } 00104 00105 virtual inline InputType EndOfInput() const 00106 { 00107 return m_OriginalPath->EndOfInput(); 00108 } 00109 00110 protected: 00111 OrthogonallyCorrected2DParametricPath(); 00112 ~OrthogonallyCorrected2DParametricPath(){} 00113 void PrintSelf(std::ostream & os, Indent indent) const; 00114 00115 private: 00116 OrthogonallyCorrected2DParametricPath(const Self &); //purposely not 00117 // implemented 00118 void operator=(const Self &); //purposely not 00119 // implemented 00120 00121 OriginalPathConstPointer m_OriginalPath; 00122 OrthogonalCorrectionTablePointer m_OrthogonalCorrectionTable; 00123 }; 00124 } // namespace itk 00125 00126 #endif 00127