OpendTect-6_4  6.4
uicolortable.h
Go to the documentation of this file.
1 #ifndef uicolortable_h
2 #define uicolortable_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert/Nanne
9  Date: Aug 2007
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uitoolsmod.h"
16 
17 #include "uicombobox.h"
18 #include "uigroup.h"
19 #include "uitoolbar.h"
20 #include "flatview.h"
21 #include "uistring.h"
22 
23 class uiAutoRangeClipDlg;
24 class uiColorTableCanvas;
25 class uiLineEdit;
26 
27 
28 namespace ColTab { class Sequence; class MapperSetup; }
29 
32 public:
33  uiColorTableSel(uiParent*,const char* nm);
34  ~uiColorTableSel();
35 
36  void update();
37  void setCurrent(const ColTab::Sequence&);
38  void setCurrent(const char* seqnm);
39  const char* getCurrent() const;
40 
41 protected:
42  void seqChgCB(CallBacker*);
43 };
44 
45 
48 public:
49  virtual ~uiColorTable();
50 
51  const ColTab::Sequence& colTabSeq() const { return coltabseq_;}
52  const ColTab::MapperSetup& colTabMapperSetup() const { return mapsetup_; }
53 
54  void setSequence(const char*,bool emitnotif=true);
55  void setSequence(const ColTab::Sequence*,bool allowedit,
56  bool emitnotif=true);
58  void setMapperSetup(const ColTab::MapperSetup*,
59  bool emitnotif=true);
61  void setHistogram(const TypeSet<float>*);
62  void setInterval(const Interval<float>&);
63  void enableTransparencyEdit(bool);
64  void commitInput();
65 
66  void enableManage(bool yn) { enabmanage_ = yn; }
67  void enableClippingDlg(bool yn) { enabclipdlg_ = yn; }
68 
69  void setDispPars(const FlatView::DataDispPars::VD&);
70  void getDispPars(FlatView::DataDispPars::VD&) const;
71 
72  virtual OD::Orientation getOrientation() const = 0;
73  void orientationChgd(CallBacker*);
74 
77 
78 protected:
80 
81  void createFields(uiParent*,OD::Orientation,bool withminmax);
84 
87 
94  uiAutoRangeClipDlg* scalingdlg_;
95 
97 
98  void updateRgFld();
99  void canvasreDraw(CallBacker*);
100  void canvasClick(CallBacker*);
101  void canvasDoubleClick(CallBacker*);
102  void tabSel(CallBacker*);
103  void tableAdded(CallBacker*);
104  void rangeEntered(CallBacker*);
105  void doManage(CallBacker*);
106  void doFlip(CallBacker*);
107  void setAsDefault(CallBacker*);
108  void editScaling(CallBacker*);
109  void makeSymmetrical(CallBacker*);
110  void colTabChgdCB(CallBacker*);
111  void colTabManChgd(CallBacker*);
112 
113  bool isEditable() const { return maxfld_; }
114 };
115 
116 
119 public:
122  bool nominmax=true);
123  //nominmax=true hides min/max fields
126  bool nominmax=true);
127  //nominmax=true hides min/max fields
129 
130  virtual OD::Orientation getOrientation() const;
131 
132 private:
133  void init(OD::Orientation,bool nominmax);
135 };
136 
137 
140 public:
142  bool newline=false);
143  uiColorTableToolBar(uiParent*,bool newline=false);
145 
146  virtual OD::Orientation getOrientation() const;
147 
148 private:
149  void init();
150 };
151 
152 #endif
uiLineEdit * minfld_
Definition: uicolortable.h:91
Definition: uigroup.h:54
Notifier< uiColorTable > scaleChanged
Definition: uicolortable.h:76
Definition: uitoolbar.h:31
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
uiParent * parent_
Definition: uicolortable.h:89
uiLineEdit * maxfld_
Definition: uicolortable.h:92
TypeSet< float > histogram_
Definition: uicolortable.h:88
ColTab::MapperSetup & mapsetup_
Definition: uicolortable.h:85
Definition: uicolortable.h:138
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Maps from [0,1] -> Color.
Definition: coltabsequence.h:37
bool init()
Definition: oduicommon.h:25
Combo box.
Definition: uicombobox.h:32
Definition: uiparent.h:26
ColTab::Sequence & coltabseq_
Definition: uicolortable.h:86
Variable Density (=color-bar driven) parameters.
Definition: flatview.h:205
Definition: uicolortable.h:30
uiColorTableCanvas * canvas_
Definition: uicolortable.h:90
OD::Orientation orientation_
Definition: uicolortable.h:134
Notifier< uiColorTable > seqChanged
Definition: uicolortable.h:75
Setup class for colortable Mapper.
Definition: coltabmapper.h:35
uiColorTableSel * selfld_
Definition: uicolortable.h:93
Definition: uicolortable.h:46
Definition: uicolortable.h:117
Definition: uicoltabtools.h:12
uiAutoRangeClipDlg * scalingdlg_
Definition: uicolortable.h:94
bool isEditable() const
Definition: uicolortable.h:113
void enableManage(bool yn)
Definition: uicolortable.h:66
const ColTab::MapperSetup & colTabMapperSetup() const
Definition: uicolortable.h:52
Color Table
Definition: coltab.h:22
bool enabclipdlg_
Definition: uicolortable.h:83
void enableClippingDlg(bool yn)
Definition: uicolortable.h:67
Definition: uilineedit.h:51
bool enabletrans_
Definition: uicolortable.h:96
const ColTab::Sequence & colTabSeq() const
Definition: uicolortable.h:51
Orientation
Fundamental orientation in 2D UIs.
Definition: oduicommon.h:23
bool enabmanage_
Definition: uicolortable.h:82

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