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