OpendTect-6_4  6.4
uieditpdf.h
Go to the documentation of this file.
1 #ifndef uieditpdf_h
2 #define uieditpdf_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Feb 2010
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiiomod.h"
16 #include "uigroup.h"
17 #include "uidialog.h"
18 
19 class ProbDenFunc;
20 class uiGenInput;
21 class uiTable;
22 class uiTabStack;
23 class uiPDF1DViewWin;
24 class uiFlatViewMainWin;
25 class uiComboBox;
26 class uiPushButton;
27 class uiListBox;
28 class uiToolButton;
32 
33 
38 public:
39  uiEditProbDenFunc(uiParent*,ProbDenFunc&,bool editable);
40 
41  virtual bool commitChanges() = 0;
42  inline bool isChanged() const { return chgd_; }
43 
44 protected:
45 
48  const int nrdims_;
49  const bool editable_;
50  bool chgd_;
51 
52 };
53 
54 
59 public:
61  bool isnew=false);
62 
63  bool isChanged() const { return edfld_->isChanged(); }
64 
65 protected:
66 
68 
69  bool acceptOK(CallBacker*);
70 
71 };
72 
73 
78 public:
81 
82  virtual bool commitChanges();
83 
84 protected:
85 
86  int curdim2_;
87 
92  uiPDF1DViewWin* vwwin1d_;
93 
94  void mkTable(uiGroup*);
95 
96  bool getNamesFromScreen();
97  void putValsToScreen();
98  bool getValsFromScreen(bool* chg=0);
99  void setToolTips();
100  void updateUI();
101 
102  void viewPDF(CallBacker*);
103  void vwWinClose(CallBacker*);
104  void tabChg(CallBacker*);
105  void smoothReq(CallBacker*);
106  void dimNext(CallBacker*);
107  void dimPrev(CallBacker*);
108 
109 };
110 
111 
117 public:
118 
120  bool editable,bool isnew=false);
121 
122  virtual bool commitChanges();
123 
124 protected:
125 
129 
140 
141  float getCC() const;
142  void mkCorrTabFlds(uiGroup*);
143  int findCorr() const;
144  void updateCorrList(int);
145 
146  void initGrp(CallBacker*);
147  void tabChg(CallBacker*);
148  void corrSel(CallBacker*);
149  void varSel(CallBacker*);
150  void addSetPush(CallBacker*);
151  void rmPush(CallBacker*);
152 
153 };
154 
155 
156 
157 #endif
Definition: uigroup.h:54
ObjectSet< uiGenInput > nmflds_
Definition: uieditpdf.h:132
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
mODTextTranslationClass(uiEditGaussianProbDenFunc)
uiPushButton * addsetbut_
Definition: uieditpdf.h:137
void addSetPush(CallBacker *)
int curdim2_
Definition: uieditpdf.h:86
const bool editable_
Definition: uieditpdf.h:49
uiEditGaussianProbDenFunc(uiParent *, ProbDenFunc &, bool editable, bool isnew=false)
is the base class for all buttons.
Definition: uibutton.h:83
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
virtual bool commitChanges()
Base class for Probability Density Functions.
Definition: probdenfunc.h:31
bool isChanged() const
Definition: uieditpdf.h:63
const int nrdims_
Definition: uieditpdf.h:48
Definition: uitable.h:30
Two dimensional Gaussian PDF.
Definition: gaussianprobdenfunc.h:73
bool isChanged() const
Definition: uieditpdf.h:42
uiListBox * defcorrsfld_
Definition: uieditpdf.h:138
Gaussian2DProbDenFunc * pdf2d_
Definition: uieditpdf.h:127
Combo box.
Definition: uicombobox.h:32
Definition: uiparent.h:26
bool chgd_
Definition: uieditpdf.h:50
Group to edit Gaussian PPDF&#39;s.
Definition: uieditpdf.h:115
ObjectSet< uiGenInput > stdflds_
Definition: uieditpdf.h:134
uiEditProbDenFunc * edfld_
Definition: uieditpdf.h:67
void rmPush(CallBacker *)
uiTabStack * tabstack_
Definition: uieditpdf.h:130
Definition: uidialog.h:42
List Box.
Definition: uilistbox.h:75
ProbDenFunc & pdf_
Definition: uieditpdf.h:46
One dimensional Gaussian PDF.
Definition: gaussianprobdenfunc.h:46
Multi-dimensional pure Gaussian PDF.
Definition: gaussianprobdenfunc.h:106
void mkCorrTabFlds(uiGroup *)
General Input Element.
Definition: uigeninput.h:58
Definition: uitabstack.h:33
void varSel(CallBacker *)
uiTable * tbl_
Definition: uieditpdf.h:90
GaussianNDProbDenFunc * pdfnd_
Definition: uieditpdf.h:128
uiComboBox * var1fld_
Definition: uieditpdf.h:135
uiFlatViewMainWin * vwwinnd_
Definition: uieditpdf.h:91
(Non-modal) main window containing one or more uiFlatViewer(s).
Definition: uiflatviewmainwin.h:23
uiComboBox * var2fld_
Definition: uieditpdf.h:136
Group to edit SampledProbDenFunc&#39;s.
Definition: uieditpdf.h:76
Definition: uitoolbutton.h:22
uiPDF1DViewWin * vwwin1d_
Definition: uieditpdf.h:92
Dialog to edit probability density functions.
Definition: uieditpdf.h:57
ObjectSet< uiGenInput > nmflds_
Definition: uieditpdf.h:89
void corrSel(CallBacker *)
Gaussian1DProbDenFunc * pdf1d_
Definition: uieditpdf.h:126
Base class for edit probability density function editors.
Definition: uieditpdf.h:36
void tabChg(CallBacker *)
uiToolButton * rmbut_
Definition: uieditpdf.h:139
uiGenInput * ccfld_
Definition: uieditpdf.h:131
const ProbDenFunc & inpdf_
Definition: uieditpdf.h:47
ObjectSet< uiGenInput > expflds_
Definition: uieditpdf.h:133
void initGrp(CallBacker *)
uiTabStack * tabstack_
Definition: uieditpdf.h:88

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