00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00033 #ifndef __vtkImageQuantizeRGBToIndex_h
00034 #define __vtkImageQuantizeRGBToIndex_h
00035
00036 #include "vtkImageAlgorithm.h"
00037
00038 class vtkLookupTable;
00039
00040 class VTK_IMAGING_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageAlgorithm
00041 {
00042 public:
00043 static vtkImageQuantizeRGBToIndex *New();
00044 vtkTypeRevisionMacro(vtkImageQuantizeRGBToIndex,vtkImageAlgorithm);
00045 void PrintSelf(ostream& os, vtkIndent indent);
00046
00048
00050 vtkSetClampMacro( NumberOfColors, int, 2, 65536 );
00051 vtkGetMacro( NumberOfColors, int );
00053
00055
00057 vtkGetObjectMacro( LookupTable, vtkLookupTable );
00059
00060 vtkGetMacro( InitializeExecuteTime, double );
00061 vtkGetMacro( BuildTreeExecuteTime, double );
00062 vtkGetMacro( LookupIndexExecuteTime, double );
00063
00064
00066
00067 vtkGetMacro( InputType, int );
00069
00071
00072 vtkSetMacro( InitializeExecuteTime, double );
00073 vtkSetMacro( BuildTreeExecuteTime, double );
00074 vtkSetMacro( LookupIndexExecuteTime, double );
00076
00077
00078 protected:
00079 vtkImageQuantizeRGBToIndex();
00080 ~vtkImageQuantizeRGBToIndex();
00081
00082 vtkLookupTable *LookupTable;
00083 int NumberOfColors;
00084 int InputType;
00085
00086 double InitializeExecuteTime;
00087 double BuildTreeExecuteTime;
00088 double LookupIndexExecuteTime;
00089
00090 virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00091 virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00092
00093 virtual int RequestData(vtkInformation *,
00094 vtkInformationVector **,
00095 vtkInformationVector *);
00096
00097 private:
00098 vtkImageQuantizeRGBToIndex(const vtkImageQuantizeRGBToIndex&);
00099 void operator=(const vtkImageQuantizeRGBToIndex&);
00100 };
00101
00102 #endif
00103
00104
00105
00106
00107
00108
00109
00110