OpendTect-6_4  6.4
uievaluatedlg.h
Go to the documentation of this file.
1 #ifndef uievaluatedlg_h
2 #define uievaluatedlg_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: N. Hemstra
9  Date: March 2003
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 
16 #include "uiattributesmod.h"
17 #include "uidialog.h"
18 #include "uigroup.h"
19 #include "bufstringset.h"
20 #include "attribdescid.h"
21 
22 namespace Attrib
23 {
24  class Desc;
25  class DescSet;
26  class SelSpec;
27  class ValParam;
28 }
29 
30 class uiAttrDescEd;
31 class uiCheckBox;
32 class DataInpSpec;
33 class EvalParam;
34 class uiGenInput;
35 class uiLabel;
36 class uiLabeledSpinBox;
37 class uiPushButton;
38 class uiSlider;
39 
40 
41 mExpClass(uiAttributes) AttribParamGroup : public uiGroup
43 public:
45  const EvalParam&);
46  void updatePars(Attrib::Desc&,int);
47  void updateDesc(Attrib::Desc&,int);
48  const char* getLabel() { return evallbl_; }
49  static uiString sInit();
50  static uiString sIncr();
51 protected:
52 
53  void createInputSpecs(const Attrib::ValParam*,
55 
60 
63  int pgidx_;
66 };
67 
68 
69 mExpClass(uiAttributes) uiEvaluateDlg : public uiDialog
71 public:
73  bool enabstore=true);
74  ~uiEvaluateDlg();
75 
76  Attrib::Desc* getAttribDesc() const { return seldesc_; }
77  void getEvalSpecs(TypeSet<Attrib::SelSpec>&) const;
78  Attrib::DescSet* getEvalSet() const { return attrset_; }
79  bool storeSlices() const;
80  bool evaluationPossible() const { return haspars_; }
81 
84 
85 protected:
86 
93 
94  void variableSel(CallBacker*);
95  void calcPush(CallBacker*);
96  void sliderMove(CallBacker*);
97  void doFinalise(CallBacker*);
98 
99  bool acceptOK(CallBacker*);
100 
105 
109 
112  bool haspars_;
113 };
114 
115 
116 #endif
uiGenInput * incrfld
Definition: uievaluatedlg.h:57
Definition: uigroup.h:54
Attribute Value Parameter.
Definition: attribparambase.h:94
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: uislider.h:42
is the base class for all buttons.
Definition: uibutton.h:83
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
bool enabstore_
Definition: uievaluatedlg.h:111
uiGenInput * initfld
Definition: uievaluatedlg.h:56
BufferString parstr2_
Definition: uievaluatedlg.h:62
BufferStringSet lbls_
Definition: uievaluatedlg.h:107
Attribute description editor.
Definition: uiattrdesced.h:83
Set of attribute descriptions.
Definition: attribdescset.h:35
AttribDesc ID: each Desc has a unique ID in a set; the boolean isstored allows us to know whether thi...
Definition: attribdescid.h:27
BufferString parlbl_
Definition: uievaluatedlg.h:58
uiCheckBox * storefld
Definition: uievaluatedlg.h:92
Definition: uistring.h:89
Definition: uiparent.h:26
Set of BufferString objects.
Definition: bufstringset.h:28
uiSlider * sliderfld
Definition: uievaluatedlg.h:89
const uiAttrDescEd & desced_
Definition: uievaluatedlg.h:65
Attrib::DescID srcid_
Definition: uievaluatedlg.h:104
Notifier< uiEvaluateDlg > calccb
Definition: uievaluatedlg.h:82
Definition: uidialog.h:42
Definition: uievaluatedlg.h:41
Attrib::Desc * seldesc_
Definition: uievaluatedlg.h:101
FixedString Desc()
Definition: keystrs.h:62
bool evaloutput_
Definition: uievaluatedlg.h:64
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Specification of input characteristics.
Definition: datainpspec.h:89
Definition: uispinbox.h:128
Description of an attribute in an Attrib::DescSet. Each attribute has a name (e.g. "Similarity"), a user reference (e.g. "My similarity"), and at least one output. In addition, it may have parameters and inputs. If it has multiple outputs, only one of the outputs are selected.
Definition: attribdesc.h:89
uiLabeledSpinBox * nrstepsfld
Definition: uievaluatedlg.h:90
General Input Element.
Definition: uigeninput.h:58
BufferString parstr1_
Definition: uievaluatedlg.h:61
Attrib::Desc * getAttribDesc() const
Definition: uievaluatedlg.h:76
void sliderMove(CallBacker *)
uiGenInput * evalfld
Definition: uievaluatedlg.h:87
int pgidx_
Definition: uievaluatedlg.h:63
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
uiLabel * displaylbl
Definition: uievaluatedlg.h:91
Definition: uilabel.h:24
uiAttrDescEd & desced_
Definition: uievaluatedlg.h:103
ObjectSet< AttribParamGroup > grps_
Definition: uievaluatedlg.h:108
CNotifier< uiEvaluateDlg, int > showslicecb
Definition: uievaluatedlg.h:83
Attrib::DescSet * getEvalSet() const
Definition: uievaluatedlg.h:78
uiPushButton * calcbut
Definition: uievaluatedlg.h:88
Definition: uievaluatedlg.h:69
TypeSet< Attrib::SelSpec > specs_
Definition: uievaluatedlg.h:110
bool evaluationPossible() const
Definition: uievaluatedlg.h:80
Definition: uibutton.h:134
IOPar & initpar_
Definition: uievaluatedlg.h:106
Attrib::DescSet * attrset_
Definition: uievaluatedlg.h:102
BufferString evallbl_
Definition: uievaluatedlg.h:59
const char * getLabel()
Definition: uievaluatedlg.h:48
bool haspars_
Definition: uievaluatedlg.h:112
Semblance Attribute.
Definition: attribdataholder.h:25
Description of attribute parameters to evaluate.
Definition: uiattrdesced.h:39

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