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

dox/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 =========================================================================*/ 00038 #ifndef __vtkImageMapToColors_h 00039 #define __vtkImageMapToColors_h 00040 00041 00042 #include "vtkImageToImageFilter.h" 00043 00044 class vtkScalarsToColors; 00045 00046 class VTK_IMAGING_EXPORT vtkImageMapToColors : public vtkImageToImageFilter 00047 { 00048 public: 00049 static vtkImageMapToColors *New(); 00050 vtkTypeRevisionMacro(vtkImageMapToColors,vtkImageToImageFilter); 00051 void PrintSelf(ostream& os, vtkIndent indent); 00052 00054 00055 virtual void SetLookupTable(vtkScalarsToColors*); 00056 vtkGetObjectMacro(LookupTable,vtkScalarsToColors); 00058 00060 00061 vtkSetMacro(OutputFormat,int); 00062 vtkGetMacro(OutputFormat,int); 00063 void SetOutputFormatToRGBA() { this->OutputFormat = VTK_RGBA; }; 00064 void SetOutputFormatToRGB() { this->OutputFormat = VTK_RGB; }; 00065 void SetOutputFormatToLuminanceAlpha() { this->OutputFormat = VTK_LUMINANCE_ALPHA; }; 00066 void SetOutputFormatToLuminance() { this->OutputFormat = VTK_LUMINANCE; }; 00068 00070 00071 vtkSetMacro(ActiveComponent,int); 00072 vtkGetMacro(ActiveComponent,int); 00074 00076 00079 vtkSetMacro(PassAlphaToOutput,int); 00080 vtkBooleanMacro(PassAlphaToOutput,int); 00081 vtkGetMacro(PassAlphaToOutput,int); 00083 00085 unsigned long GetMTime(); 00086 00087 protected: 00088 vtkImageMapToColors(); 00089 ~vtkImageMapToColors(); 00090 00091 void ExecuteInformation(vtkImageData *inData, vtkImageData *outData); 00092 void ExecuteInformation() { 00093 this->vtkImageToImageFilter::ExecuteInformation(); }; 00094 void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, 00095 int extent[6], int id); 00096 00097 void ExecuteData(vtkDataObject *output); 00098 00099 vtkScalarsToColors *LookupTable; 00100 int OutputFormat; 00101 00102 int ActiveComponent; 00103 int PassAlphaToOutput; 00104 00105 int DataWasPassed; 00106 private: 00107 vtkImageMapToColors(const vtkImageMapToColors&); // Not implemented. 00108 void operator=(const vtkImageMapToColors&); // Not implemented. 00109 }; 00110 00111 #endif 00112 00113 00114 00115 00116 00117 00118