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

itkSpatialFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkSpatialFunction.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-03-03 15:09:33 $
00007   Version:   $Revision: 1.19 $
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 __itkSpatialFunction_h
00018 #define __itkSpatialFunction_h
00019 
00020 #include "itkFunctionBase.h"
00021 #include "itkPoint.h"
00022 
00023 namespace itk
00024 {
00025 
00043 template <typename TOutput, 
00044           unsigned int VImageDimension=3,
00045           typename TInput=Point<double, VImageDimension> >
00046 class ITK_EXPORT SpatialFunction : public FunctionBase<TInput, TOutput>
00047 {
00048 public:
00050   typedef SpatialFunction                Self;
00051   typedef FunctionBase< TInput, TOutput> Superclass;
00052   typedef SmartPointer<Self>             Pointer;
00053   typedef SmartPointer<const Self>       ConstPointer;
00054 
00056   itkTypeMacro(SpatialFunction, FunctionBase);
00057 
00059   typedef typename Superclass::InputType InputType;
00060 
00062   typedef typename Superclass::OutputType OutputType;
00063 
00065   itkStaticConstMacro(ImageDimension, unsigned int, VImageDimension);
00066 
00069   virtual OutputType Evaluate( const InputType& input ) const = 0;
00070 
00071 protected:
00072   SpatialFunction();
00073   virtual ~SpatialFunction();
00074   void PrintSelf(std::ostream& os, Indent indent) const;
00075 
00076 private:
00077   SpatialFunction(const Self&); //purposely not implemented
00078   void operator=(const Self&); //purposely not implemented
00079 
00080 };
00081 
00082 } // end namespace itk
00083 
00084 // Define instantiation macro for this template.
00085 #define ITK_TEMPLATE_SpatialFunction(_, EXPORT, x, y) namespace itk { \
00086   _(3(class EXPORT SpatialFunction< ITK_TEMPLATE_3 x >)) \
00087   namespace Templates { typedef SpatialFunction< ITK_TEMPLATE_3 x > \
00088                                                   SpatialFunction##y; } \
00089   }
00090 
00091 #if ITK_TEMPLATE_EXPLICIT
00092 # include "Templates/itkSpatialFunction+-.h"
00093 #endif
00094 
00095 #if ITK_TEMPLATE_TXX
00096 # include "itkSpatialFunction.txx"
00097 #endif
00098 
00099 
00100 #endif
00101 

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