Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Imaging/vtkImageMapToColors.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageMapToColors.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00048 #ifndef __vtkImageMapToColors_h
00049 #define __vtkImageMapToColors_h
00050 
00051 
00052 #include "vtkImageToImageFilter.h"
00053 
00054 class vtkScalarsToColors;
00055 
00056 class VTK_IMAGING_EXPORT vtkImageMapToColors : public vtkImageToImageFilter
00057 {
00058 public:
00059   static vtkImageMapToColors *New();
00060   vtkTypeRevisionMacro(vtkImageMapToColors,vtkImageToImageFilter);
00061   void PrintSelf(ostream& os, vtkIndent indent);
00062 
00064 
00065   virtual void SetLookupTable(vtkScalarsToColors*);
00066   vtkGetObjectMacro(LookupTable,vtkScalarsToColors);
00068 
00070 
00071   vtkSetMacro(OutputFormat,int);
00072   vtkGetMacro(OutputFormat,int);
00073   void SetOutputFormatToRGBA() { this->OutputFormat = VTK_RGBA; };
00074   void SetOutputFormatToRGB() { this->OutputFormat = VTK_RGB; };
00075   void SetOutputFormatToLuminanceAlpha() { this->OutputFormat = VTK_LUMINANCE_ALPHA; };
00076   void SetOutputFormatToLuminance() { this->OutputFormat = VTK_LUMINANCE; };
00078 
00080 
00081   vtkSetMacro(ActiveComponent,int);
00082   vtkGetMacro(ActiveComponent,int);
00084 
00086 
00089   vtkSetMacro(PassAlphaToOutput,int);
00090   vtkBooleanMacro(PassAlphaToOutput,int);
00091   vtkGetMacro(PassAlphaToOutput,int);
00093 
00095   unsigned long GetMTime();
00096 
00097 protected:
00098   vtkImageMapToColors();
00099   ~vtkImageMapToColors();
00100 
00101   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00102   void ExecuteInformation() {
00103     this->vtkImageToImageFilter::ExecuteInformation(); };
00104   void ThreadedExecute(vtkImageData *inData, vtkImageData *outData,
00105                        int extent[6], int id);
00106   
00107   void ExecuteData(vtkDataObject *output);
00108 
00109   vtkScalarsToColors *LookupTable;
00110   int OutputFormat;
00111   
00112   int ActiveComponent;
00113   int PassAlphaToOutput;
00114 
00115   int DataWasPassed;
00116 private:
00117   vtkImageMapToColors(const vtkImageMapToColors&);  // Not implemented.
00118   void operator=(const vtkImageMapToColors&);  // Not implemented.
00119 };
00120 
00121 #endif
00122 
00123 
00124 
00125 
00126 
00127 
00128