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