OpendTect-6_4  6.4
uistoredattrreplacer.h
Go to the documentation of this file.
1 #ifndef uistoredattrreplacer_h
2 #define uistoredattrreplacer_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Satyaki Maitra
9  Date: June 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 #include "uiattributesmod.h"
15 #include "attribdescid.h"
16 #include "bufstringset.h"
17 #include "datapack.h"
18 #include "linekey.h"
19 #include "sets.h"
20 #include "uistring.h"
21 
22 class uiParent;
23 namespace Attrib
24 {
25  class Desc;
26  class DescSet;
27 };
28 
30 { mODTextTranslationClass(uiStoredAttribReplacer);
31 public:
32 
33  struct StoredEntry
34  {
36  BufferString storedref )
37  : firstid_(id1)
38  , secondid_(Attrib::DescID::undef())
39  , lk_(lk)
40  , storedref_(storedref) {}
41 
42  bool operator == ( const StoredEntry& a ) const
43  { return firstid_ == a.firstid_
44  && secondid_ == a.secondid_
45  && lk_ == a.lk_
46  && storedref_ == a.storedref_; }
47 
48  bool has2Ids() const
49  { return firstid_.isValid() &&
50  secondid_.isValid(); }
56  };
57 
58  uiStoredAttribReplacer(uiParent*,
60  uiStoredAttribReplacer(uiParent*,IOPar*,
61  bool is2d=false);
62  ~uiStoredAttribReplacer();
63  void go();
64  void setDataPackIDs(
66 
67 protected:
68 
69  void usePar(const IOPar&);
70  void setStoredKey(IOPar*,const char*);
71  void setSteerPar(StoredEntry,const char*,
72  const char*);
73  void setUserRef(IOPar*,const char*);
74  void getUserRefs(const IOPar&);
75  void getUserRef(const Attrib::DescID&,
76  BufferStringSet&) const;
77  void getStoredIds();
78  void getStoredIds(const IOPar&);
79  void handleSingleInput();
80  void handleMultiInput();
81  bool hasInput(const Attrib::Desc&,
82  const Attrib::DescID&) const;
83  int getOutPut(int descid);
84  void removeDescsWithBlankInp(const Attrib::DescID&);
89  bool is2d_;
92  int noofseis_;
94 };
95 
96 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Attrib::DescID firstid_
Definition: uistoredattrreplacer.h:51
LineKey lk_
Definition: uistoredattrreplacer.h:53
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
Attrib::DescSet * attrset_
Definition: uistoredattrreplacer.h:85
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
bool is2d_
Definition: uistoredattrreplacer.h:89
Definition: uistoredattrreplacer.h:29
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
Set of attribute descriptions.
Definition: attribdescset.h:35
IOPar * iopar_
Definition: uistoredattrreplacer.h:86
Attrib::DescID secondid_
Definition: uistoredattrreplacer.h:52
AttribDesc ID: each Desc has a unique ID in a set; the boolean isstored allows us to know whether thi...
Definition: attribdescid.h:27
bool multiinpcube_
Definition: uistoredattrreplacer.h:93
Definition: uiparent.h:26
Set of BufferString objects.
Definition: bufstringset.h:28
int noofsteer_
Definition: uistoredattrreplacer.h:91
bool has2Ids() const
Definition: uistoredattrreplacer.h:48
Key for a line in a line set.
Definition: linekey.h:22
FixedString Desc()
Definition: keystrs.h:62
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
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
BufferStringSet userrefs_
Definition: uistoredattrreplacer.h:54
Definition: uistoredattrreplacer.h:33
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
int noofseis_
Definition: uistoredattrreplacer.h:92
TypeSet< StoredEntry > storedids_
Definition: uistoredattrreplacer.h:87
uiParent * parent_
Definition: uistoredattrreplacer.h:90
StoredEntry(Attrib::DescID id1, LineKey lk, BufferString storedref)
Definition: uistoredattrreplacer.h:35
TypeSet< DataPack::FullID > dpfids_
Definition: uistoredattrreplacer.h:88
BufferString storedref_
Definition: uistoredattrreplacer.h:55
Semblance Attribute.
Definition: attribdataholder.h:25

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