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 "vtkThreadedImageAlgorithm.h"
00039
00040 class vtkScalarsToColors;
00041
00042 class VTK_IMAGING_EXPORT vtkImageMapToColors : public vtkThreadedImageAlgorithm
00043 {
00044 public:
00045 static vtkImageMapToColors *New();
00046 vtkTypeRevisionMacro(vtkImageMapToColors,vtkThreadedImageAlgorithm);
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 virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00088
00089 void ThreadedRequestData(vtkInformation *request,
00090 vtkInformationVector **inputVector,
00091 vtkInformationVector *outputVector,
00092 vtkImageData ***inData, vtkImageData **outData,
00093 int extent[6], int id);
00094
00095 virtual int RequestData(vtkInformation *request,
00096 vtkInformationVector **inputVector,
00097 vtkInformationVector *outputVector);
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