00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00035 #ifndef __vtkLookupTableWithEnabling_h
00036 #define __vtkLookupTableWithEnabling_h
00037
00038 #include "vtkLookupTable.h"
00039
00040 class vtkDataArray;
00041
00042 class VTK_COMMON_EXPORT vtkLookupTableWithEnabling : public vtkLookupTable
00043 {
00044 public:
00045 static vtkLookupTableWithEnabling *New();
00046
00047 vtkTypeMacro(vtkLookupTableWithEnabling,vtkLookupTable);
00048 void PrintSelf(ostream& os, vtkIndent indent);
00049
00051
00055 vtkGetObjectMacro(EnabledArray,vtkDataArray);
00056 virtual void SetEnabledArray(vtkDataArray *enabledArray);
00058
00060
00061 void MapScalarsThroughTable2(void *input, unsigned char *output,
00062 int inputDataType, int numberOfValues,
00063 int inputIncrement, int outputIncrement);
00065
00067
00068 virtual void DisableColor(unsigned char r, unsigned char g, unsigned char b,
00069 unsigned char *rd, unsigned char *gd, unsigned char *bd);
00071
00072 protected:
00073 vtkLookupTableWithEnabling(int sze=256, int ext=256);
00074 ~vtkLookupTableWithEnabling();
00075
00076 vtkDataArray *EnabledArray;
00077
00078 private:
00079 vtkLookupTableWithEnabling(const vtkLookupTableWithEnabling&);
00080 void operator=(const vtkLookupTableWithEnabling&);
00081 };
00082
00083
00084 #endif
00085
00086
00087