Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #ifndef VTKIMAGEMAPTOCOLORS16_H
00042 #define VTKIMAGEMAPTOCOLORS16_H
00043
00044
00045 #include "vtkThreadedImageAlgorithm.h"
00046
00047 class vtkScalarsToColors;
00048
00049 class VTK_EXPORT vtkImageMapToColors16 : public vtkThreadedImageAlgorithm
00050 {
00051 public:
00052 static vtkImageMapToColors16 *New();
00053 vtkTypeRevisionMacro(vtkImageMapToColors16,vtkThreadedImageAlgorithm);
00054 void PrintSelf(ostream& os, vtkIndent indent);
00055
00056
00057
00058 virtual void SetLookupTable(vtkScalarsToColors*);
00059 vtkGetObjectMacro(LookupTable,vtkScalarsToColors);
00060
00061
00062
00063 vtkSetMacro(OutputFormat,int);
00064 vtkGetMacro(OutputFormat,int);
00065 void SetOutputFormatToRGBA() { this->OutputFormat = VTK_RGBA; };
00066 void SetOutputFormatToRGB() { this->OutputFormat = VTK_RGB; };
00067 void SetOutputFormatToLuminanceAlpha() { this->OutputFormat = VTK_LUMINANCE_ALPHA; };
00068 void SetOutputFormatToLuminance() { this->OutputFormat = VTK_LUMINANCE; };
00069
00070
00071
00072 vtkSetMacro(ActiveComponent,int);
00073 vtkGetMacro(ActiveComponent,int);
00074
00075
00076
00077
00078 vtkSetMacro(PassAlphaToOutput,int);
00079 vtkBooleanMacro(PassAlphaToOutput,int);
00080 vtkGetMacro(PassAlphaToOutput,int);
00081
00082
00083
00084 virtual unsigned long GetMTime();
00085
00086 protected:
00087 vtkImageMapToColors16();
00088 ~vtkImageMapToColors16();
00089
00090 virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00091
00092 void ThreadedRequestData(vtkInformation *request,
00093 vtkInformationVector **inputVector,
00094 vtkInformationVector *outputVector,
00095 vtkImageData ***inData, vtkImageData **outData,
00096 int extent[6], int id);
00097
00098 virtual int RequestData(vtkInformation *request,
00099 vtkInformationVector **inputVector,
00100 vtkInformationVector *outputVector);
00101
00102 vtkScalarsToColors *LookupTable;
00103 int OutputFormat;
00104
00105 int ActiveComponent;
00106 int PassAlphaToOutput;
00107
00108 int DataWasPassed;
00109 private:
00110 vtkImageMapToColors16(const vtkImageMapToColors16&);
00111 void operator=(const vtkImageMapToColors16&);
00112 };
00113
00114 #endif