vtkImageQuantizeRGBToIndex.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00046 #ifndef __vtkImageQuantizeRGBToIndex_h
00047 #define __vtkImageQuantizeRGBToIndex_h
00048
00049 #include "vtkImageToImageFilter.h"
00050
00051 class vtkLookupTable;
00052
00053 class VTK_IMAGING_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageToImageFilter
00054 {
00055 public:
00056 static vtkImageQuantizeRGBToIndex *New();
00057 vtkTypeRevisionMacro(vtkImageQuantizeRGBToIndex,vtkImageToImageFilter);
00058 void PrintSelf(ostream& os, vtkIndent indent);
00059
00061
00063 vtkSetClampMacro( NumberOfColors, int, 2, 65536 );
00064 vtkGetMacro( NumberOfColors, int );
00066
00068
00070 vtkGetObjectMacro( LookupTable, vtkLookupTable );
00072
00073 vtkGetMacro( InitializeExecuteTime, double );
00074 vtkGetMacro( BuildTreeExecuteTime, double );
00075 vtkGetMacro( LookupIndexExecuteTime, double );
00076
00077
00079
00080 vtkGetMacro( InputType, int );
00082
00084
00085 vtkSetMacro( InitializeExecuteTime, double );
00086 vtkSetMacro( BuildTreeExecuteTime, double );
00087 vtkSetMacro( LookupIndexExecuteTime, double );
00089
00090
00091 protected:
00092 vtkImageQuantizeRGBToIndex();
00093 ~vtkImageQuantizeRGBToIndex();
00094
00095 vtkLookupTable *LookupTable;
00096 int NumberOfColors;
00097 int InputType;
00098
00099 double InitializeExecuteTime;
00100 double BuildTreeExecuteTime;
00101 double LookupIndexExecuteTime;
00102
00103 void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00104 void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00105 void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
00106
00107 virtual void ExecuteData(vtkDataObject *out);
00108 private:
00109 vtkImageQuantizeRGBToIndex(const vtkImageQuantizeRGBToIndex&);
00110 void operator=(const vtkImageQuantizeRGBToIndex&);
00111 };
00112
00113 #endif
00114
00115
00116
00117
00118
00119
00120
00121