Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
Imaging/vtkImageQuantizeRGBToIndex.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00050 #ifndef __vtkImageQuantizeRGBToIndex_h
00051 #define __vtkImageQuantizeRGBToIndex_h
00052
00053 #include "vtkImageToImageFilter.h"
00054
00055 class vtkLookupTable;
00056
00057 class VTK_IMAGING_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageToImageFilter
00058 {
00059 public:
00060 static vtkImageQuantizeRGBToIndex *New();
00061 vtkTypeRevisionMacro(vtkImageQuantizeRGBToIndex,vtkImageToImageFilter);
00062 void PrintSelf(ostream& os, vtkIndent indent);
00063
00065
00067 vtkSetClampMacro( NumberOfColors, int, 2, 65536 );
00068 vtkGetMacro( NumberOfColors, int );
00070
00072
00074 vtkGetObjectMacro( LookupTable, vtkLookupTable );
00076
00077 vtkGetMacro( InitializeExecuteTime, float );
00078 vtkGetMacro( BuildTreeExecuteTime, float );
00079 vtkGetMacro( LookupIndexExecuteTime, float );
00080
00081
00083
00084 vtkGetMacro( InputType, int );
00086
00088
00089 vtkSetMacro( InitializeExecuteTime, float );
00090 vtkSetMacro( BuildTreeExecuteTime, float );
00091 vtkSetMacro( LookupIndexExecuteTime, float );
00093
00094
00095 protected:
00096 vtkImageQuantizeRGBToIndex();
00097 ~vtkImageQuantizeRGBToIndex();
00098
00099 vtkLookupTable *LookupTable;
00100 int NumberOfColors;
00101 int InputType;
00102
00103 float InitializeExecuteTime;
00104 float BuildTreeExecuteTime;
00105 float LookupIndexExecuteTime;
00106
00107 void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00108 void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00109 void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
00110
00111 virtual void ExecuteData(vtkDataObject *out);
00112 private:
00113 vtkImageQuantizeRGBToIndex(const vtkImageQuantizeRGBToIndex&);
00114 void operator=(const vtkImageQuantizeRGBToIndex&);
00115 };
00116
00117 #endif
00118
00119
00120
00121
00122
00123
00124
00125