OpendTect-6_4  6.4
uibodyoperatordlg.h
Go to the documentation of this file.
1 #ifndef uibodyoperatordlg_h
2 #define uibodyoperatordlg_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Yuancheng Liu
9  Date: Feb 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "uiearthmodelmod.h"
17 #include "multiid.h"
18 #include "uidialog.h"
19 #include "uiioobjsel.h"
20 
21 class uiGenInput;
22 class uiLabeledComboBox;
23 class uiTreeView;
24 class uiTreeViewItem;
25 class uiPushButton;
26 class uiToolButton;
27 
28 namespace EM { class BodyOperator; }
29 
30 
31 mExpClass(uiEarthModel) uiBodyOperatorDlg : public uiDialog
33 public:
36 
37  MultiID getBodyMid() const { return outputfld_->key(); }
38 
39 protected:
40 
41  void finaliseCB(CallBacker*);
42  bool acceptOK(CallBacker*);
43  void itemClick(CallBacker*);
44  void bodySel(CallBacker*);
45  void oprSel(CallBacker*);
46  void typeSel(CallBacker*);
47  void turnOffAll();
48  void deleteAllChildInfo(uiTreeViewItem*);
49  void setOperator(uiTreeViewItem* lv,EM::BodyOperator& opt);
50  void displayAction(char item,int curidx);
51 
52  static char sKeyUnion() { return 0; }
53  static char sKeyIntSect() { return 1; }
54  static char sKeyMinus() { return 2; }
55  static char sKeyUdf() { return -1; }
56 
57  mStruct(uiEarthModel) BodyOperand
58  {
59  BodyOperand();
60 
61  bool operator==(const BodyOperand&) const;
62  bool isOK() const;
63 
64  MultiID mid_;
65  char act_;
66  bool defined_;
67  };
68 
70 
74 
78 
80 };
81 
82 
85 public:
87 
88  MultiID getBodyMid() const { return outputfld_->key(); }
89 
90 protected:
91 
92  bool acceptOK(CallBacker*);
93  const IOObj* getIfMCSurfaceObj() const;
94  /* For bodies made in older version
95  Translator group name : MarchingCubesSurface */
96 
99 };
100 
101 
102 #endif
TypeSet< BodyOperand > listinfo_
Definition: uibodyoperatordlg.h:76
#define mExpClass(module)
Definition: commondefs.h:160
BufferString key(int) const
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: uibodyoperatordlg.h:31
MultiID getBodyMid() const
Definition: uibodyoperatordlg.h:88
Definition: ioobj.h:58
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
is the base class for all buttons.
Definition: uibutton.h:83
uiIOObjSel * outputfld_
Definition: uibodyoperatordlg.h:79
#define mStruct(module)
Definition: commondefs.h:165
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
MultiID getBodyMid() const
Definition: uibodyoperatordlg.h:37
static char sKeyIntSect()
Definition: uibodyoperatordlg.h:53
uiPushButton * bodyselbut_
Definition: uibodyoperatordlg.h:73
Definition: uiparent.h:26
static char sKeyUdf()
Definition: uibodyoperatordlg.h:55
Definition: uidialog.h:42
Operators for implicit body. Each BodyOperator has two children, either a Body or a BodyOperator...
Definition: embodyoperator.h:41
Definition: uitreeview.h:201
General Input Element.
Definition: uigeninput.h:58
Definition: uitreeview.h:33
Definition: uicombobox.h:133
User Interface (UI) element for selection of IOObjs.
Definition: uiioobjsel.h:38
uiGenInput * bodyselfld_
Definition: uibodyoperatordlg.h:72
static char sKeyMinus()
Definition: uibodyoperatordlg.h:54
uiTreeView * tree_
Definition: uibodyoperatordlg.h:75
ObjectSet< uiTreeViewItem > listsaved_
Definition: uibodyoperatordlg.h:77
static char sKeyUnion()
Definition: uibodyoperatordlg.h:52
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
Definition: uitoolbutton.h:22
uiIOObjSel * inputfld_
Definition: uibodyoperatordlg.h:97
Definition: uibodyoperatordlg.h:83
uiIOObjSel * outputfld_
Definition: uibodyoperatordlg.h:98
Compound key consisting of ints.
Definition: multiid.h:25
uiLabeledComboBox * oprselfld_
Definition: uibodyoperatordlg.h:67
uiLabeledComboBox * typefld_
Definition: uibodyoperatordlg.h:71

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