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

itkScalarToRGBPixelFunctor.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkScalarToRGBPixelFunctor.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006/02/06 22:01:58 $
00007   Version:   $Revision: 1.5 $
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 __itkScalarToRGBPixelFunctor_h
00018 #define __itkScalarToRGBPixelFunctor_h
00019 
00020 #include "itkRGBPixel.h"
00021 
00022 namespace itk {
00023 
00024 namespace Functor {  
00025 
00041 template< class TScalar >
00042 class ITK_EXPORT ScalarToRGBPixelFunctor
00043 {
00044 public:
00045   ScalarToRGBPixelFunctor();
00046   ~ScalarToRGBPixelFunctor() {};
00048 
00049   typedef unsigned char               RGBComponentType;
00050   typedef RGBPixel<RGBComponentType>  RGBPixelType;
00051   typedef TScalar                     ScalarType;
00052   
00053   RGBPixelType operator()( const TScalar &) const;
00054 
00055   void SetLittleEndian()
00056   {
00057     m_IsBigEndian = false;
00058   }
00059   void SetBigEndian()
00060   {
00061     m_IsBigEndian = true;
00062   }
00063   
00064 private:
00065   bool m_IsBigEndian;
00066   ::size_t m_Index[3];
00067   
00068 };
00069   
00070 } // end namespace functor
00071 
00072 } // end namespace itk
00073 
00074 #ifndef ITK_MANUAL_INSTANTIATION
00075 #include "itkScalarToRGBPixelFunctor.txx"
00076 #endif
00077 
00078 #endif
00079 

Generated at Tue Jul 29 22:09:07 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000