Salome HOME
Join modifications from branch OCC_debug_for_3_2_0b1
[modules/visu.git] / src / PIPELINE / VISU_LookupTable.hxx
1 //  Copyright (C) 2003  CEA/DEN, EDF R&D
2 //
3 //
4 //
5 //  File   : VISU_LookupTable.h
6 //  Author : Vitaliy Smetannikov
7 //  Module : VISU
8
9 #ifndef VISU_LookupTable_H
10 #define VISU_LookupTable_H
11
12 #include <vtkLookupTable.h>
13
14 #include "VTKViewer.h"
15
16 class VISU_LookupTable: public vtkLookupTable 
17 {
18  public:
19    vtkTypeMacro(VISU_LookupTable,vtkLookupTable);
20    static VISU_LookupTable *New();
21
22    virtual void MapScalarsThroughTable2(void *input, unsigned char *output,
23                                         int inputDataType, int numberOfValues,
24                                         int inputIncrement, int outputIncrement);
25
26   vtkFloatingPointType GetMapScale() { return myScale; }
27   void SetMapScale(vtkFloatingPointType theScale = 1.0);
28
29   bool GetBicolor() { return myBicolor; }
30   void SetBicolor( bool theBicolor );
31
32    static int ComputeLogRange(vtkFloatingPointType inRange[2], vtkFloatingPointType outRange[2]);
33    unsigned char *MapValue(vtkFloatingPointType v);
34
35  protected:
36    VISU_LookupTable(int sze=256, int ext=256);
37    ~VISU_LookupTable() {};
38    
39    vtkFloatingPointType myScale;
40
41    bool myBicolor;
42 };
43 #endif // VISU_LookupTable_H