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 #include "VTKViewer.h"
16 class VISU_LookupTable: public vtkLookupTable
19 vtkTypeMacro(VISU_LookupTable,vtkLookupTable);
20 static VISU_LookupTable *New();
22 virtual void MapScalarsThroughTable2(void *input, unsigned char *output,
23 int inputDataType, int numberOfValues,
24 int inputIncrement, int outputIncrement);
26 vtkFloatingPointType GetMapScale() { return myScale; }
27 void SetMapScale(vtkFloatingPointType theScale = 1.0);
29 bool GetBicolor() { return myBicolor; }
30 void SetBicolor( bool theBicolor );
32 static int ComputeLogRange(vtkFloatingPointType inRange[2], vtkFloatingPointType outRange[2]);
33 unsigned char *MapValue(vtkFloatingPointType v);
36 VISU_LookupTable(int sze=256, int ext=256);
37 ~VISU_LookupTable() {};
39 vtkFloatingPointType myScale;
43 #endif // VISU_LookupTable_H