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
00060 #ifndef __vtkImageQuantizeRGBToIndex_h
00061 #define __vtkImageQuantizeRGBToIndex_h
00062
00063 #include "vtkImageToImageFilter.h"
00064 #include "vtkLookupTable.h"
00065
00066 class VTK_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageToImageFilter
00067 {
00068 public:
00069 static vtkImageQuantizeRGBToIndex *New();
00070 vtkTypeMacro(vtkImageQuantizeRGBToIndex,vtkImageToImageFilter);
00071 void PrintSelf(ostream& os, vtkIndent indent);
00072
00075 vtkSetClampMacro( NumberOfColors, int, 2, 65536 );
00076 vtkGetMacro( NumberOfColors, int );
00077
00080 vtkGetObjectMacro( LookupTable, vtkLookupTable );
00081
00082 vtkGetMacro( InitializeExecuteTime, float );
00083 vtkGetMacro( BuildTreeExecuteTime, float );
00084 vtkGetMacro( LookupIndexExecuteTime, float );
00085
00086
00088 vtkGetMacro( InputType, int );
00089
00091 vtkSetMacro( InitializeExecuteTime, float );
00092 vtkSetMacro( BuildTreeExecuteTime, float );
00093 vtkSetMacro( LookupIndexExecuteTime, float );
00094
00095
00096 protected:
00097 vtkImageQuantizeRGBToIndex();
00098 ~vtkImageQuantizeRGBToIndex();
00099 vtkImageQuantizeRGBToIndex(const vtkImageQuantizeRGBToIndex&) {};
00100 void operator=(const vtkImageQuantizeRGBToIndex&) {};
00101
00102 vtkLookupTable *LookupTable;
00103 int NumberOfColors;
00104 int InputType;
00105
00106 float InitializeExecuteTime;
00107 float BuildTreeExecuteTime;
00108 float LookupIndexExecuteTime;
00109
00110 void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00111 void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00112 void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
00113 void Execute(vtkImageData *inData, vtkImageData *outData);
00114
00115 void Execute(vtkImageData *outData)
00116 { this->vtkImageToImageFilter::Execute(outData);};
00117 void Execute()
00118 { this->vtkImageToImageFilter::Execute();};
00119
00122 void EnlargeOutputUpdateExtents( vtkDataObject *data );
00123
00124 };
00125
00126 #endif
00127
00128
00129
00130
00131
00132
00133
00134