vtkImageMapToColors.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
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&);
00114 void operator=(const vtkImageMapToColors&);
00115 };
00116
00117 #endif
00118
00119
00120
00121
00122
00123
00124