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

itkTransferFunctionBase.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkTransferFunctionBase.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-28 21:04:59 $
00007   Version:   $Revision: 1.3 $
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 __itkTransferFunctionBase_h
00019 #define __itkTransferFunctionBase_h
00020 
00021 #include "itkFunctionBase.h"
00022 #include "itkArray.h"
00023 
00024 namespace itk
00025 {
00026 namespace Statistics
00027 {
00028 
00029 template<class ScalarType>
00030 class TransferFunctionBase : public FunctionBase<ScalarType, ScalarType>
00031 {
00032 public:
00033 
00035   typedef TransferFunctionBase             Self;
00036   typedef FunctionBase<ScalarType, double> Superclass;
00037   typedef SmartPointer<Self>               Pointer;
00038   typedef SmartPointer<const Self>         ConstPointer;
00039 
00041   itkTypeMacro(TransferFunctionBase, FunctionBase);
00042 
00044   typedef ScalarType InputType;
00045 
00047   typedef ScalarType        OutputType;
00048   typedef Array<ScalarType> ArrayType;
00049 
00051   virtual OutputType Evaluate(const InputType& input) const = 0;
00052 
00054   virtual OutputType EvaluateDerivative(const InputType& input) const = 0;
00055 
00056 protected:
00057   TransferFunctionBase() {};
00058   ~TransferFunctionBase(){};
00059 
00061   virtual void PrintSelf( std::ostream& os, Indent indent ) const
00062     {
00063     os << indent << "TransferFunctionBase(" << this << ")" << std::endl;
00064     Superclass::PrintSelf( os, indent );
00065     }
00067 
00068 private:
00069 
00070   TransferFunctionBase(const Self&); //purposely not implemented
00071   void operator=(const Self&); //purposely not implemented
00072 };
00073 
00074 } // end namespace Statistics
00075 } // end namespace itk
00076 #endif
00077 

Generated at Sat Feb 28 13:40:38 2009 for ITK by doxygen 1.5.6 written by Dimitri van Heesch, © 1997-2000