OpendTect-6_4  6.4
visscenecoltab.h
Go to the documentation of this file.
1 #ifndef visscenecoltab_h
2 #define visscenecoltab_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Nanne Hemstra
9  Date: August 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "visbasemod.h"
16 #include "visobject.h"
17 #include "coltabsequence.h"
18 
19 class FontData;
20 namespace ColTab { class MapperSetup; }
21 
22 namespace osg { class Geode; }
23 
24 
25 namespace visBase
26 {
27 
28 class VisColorTab;
29 
32 public:
33  static SceneColTab* create()
35 
36  enum Pos { Left, Right, Top, Bottom };
37  void setPos( Pos pos );
38  Pos getPos() const { return pos_; }
39 
40  void setWindowSize(int winx, int winy);
41 
42  void setOrientation(bool horizontal);
43  bool getOrientation() const { return horizontal_; }
44 
45  void setAnnotFont(const FontData&);
46 
47  void setColTabSequence(const ColTab::Sequence&);
48  void setColTabMapperSetup(const ColTab::MapperSetup&);
49  void setLegendColor(const Color&);
50 
51  bool turnOn(bool);
52  void setSize(int w,int h);
53  Geom::Size2D<int> getSize();
54 
55  virtual void setPixelDensity(float dpi);
56 
57 
58 protected:
59  ~SceneColTab();
60  void updateSequence();
61  void setPos(float x, float y);
62 
63  osg::Geode* osgcolorbar_;
67  bool flipseq_;
69  int width_;
70  int height_;
71  float aspratio_;
72  int winx_;
73  int winy_;
75  int fontsize_;
76 };
77 
78 } // class visBase
79 
80 
81 #endif
int width_
Definition: visscenecoltab.h:69
#define mExpClass(module)
Definition: commondefs.h:160
void turnOn(int flag)
Overrides the envirnonment variable.
float pixeldensity_
Definition: visscenecoltab.h:74
float aspratio_
Definition: visscenecoltab.h:71
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Maps from [0,1] -> Color.
Definition: coltabsequence.h:37
int winx_
Definition: visscenecoltab.h:72
bool flipseq_
Definition: visscenecoltab.h:67
bool horizontal_
Definition: visscenecoltab.h:68
ColTab::Sequence sequence_
Definition: visscenecoltab.h:64
Data needed to make an actual font.
Definition: fontdata.h:20
bool getOrientation() const
Definition: visscenecoltab.h:43
int height_
Definition: visscenecoltab.h:70
Pos getPos() const
Definition: visscenecoltab.h:38
Position.
Definition: commontypes.h:42
Setup class for colortable Mapper.
Definition: coltabmapper.h:35
int fontsize_
Definition: visscenecoltab.h:75
Definition: visscenecoltab.h:36
Definition: visannot.h:43
Definition: visscenecoltab.h:30
static SceneColTab * create()
Definition: visscenecoltab.h:33
int winy_
Definition: visscenecoltab.h:73
Open Scene Graph.
Definition: visannot.h:29
Interval< float > rg_
Definition: visscenecoltab.h:65
Color Table
Definition: coltab.h:22
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
Pos pos_
Definition: visscenecoltab.h:66
#define mCreateDataObj(clss)
Definition: visdata.h:209
Definition: visobject.h:72
osg::Geode * osgcolorbar_
Definition: visscenecoltab.h:63

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019