/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: $RCSfile: itkWinterColormapFunctor.h,v $ Language: C++ Date: $Date: $ Version: $Revision: $ Copyright (c) Insight Software Consortium. All rights reserved. See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ #ifndef __itkWinterColormapFunctor_h #define __itkWinterColormapFunctor_h #include "itkColormapFunctor.h" namespace itk { namespace Functor { /** * \class WinterColormapFunctor * \brief Function object which maps a scalar value into an RGB colormap value. * */ template< class TScalar, class TRGBPixel > class ITK_EXPORT WinterColormapFunctor : public ColormapFunctor { public: WinterColormapFunctor() {}; ~WinterColormapFunctor() {}; typedef WinterColormapFunctor Self; typedef ColormapFunctor Superclass; typedef SmartPointer Pointer; typedef SmartPointer ConstPointer; /** Method for creation through the object factory. */ itkNewMacro( Self ); typedef typename Superclass::RGBPixelType RGBPixelType; typedef typename Superclass::ScalarType ScalarType; typedef typename Superclass::RealType RealType; virtual RGBPixelType operator()( const TScalar & ) const; }; } // end namespace functor } // end namespace itk #ifndef ITK_MANUAL_INSTANTIATION #include "itkWinterColormapFunctor.txx" #endif #endif