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: 2004/12/04 19:58:30 $
00007   Version:   $Revision: 1.9 $
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   itkSetMacro( DefaultInputStepSize, InputType )
00119   itkGetConstReferenceMacro( DefaultInputStepSize, InputType )
00120   
00121   
00122 protected:
00123   ParametricPath();
00124   ~ParametricPath(){}
00125   void PrintSelf(std::ostream &os, Indent indent) const;
00126   
00137   InputType m_DefaultInputStepSize;
00138   
00139 private:
00140   ParametricPath(const Self&); //purposely not implemented
00141   void operator=(const Self&); //purposely not implemented
00142   
00143 };
00144 
00145 
00146 // There are non-templated subclasses of ParametricPath
00147 // (ex. OrthogonallyCorrected2DParametricPath which is a subclass of
00148 // ParametricPath<2>).  We need force all consumers of
00149 // ParametericPath<2> to get it from the ITKCommon library.
00150 // itkParametricPath.cxx will put ParametricPath<2> in the the
00151 // ITKCommon library. Everyone else using a ParametericPath<2> will
00152 // load it from the dll.
00153 #if (defined(_WIN32) || defined(WIN32)) && !defined(ITKSTATIC) 
00154 #  ifndef ITKCommon_EXPORTS
00155      template class __declspec(dllimport) ParametricPath<2>;
00156 #endif
00157 #endif
00158 
00159 } // namespace itk
00160 
00161 #ifndef ITK_MANUAL_INSTANTIATION
00162 #include "itkParametricPath.txx"
00163 #endif
00164 
00165 #endif

Generated at Wed May 24 23:49:26 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000