OpendTect-6_4  6.4
uigraphicscoltab.h
Go to the documentation of this file.
1 #ifndef uigraphicscoltab_h
2 #define uigraphicscoltab_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Nanne Hemstra
9  Date: May 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uibasemod.h"
16 #include "uigraphicsitem.h"
17 #include "coltabsequence.h"
18 #include "draw.h"
19 
20 class uiPixmapItem;
21 class uiRectItem;
22 class uiAdvancedTextItem;
23 namespace ColTab { class MapperSetup; }
24 
25 
26 mExpClass(uiBase) uiColTabItem : public uiGraphicsItem
27 {
28 public:
29 
30  mExpClass(uiBase) Setup
31  {
32  public:
33  Setup( bool h )
34  : hor_(h)
35  , sz_(h?100:25,h?25:100)
36  , startal_(Alignment::HCenter,Alignment::Bottom)
37  , stopal_(Alignment::HCenter,Alignment::Top) {}
38  mDefSetupMemb(bool,hor)
40  mDefSetupMemb(Alignment,startal)
41  mDefSetupMemb(Alignment,stopal)
42  };
43 
44  uiColTabItem(const Setup&);
45  ~uiColTabItem();
46  Setup& setup() { return setup_; }
47  const Setup& setup() const { return setup_; }
48 
49  void setColTab(const char* nm);
50  void setColTabSequence(const ColTab::Sequence&);
51  void setColTabMapperSetup(const ColTab::MapperSetup&);
52 
53  void setupChanged(); // Call this function whenever the setup
54  // is changed
55 
56 protected:
57  void adjustLabel();
58  void setPixmap();
59 
62 
67 };
68 
69 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Definition: draw.h:21
Maps from [0,1] -> Color.
Definition: coltabsequence.h:37
Definition: uigraphicscoltab.h:30
Definition: uigraphicsitemimpl.h:303
uiAdvancedTextItem * minvalitm_
Definition: uigraphicscoltab.h:65
const Setup & setup() const
Definition: uigraphicscoltab.h:47
Definition: uigeom.h:25
Setup setup_
Definition: uigraphicscoltab.h:60
uiPixmapItem * ctseqitm_
Definition: uigraphicscoltab.h:63
Definition: uigraphicsitemimpl.h:255
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
Setup(bool h)
Definition: uigraphicscoltab.h:33
Setup class for colortable Mapper.
Definition: coltabmapper.h:35
Definition: uigraphicscoltab.h:26
uiAdvancedTextItem * maxvalitm_
Definition: uigraphicscoltab.h:66
Definition: uigraphicsitemimpl.h:172
Color Table
Definition: coltab.h:22
ColTab::Sequence ctseq_
Definition: uigraphicscoltab.h:61
uiRectItem * borderitm_
Definition: uigraphicscoltab.h:64
Setup & setup()
Definition: uigraphicscoltab.h:46

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