OpendTect-6_4  6.4
uisteeringsel.h
Go to the documentation of this file.
1 #ifndef uisteeringsel_h
2 #define uisteeringsel_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 "uiseissel.h"
17 #include "uiattrsel.h"
18 #include "attribdescid.h"
19 
20 class uiGenInput;
21 class uiLabel;
22 namespace Attrib { class Desc; class DescSet; class SelSpec; }
23 
24 mExpClass(uiAttributes) uiSteerAttrSel : public uiSteerCubeSel
26 public:
27 
29  const Attrib::DescSet*,bool is2d,
30  const uiString& txt=
31  mJoinUiStrs(sSteering(),sData()));
32 
33  inline Attrib::DescID inlDipID() const { return getDipID(0); }
34  // Returns -2 when selected is not a dip
35  inline Attrib::DescID crlDipID() const { return getDipID(1); }
36  // Returns -2 when selected is not a dip
37 
38  void setDesc(const Attrib::Desc*);
39  void setDescSet(const Attrib::DescSet*);
40 
41  void fillSelSpec(Attrib::SelSpec&,bool inl);
42  /* inl=true: AttribSelSpec for inline comp
43  inl=false: AttribSelSpec for crossline comp*/
44 
45 protected:
46 
47  Attrib::DescID getDipID(int) const;
48 
50 };
51 
52 
53 
56 mExpClass(uiAttributes) uiSteeringSel : public uiGroup
58 public:
60  const Attrib::DescSet*,bool is2d,
61  bool withconstdir=true,
62  bool doinit=true);
63  ~uiSteeringSel();
64 
65  Attrib::DescID descID();
66 
67  virtual bool willSteer() const;
68  void setDesc(const Attrib::Desc*);
69  void setDescSet(const Attrib::DescSet*);
70  void setType(int,bool fixed=false);
71 
72  void clearInpField();
73  const char* text() const;
74 
76 
77  static IOPar& inpselhist;
78 
79 protected:
80 
82 
88 
89  bool is2d_;
92 
93  void createFields();
94  void doFinalise(CallBacker*);
95  virtual void typeSel(CallBacker*);
96 };
97 
98 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
uiSteerAttrSel * inpfld_
Definition: uisteeringsel.h:87
Notifier< uiSteeringSel > steertypeSelected_
Definition: uisteeringsel.h:75
bool withconstdir_
Definition: uisteeringsel.h:91
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
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
static IOPar & inpselhist
Definition: uisteeringsel.h:77
Definition: uistring.h:89
Definition: uiparent.h:26
#define mJoinUiStrs(txt1, txt2)
Definition: uistrings.h:549
uiAttrSelData attrdata_
Definition: uisteeringsel.h:49
FixedString Desc()
Definition: keystrs.h:62
uiGenInput * dirfld_
Definition: uisteeringsel.h:85
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
Definition: uiseissel.h:136
General Input Element.
Definition: uigeninput.h:58
Definition: uisteeringsel.h:24
Attrib::DescID inlDipID() const
Definition: uisteeringsel.h:33
Definition: uilabel.h:24
User interface for attribute selection data.
Definition: uiattrsel.h:39
uiGenInput * dipfld_
Definition: uisteeringsel.h:86
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
const Attrib::DescSet * descset_
Definition: uisteeringsel.h:81
Attrib::DescID crlDipID() const
Definition: uisteeringsel.h:35
bool is2d_
Definition: uisteeringsel.h:89
Attribute Steering ui element: data + selection of type.
Definition: uisteeringsel.h:56
uiLabel * nosteerlbl_
Definition: uisteeringsel.h:83
bool notypechange_
Definition: uisteeringsel.h:90
uiGenInput * typfld_
Definition: uisteeringsel.h:84
Semblance Attribute.
Definition: attribdataholder.h:25

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