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 "vtkImageToImageFilter.h"
00037
00038
class vtkLookupTable;
00039
00040 class VTK_IMAGING_EXPORT vtkImageQuantizeRGBToIndex :
public vtkImageToImageFilter
00041 {
00042
public:
00043
static vtkImageQuantizeRGBToIndex *
New();
00044 vtkTypeRevisionMacro(vtkImageQuantizeRGBToIndex,
vtkImageToImageFilter);
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
void ExecuteInformation(
vtkImageData *inData,
vtkImageData *outData);
00091
void ComputeInputUpdateExtent(
int inExt[6],
int outExt[6]);
00092 void ExecuteInformation(){this->
vtkImageToImageFilter::ExecuteInformation();};
00093
00094
virtual void ExecuteData(
vtkDataObject *out);
00095
private:
00096 vtkImageQuantizeRGBToIndex(
const vtkImageQuantizeRGBToIndex&);
00097
void operator=(
const vtkImageQuantizeRGBToIndex&);
00098 };
00099
00100
#endif
00101
00102
00103
00104
00105
00106
00107
00108