OpendTect-6_4  6.4
uicoltabman.h
Go to the documentation of this file.
1 #ifndef uicoltabman_h
2 #define uicoltabman_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Satyaki
8  Date: February 2008
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uitoolsmod.h"
15 #include "uidialog.h"
16 #include "bufstring.h"
17 #include "uistring.h"
18 
19 class uiColorInput;
20 class uiColorTableCanvas;
22 class uiFunctionDisplay;
23 class uiGenInput;
24 class uiTreeView;
25 class uiPushButton;
26 class uiSpinBox;
27 class uiWorld2Ui;
28 class uiColTabImport;
29 
30 
31 namespace ColTab { class Sequence; }
32 
35 public:
37  bool enabletrans );
38  ~uiColorTableMan();
39 
40  const ColTab::Sequence& currentColTab() const { return ctab_; }
41 
42  void setHistogram(const TypeSet<float>&);
43 
46 
47 protected:
48 
60 
64 
65  bool issaved_;
66  int selidx_;
67 
69 
70  void doFinalise(CallBacker*);
71  void reDrawCB(CallBacker*);
72  void markerChgd(CallBacker*);
73  void selChg(CallBacker*);
74  void removeCB(CallBacker*);
75  void saveCB(CallBacker*);
76  void flipCB(CallBacker*);
77  bool acceptOK(CallBacker*);
78  bool rejectOK(CallBacker*);
79  virtual void reDraw( bool deep ) { reDrawCB(0); }
80 
81 
82  void refreshColTabList(const char*);
83  void updateTransparencyGraph();
84 
85  bool saveColTab(bool);
86 
87  void segmentSel(CallBacker*);
88  void nrSegmentsCB(CallBacker*);
89  void updateSegmentFields();
90 
91  void undefColSel(CallBacker*);
92  void markerColChgd(CallBacker*);
93  void rightClick(CallBacker*);
94  void doSegmentize();
95  void importColTab(CallBacker*);
96  void transptSel(CallBacker*);
97  void transptChg(CallBacker*);
98  void sequenceChange(CallBacker*);
99  void markerChange(CallBacker*);
100 
101 private:
102 
103  uiString sKeyDefault();
104  uiString sKeyEdited();
105  uiString sKeyOwn();
106 };
107 
108 #endif
Class to provide coordinate conversion between a cartesian coordinate system (or any other transforme...
Definition: uiworld2ui.h:55
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
const ColTab::Sequence & currentColTab() const
Definition: uicoltabman.h:40
is the base class for all buttons.
Definition: uibutton.h:83
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Maps from [0,1] -> Color.
Definition: coltabsequence.h:37
bool issaved_
Definition: uicoltabman.h:65
Definition: uicoltabmarker.h:50
Definition: uicoltabman.h:33
Notifier< uiColorTableMan > tableChanged
Definition: uicoltabman.h:45
Definition: uistring.h:89
Definition: uiparent.h:26
uiSpinBox * nrsegbox_
Definition: uicoltabman.h:58
Notifier< uiColorTableMan > tableAddRem
Definition: uicoltabman.h:44
uiTreeView * coltablistfld_
Definition: uicoltabman.h:52
Definition: uidialog.h:42
ColTab::Sequence * orgctab_
Definition: uicoltabman.h:63
Definition: uicoltabimport.h:27
uiPushButton * importbut_
Definition: uicoltabman.h:54
uiGenInput * segmentfld_
Definition: uicoltabman.h:57
uiWorld2Ui * w2uictabcanvas_
Definition: uicoltabman.h:59
General Input Element.
Definition: uigeninput.h:58
BufferString selstatus_
Definition: uicoltabman.h:61
displays a function of (X,Y) pairs on a canvas - optionally a Y2.
Definition: uifunctiondisplay.h:38
ColTab::Sequence & ctab_
Definition: uicoltabman.h:62
Definition: uitreeview.h:33
Definition: uispinbox.h:24
int selidx_
Definition: uicoltabman.h:66
uiColTabMarkerCanvas * markercanvas_
Definition: uicoltabman.h:51
virtual void reDraw(bool deep)
Definition: uicoltabman.h:79
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Definition: uicoltabtools.h:12
small element for color selection. Has no text label.
Definition: uicolor.h:44
uiColorTableCanvas * ctabcanvas_
Definition: uicoltabman.h:50
uiFunctionDisplay * cttranscanvas_
Definition: uicoltabman.h:49
uiColorInput * markercolfld_
Definition: uicoltabman.h:56
Color Table
Definition: coltab.h:22
bool enabletrans_
Definition: uicoltabman.h:68
uiPushButton * removebut_
Definition: uicoltabman.h:53
uiColorInput * undefcolfld_
Definition: uicoltabman.h:55

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