1 // Copyright (C) 2003 CEA/DEN, EDF R&D
5 // File : VISU_LookupTable.h
6 // Author : Vitaliy Smetannikov
9 #ifndef VISU_LookupTable_H
10 #define VISU_LookupTable_H
12 #include <vtkLookupTable.h>
14 class VISU_LookupTable: public vtkLookupTable {
16 vtkTypeMacro(VISU_LookupTable,vtkLookupTable);
17 static VISU_LookupTable *New();
19 virtual void MapScalarsThroughTable2(void *input, unsigned char *output,
20 int inputDataType, int numberOfValues,
21 int inputIncrement, int outputIncrement);
23 float GetMapScale() { return myScale; }
24 void SetMapScale(float theScale = 1.0) { myScale = theScale; Modified(); }
26 static int ComputeLogRange(float inRange[2], float outRange[2]);
27 unsigned char *MapValue(float v);
30 VISU_LookupTable(int sze=256, int ext=256);
31 ~VISU_LookupTable() {};
35 #endif // VISU_LookupTable_H