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

itkHeavisideStepFunctionBase.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkHeavisideStepFunctionBase.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-05-09 21:06:28 $
00007   Version:   $Revision: 1.1 $
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 __itkHeavisideStepFunctionBase_h
00019 #define __itkHeavisideStepFunctionBase_h
00020 
00021 #include "itkFunctionBase.h"
00022 
00023 namespace itk
00024 {
00025 
00052 template< typename TInput = float, typename TOutput = double >
00053 class HeavisideStepFunctionBase : public FunctionBase< TInput, TOutput >
00054 {
00055 public:
00056   typedef HeavisideStepFunctionBase         Self;
00057   typedef FunctionBase< TInput, TOutput >   Superclass;
00058   typedef SmartPointer<Self>                Pointer;
00059   typedef SmartPointer<const Self>          ConstPointer;
00060 
00061   typedef typename Superclass::InputType    InputType;
00062   typedef typename Superclass::OutputType   OutputType;
00063 
00065   virtual OutputType Evaluate( const InputType& input ) const = 0;
00066 
00068   virtual OutputType EvaluateDerivative( const InputType& input ) const = 0;
00069 
00070 protected:
00071   HeavisideStepFunctionBase() {}
00072   virtual ~HeavisideStepFunctionBase() {}
00073 
00074 private:
00075   HeavisideStepFunctionBase(const Self& ); //purposely not implemented
00076   void operator=(const Self& ); //purposely not implemented
00077 
00078 };
00079 
00080 }
00081 
00082 #endif
00083 

Generated at Mon Jul 12 2010 18:31:08 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000