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

itkGreyColormapFunctor.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkGreyColormapFunctor.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-05-15 19:22:31 $
00007   Version:   $Revision: 1.2 $
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 __itkGreyColormapFunctor_h
00018 #define __itkGreyColormapFunctor_h
00019 
00020 #include "itkColormapFunctor.h"
00021 
00022 namespace itk {
00023 
00024 namespace Functor {  
00025 
00039 template< class TScalar, class TRGBPixel >
00040 class ITK_EXPORT GreyColormapFunctor
00041 : public ColormapFunctor<TScalar, TRGBPixel>
00042 {
00043 public:
00044 
00045   typedef GreyColormapFunctor                    Self;
00046   typedef ColormapFunctor<TScalar, TRGBPixel>    Superclass;
00047   typedef SmartPointer<Self>                     Pointer;
00048   typedef SmartPointer<const Self>               ConstPointer;
00049 
00051   itkNewMacro( Self );
00052 
00053   typedef typename Superclass::RGBPixelType      RGBPixelType;
00054   typedef typename Superclass::ScalarType        ScalarType;  
00055   typedef typename Superclass::RealType          RealType;
00056   
00057   virtual RGBPixelType operator()( const TScalar & ) const;
00058 
00059 protected:
00060   GreyColormapFunctor() {};
00061   ~GreyColormapFunctor() {};
00062 
00063 private:
00064   GreyColormapFunctor(const Self&); //purposely not implemented
00065   void operator=(const Self&); //purposely not implemented
00066 
00067 };
00068   
00069 } // end namespace functor
00070 
00071 } // end namespace itk
00072 
00073 #ifndef ITK_MANUAL_INSTANTIATION
00074 #include "itkGreyColormapFunctor.txx"
00075 #endif
00076 
00077 #endif
00078 

Generated at Thu May 28 10:08:30 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000