Imaging/vtkImageMapToColors.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
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&);
00104 void operator=(const vtkImageMapToColors&);
00105 };
00106
00107 #endif
00108
00109
00110
00111
00112
00113
00114