OpendTect-6_4  6.4
uiattrdescseted.h
Go to the documentation of this file.
1 #ifndef uiattrdescseted_h
2 #define uiattrdescseted_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H. Bril
9  Date: April 2001
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiattributesmod.h"
16 #include "uidialog.h"
17 #include "multiid.h"
18 
19 
20 namespace Attrib
21 {
22  class Desc;
23  class DescID;
24  class DescSet;
25  class DescSetMan;
26 };
27 
28 namespace Pick { class Set; }
29 namespace ZDomain { class Info; }
30 
31 class AttribParamGroup;
32 class BufferStringSet;
33 class CtxtIOObj;
34 class EvalParam;
35 class IOObj;
36 class uiAttrDescEd;
37 class uiAttrTypeSel;
38 class uiGenInput;
39 class uiListBox;
40 class uiPushButton;
41 class uiToolBar;
42 class uiToolButton;
43 
44 
49 mExpClass(uiAttributes) uiAttribDescSetEd : public uiDialog
51 public:
52 
54  const char* prefgrp =0,
55  bool attrsneedupdt =false);
57 
58  void setZDomainInfo(const ZDomain::Info&);
59  const ZDomain::Info* getZDomainInfo() const;
60 
61  void setDescSetMan(Attrib::DescSetMan*);
62  Attrib::DescSet* getSet() { return attrset_; }
63  const MultiID& curSetID() const { return setid_; }
64 
65  uiAttrDescEd* curDescEd();
67  Attrib::Desc* curDesc() const;
69  int curDescNr() const;
71  void updateCurDescEd();
72  bool is2D() const;
73 
74  void setSelAttr(const char* attrnm);
75  void loadDefaultAttrSet(const char* attribsetnm);
76  void setSensitive(bool);
77 
78  bool getUiAttribParamGrps(
80  BufferStringSet& paramnms,
81  TypeSet<BufferStringSet>& usernms);
83 
89 
90  static const char* sKeyUseAutoAttrSet;
91  static const char* sKeyAuto2DAttrSetID;
92  static const char* sKeyAuto3DAttrSetID;
93 
94 protected:
95 
110 
114 
124 
125  void attrTypSel(CallBacker*);
126  void selChg(CallBacker*);
127  void revPush(CallBacker*);
128  void addPush(CallBacker*);
129  void rmPush(CallBacker*);
130  void moveUpDownCB(CallBacker*);
131  void sortPush(CallBacker*);
132  void helpButPush(CallBacker*);
133 
134  void autoSet(CallBacker*);
135  void newSet(CallBacker*);
136  void openSet(CallBacker*);
137  void openAttribSet(const IOObj*);
138  void savePush(CallBacker*);
139  void saveAsPush(CallBacker*);
140  void changeInput(CallBacker*);
141  void defaultSet(CallBacker*);
142  void getDefaultAttribsets(BufferStringSet&,
143  BufferStringSet&);
144  void importSet(CallBacker*);
145  void importFile(CallBacker*);
146  void importFromSeis(CallBacker*);
147  void job2Set(CallBacker*);
148  void crossPlot(CallBacker*);
149  void directShow(CallBacker*);
150  void procAttribute(CallBacker*);
151  void evalAttribute(CallBacker*);
152  void crossEvalAttrs(CallBacker*);
153  void importFromFile(const char*);
154  void dotPathCB(CallBacker*);
155  void exportToDotCB(CallBacker*);
156  void showMatrix(CallBacker*);
157 
158  void setButStates();
159  bool offerSetSave();
160  bool doSave(bool);
161  void replaceStoredAttr();
162  void replaceStoredAttr(IOPar&);
163  void removeNotUsedAttr();
164  //bool hasInput(const Attrib::Desc&,const Attrib::DescID&);
165 
166  bool acceptOK(CallBacker*);
167  bool rejectOK(CallBacker*);
168 
169  void newList(int);
170  void updateFields(bool settype=true);
171  bool doCommit(bool prevdesc=false);
172  bool doAcceptInputs();
173  void handleSensitivity();
174  void updateUserRefs();
175  bool validName(const char*) const;
176  bool setUserRef(Attrib::Desc*);
177  void updateAttrName();
178  bool doSetIO(bool);
179  Attrib::Desc* createAttribDesc(bool checkuref=true);
180 
181  void createMenuBar();
182  void createToolBar();
183  void createGroups();
184  void init();
185 
186 public:
187 
188  void updtAllEntries();
189 };
190 
191 #endif
Definition: uitoolbar.h:31
CtxtIOObj & setctio_
Definition: uiattrdescseted.h:104
#define mExpClass(module)
Definition: commondefs.h:160
Notifier< uiAttribDescSetEd > xplotcb
Definition: uiattrdescseted.h:87
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
uiGenInput * attrnmfld_
Definition: uiattrdescseted.h:117
Definition: ioobj.h:58
is the base class for all buttons.
Definition: uibutton.h:83
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
MultiID cancelsetid_
Definition: uiattrdescseted.h:105
Manages attribute description set.
Definition: attribdescsetman.h:28
static const char * sKeyAuto2DAttrSetID
Definition: uiattrdescseted.h:91
Attribute description editor.
Definition: uiattrdesced.h:83
Set of attribute descriptions.
Definition: attribdescset.h:35
bool init()
Notifier< uiAttribDescSetEd > evalattrcb
Definition: uiattrdescseted.h:85
Definition: uiparent.h:26
Set of BufferString objects.
Definition: bufstringset.h:28
Holds an IOObjCtxt plus a pointer to an IOObj and/or an IOPar.
Definition: ctxtioobj.h:142
BufferStringSet & userattrnames_
Definition: uiattrdescseted.h:103
Definition: uidialog.h:42
Notifier< uiAttribDescSetEd > crossevalattrcb
Definition: uiattrdescseted.h:86
List Box.
Definition: uilistbox.h:75
Definition: uievaluatedlg.h:41
FixedString Desc()
Definition: keystrs.h:62
bool updating_fields_
Definition: uiattrdescseted.h:106
Attrib::DescSet * attrset_
Definition: uiattrdescseted.h:98
uiToolBar * toolbar_
Definition: uiattrdescseted.h:111
uiToolButton * sortbut_
Definition: uiattrdescseted.h:122
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
const MultiID & curSetID() const
Definition: uiattrdescseted.h:63
uiToolButton * dispbut_
Definition: uiattrdescseted.h:116
ObjectSet< Attrib::Desc > attrdescs_
Definition: uiattrdescseted.h:102
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
static const char * sKeyAuto3DAttrSetID
Definition: uiattrdescseted.h:92
General Input Element.
Definition: uigeninput.h:58
Attrib::DescSet * getSet()
Definition: uiattrdescseted.h:62
uiGenInput * attrsetfld_
Definition: uiattrdescseted.h:118
ObjectSet< uiAttrDescEd > desceds_
Definition: uiattrdescseted.h:101
bool attrsneedupdt_
Definition: uiattrdescseted.h:107
uiPushButton * addbut_
Definition: uiattrdescseted.h:115
Notifier< uiAttribDescSetEd > applycb
Definition: uiattrdescseted.h:88
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Attrib::Desc * prevdesc_
Definition: uiattrdescseted.h:99
uiAttrTypeSel * attrtypefld_
Definition: uiattrdescseted.h:113
bool is2D(const PicksType &picks)
Definition: pickset.h:142
uiToolButton * movedownbut_
Definition: uiattrdescseted.h:121
Definition: picklocation.h:21
Selector for attribute type.
Definition: uiattrtypesel.h:27
Definition: uitoolbutton.h:22
Attrib::DescSetMan * inoutadsman_
Definition: uiattrdescseted.h:96
uiToolButton * rmbut_
Definition: uiattrdescseted.h:123
static const char * sKeyUseAutoAttrSet
Definition: uiattrdescseted.h:90
static BufferString nmprefgrp_
Definition: uiattrdescseted.h:108
Editor for Attribute sets.
Definition: uiattrdescseted.h:49
Notifier< uiAttribDescSetEd > dirshowcb
Definition: uiattrdescseted.h:84
ZDomain::Info * zdomaininfo_
Definition: uiattrdescseted.h:109
MultiID setid_
Definition: uiattrdescseted.h:100
uiToolButton * moveupbut_
Definition: uiattrdescseted.h:120
Information of z-domain.
Definition: zdomain.h:91
Compound key consisting of ints.
Definition: multiid.h:25
Semblance Attribute.
Definition: attribdataholder.h:25
uiListBox * attrlistfld_
Definition: uiattrdescseted.h:112
Definition: zdomain.h:20
Description of attribute parameters to evaluate.
Definition: uiattrdesced.h:39
Attrib::DescSetMan * adsman_
Definition: uiattrdescseted.h:97
uiToolButton * helpbut_
Definition: uiattrdescseted.h:119

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