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 #ifndef VTKIMAGEMAPTOCOLORS16_H
00027 #define VTKIMAGEMAPTOCOLORS16_H
00028
00029
00030 #include "vtkThreadedImageAlgorithm.h"
00031
00032 class vtkScalarsToColors;
00033
00034 class VTK_EXPORT vtkImageMapToColors16 : public vtkThreadedImageAlgorithm
00035 {
00036 public:
00037 static vtkImageMapToColors16 *New();
00038 vtkTypeRevisionMacro(vtkImageMapToColors16,vtkThreadedImageAlgorithm);
00039 void PrintSelf(ostream& os, vtkIndent indent);
00040
00041
00042
00043 virtual void SetLookupTable(vtkScalarsToColors*);
00044 vtkGetObjectMacro(LookupTable,vtkScalarsToColors);
00045
00046
00047
00048 vtkSetMacro(OutputFormat,int);
00049 vtkGetMacro(OutputFormat,int);
00050 void SetOutputFormatToRGBA() { this->OutputFormat = VTK_RGBA; };
00051 void SetOutputFormatToRGB() { this->OutputFormat = VTK_RGB; };
00052 void SetOutputFormatToLuminanceAlpha() { this->OutputFormat = VTK_LUMINANCE_ALPHA; };
00053 void SetOutputFormatToLuminance() { this->OutputFormat = VTK_LUMINANCE; };
00054
00055
00056
00057 vtkSetMacro(ActiveComponent,int);
00058 vtkGetMacro(ActiveComponent,int);
00059
00060
00061
00062
00063 vtkSetMacro(PassAlphaToOutput,int);
00064 vtkBooleanMacro(PassAlphaToOutput,int);
00065 vtkGetMacro(PassAlphaToOutput,int);
00066
00067
00068
00069 virtual unsigned long GetMTime();
00070
00071 protected:
00072 vtkImageMapToColors16();
00073 ~vtkImageMapToColors16();
00074
00075 virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00076
00077 void ThreadedRequestData(vtkInformation *request,
00078 vtkInformationVector **inputVector,
00079 vtkInformationVector *outputVector,
00080 vtkImageData ***inData, vtkImageData **outData,
00081 int extent[6], int id);
00082
00083 virtual int RequestData(vtkInformation *request,
00084 vtkInformationVector **inputVector,
00085 vtkInformationVector *outputVector);
00086
00087 vtkScalarsToColors *LookupTable;
00088 int OutputFormat;
00089
00090 int ActiveComponent;
00091 int PassAlphaToOutput;
00092
00093 int DataWasPassed;
00094 private:
00095 vtkImageMapToColors16(const vtkImageMapToColors16&);
00096 void operator=(const vtkImageMapToColors16&);
00097 };
00098
00099 #endif
00100
00101
00102
00103
00104
00105
00106