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