Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkImageMapToColors.h

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