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);
26 float GetBicolor() { return myBicolor; }
27 void SetBicolor( bool theBicolor );
29 static int ComputeLogRange(float inRange[2], float outRange[2]);
30 unsigned char *MapValue(float v);
33 VISU_LookupTable(int sze=256, int ext=256);
34 ~VISU_LookupTable() {};
40 #endif // VISU_LookupTable_H