vtkImageQuantizeRGBToIndex.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00037 #ifndef __vtkImageQuantizeRGBToIndex_h
00038 #define __vtkImageQuantizeRGBToIndex_h
00039
00040 #include "vtkImageToImageFilter.h"
00041
00042 class vtkLookupTable;
00043
00044 class VTK_IMAGING_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageToImageFilter
00045 {
00046 public:
00047 static vtkImageQuantizeRGBToIndex *New();
00048 vtkTypeRevisionMacro(vtkImageQuantizeRGBToIndex,vtkImageToImageFilter);
00049 void PrintSelf(ostream& os, vtkIndent indent);
00050
00052
00054 vtkSetClampMacro( NumberOfColors, int, 2, 65536 );
00055 vtkGetMacro( NumberOfColors, int );
00057
00059
00061 vtkGetObjectMacro( LookupTable, vtkLookupTable );
00063
00064 vtkGetMacro( InitializeExecuteTime, float );
00065 vtkGetMacro( BuildTreeExecuteTime, float );
00066 vtkGetMacro( LookupIndexExecuteTime, float );
00067
00068
00070
00071 vtkGetMacro( InputType, int );
00073
00075
00076 vtkSetMacro( InitializeExecuteTime, float );
00077 vtkSetMacro( BuildTreeExecuteTime, float );
00078 vtkSetMacro( LookupIndexExecuteTime, float );
00080
00081
00082 protected:
00083 vtkImageQuantizeRGBToIndex();
00084 ~vtkImageQuantizeRGBToIndex();
00085
00086 vtkLookupTable *LookupTable;
00087 int NumberOfColors;
00088 int InputType;
00089
00090 float InitializeExecuteTime;
00091 float BuildTreeExecuteTime;
00092 float LookupIndexExecuteTime;
00093
00094 void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00095 void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00096 void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
00097
00098 virtual void ExecuteData(vtkDataObject *out);
00099 private:
00100 vtkImageQuantizeRGBToIndex(const vtkImageQuantizeRGBToIndex&);
00101 void operator=(const vtkImageQuantizeRGBToIndex&);
00102 };
00103
00104 #endif
00105
00106
00107
00108
00109
00110
00111
00112