]> SALOME platform Git repositories - modules/visu.git/blob - src/PIPELINE/VISU_LookupTable.hxx
Salome HOME
Fix for Bug PAL8597:
[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 class VISU_LookupTable: public vtkLookupTable {
15  public:
16    vtkTypeMacro(VISU_LookupTable,vtkLookupTable);
17    static VISU_LookupTable *New();
18
19    virtual void MapScalarsThroughTable2(void *input, unsigned char *output,
20                                         int inputDataType, int numberOfValues,
21                                         int inputIncrement, int outputIncrement);
22
23    float GetMapScale() { return myScale; }
24    void SetMapScale(float theScale = 1.0) { myScale = theScale; Modified(); }
25
26    static int ComputeLogRange(float inRange[2], float outRange[2]);
27    unsigned char *MapValue(float v);
28
29  protected:
30    VISU_LookupTable(int sze=256, int ext=256);
31    ~VISU_LookupTable() {};
32    
33    float myScale;
34 };
35 #endif // VISU_LookupTable_H