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

itkParametricPath.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkParametricPath.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 _itkParametricPath_h 00019 #define _itkParametricPath_h 00020 00021 #include "itkPath.h" 00022 #include "itkContinuousIndex.h" 00023 #include "itkIndex.h" 00024 #include "itkOffset.h" 00025 #include "itkVector.h" 00026 00027 namespace itk 00028 { 00029 00030 00061 template <unsigned int VDimension> 00062 class ITK_EXPORT ParametricPath : public 00063 Path< double, ContinuousIndex<double,VDimension>, VDimension > 00064 { 00065 public: 00067 typedef ParametricPath Self; 00068 typedef Path<double,ContinuousIndex<double,VDimension>,VDimension> Superclass; 00069 typedef SmartPointer<Self> Pointer; 00070 typedef SmartPointer<const Self> ConstPointer; 00071 00073 itkTypeMacro(ParametricPath, Path); 00074 00076 typedef typename Superclass::InputType InputType; 00077 00079 typedef typename Superclass::OutputType OutputType; 00080 00081 00083 typedef ContinuousIndex<double,VDimension> ContinuousIndexType; 00084 typedef Index< VDimension > IndexType; 00085 typedef Offset< VDimension > OffsetType; 00086 typedef Vector<double,VDimension> VectorType; 00087 00088 00091 virtual IndexType EvaluateToIndex( const InputType & input ) const; 00092 00108 virtual OffsetType IncrementInput(InputType & input) const; 00109 00116 virtual VectorType EvaluateDerivative(const InputType & input) const; 00117 00118 itkGetConstMacro( DefaultInputStepSize, InputType ) 00119 00120 00121 protected: 00122 ParametricPath(){} 00123 ~ParametricPath(){} 00124 void PrintSelf(std::ostream &os, Indent indent) const; 00125 00136 InputType m_DefaultInputStepSize; 00137 00138 private: 00139 ParametricPath(const Self&); //purposely not implemented 00140 void operator=(const Self&); //purposely not implemented 00141 00142 }; 00143 00144 00145 // There are non-templated subclasses of ParametricPath 00146 // (ex. OrthogonallyCorrected2DParametricPath which is a subclass of 00147 // ParametricPath<2>). We need force all consumers of 00148 // ParametericPath<2> to get it from the ITKCommon library. 00149 // itkParametricPath.cxx will put ParametricPath<2> in the the 00150 // ITKCommon library. Everyone else using a ParametericPath<2> will 00151 // load it from the dll. 00152 #if (defined(_WIN32) || defined(WIN32)) && !defined(ITKSTATIC) 00153 # ifndef ITKCommon_EXPORTS 00154 template class __declspec(dllimport) ParametricPath<2>; 00155 #endif 00156 #endif 00157 00158 } // namespace itk 00159 00160 #ifndef ITK_MANUAL_INSTANTIATION 00161 #include "itkParametricPath.txx" 00162 #endif 00163 00164 #endif

Generated at Sat Mar 31 02:26:47 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000