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: 2009-02-19 19:41:22 $
00007   Version:   $Revision: 1.12 $
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 #ifndef __itkParametricPath_h
00018 #define __itkParametricPath_h
00019 
00020 #include "itkPath.h"
00021 #include "itkContinuousIndex.h"
00022 #include "itkIndex.h"
00023 #include "itkOffset.h"
00024 #include "itkVector.h"
00025 
00026 namespace itk
00027 {
00028 
00029 
00060 template <unsigned int VDimension>
00061 class ITK_EXPORT ParametricPath : public
00062 Path< double, ContinuousIndex<double,VDimension>, VDimension >
00063 {
00064 public:
00066   typedef ParametricPath                                             Self;
00067   typedef Path<double,ContinuousIndex<double,VDimension>,VDimension> Superclass;
00068   typedef SmartPointer<Self>                                         Pointer;
00069   typedef SmartPointer<const Self>                                   ConstPointer;
00070 
00072   itkTypeMacro(ParametricPath, Path);
00073 
00075   typedef typename Superclass::InputType  InputType;
00076 
00078   typedef typename Superclass::OutputType OutputType;
00079 
00080   
00082   typedef ContinuousIndex<double,VDimension>  ContinuousIndexType;
00083   typedef Index<  VDimension >                IndexType;
00084   typedef Offset< VDimension >                OffsetType;
00085   typedef Vector<double,VDimension>           VectorType;
00086 
00087 
00090   virtual IndexType EvaluateToIndex( const InputType & input ) const;
00091 
00107   virtual OffsetType IncrementInput(InputType & input) const;
00108 
00115   virtual VectorType EvaluateDerivative(const InputType & input) const;
00116 
00117   itkSetMacro( DefaultInputStepSize, InputType )
00118   itkGetConstReferenceMacro( 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 // Define instantiation macro for this template.
00161 #define ITK_TEMPLATE_ParametricPath(_, EXPORT, x, y) namespace itk { \
00162   _(1(class EXPORT ParametricPath< ITK_TEMPLATE_1 x >)) \
00163   namespace Templates { typedef ParametricPath< ITK_TEMPLATE_1 x > \
00164                                          ParametricPath##y; } \
00165   }
00166 
00167 #if ITK_TEMPLATE_EXPLICIT
00168 # include "Templates/itkParametricPath+-.h"
00169 #endif
00170 
00171 #if ITK_TEMPLATE_TXX
00172 # include "itkParametricPath.txx"
00173 #endif
00174 
00175 #endif
00176 

Generated at Mon Jul 12 2010 19:24:40 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000