OpendTect  6.3
uisteeringsel.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: A.H. Bril
8  Date: April 2001
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "uiattributesmod.h"
14 #include "uiseissel.h"
15 #include "uiattrsel.h"
16 #include "attribdescid.h"
17 
18 class uiGenInput;
19 class uiLabel;
20 namespace Attrib { class Desc; class DescSet; class SelSpec; }
21 
22 mExpClass(uiAttributes) uiSteerAttrSel : public uiSteerCubeSel
24 public:
25 
27  const Attrib::DescSet*,bool is2d,
28  const uiString& txt=
29  mJoinUiStrs(sSteering(),sData()));
30 
31  inline Attrib::DescID inlDipID() const { return getDipID(0); }
32  // Returns -2 when selected is not a dip
33  inline Attrib::DescID crlDipID() const { return getDipID(1); }
34  // Returns -2 when selected is not a dip
35 
36  void setDesc(const Attrib::Desc*);
37  void setDescSet(const Attrib::DescSet*);
38 
39  void fillSelSpec(Attrib::SelSpec&,bool inl);
40  /* inl=true: AttribSelSpec for inline comp
41  inl=false: AttribSelSpec for crossline comp*/
42 
43 protected:
44 
45  Attrib::DescID getDipID(int) const;
46 
48 };
49 
50 
51 
54 mExpClass(uiAttributes) uiSteeringSel : public uiGroup
56 public:
58  const Attrib::DescSet*,bool is2d,
59  bool withconstdir=true,
60  bool doinit=true);
61  ~uiSteeringSel();
62 
63  Attrib::DescID descID();
64 
65  virtual bool willSteer() const;
66  void setDesc(const Attrib::Desc*);
67  void setDescSet(const Attrib::DescSet*);
68  void setType(int,bool fixed=false);
69 
70  void clearInpField();
71  const char* text() const;
72 
74 
75  static IOPar& inpselhist;
76 
77 protected:
78 
80 
86 
87  bool is2d_;
90 
91  void createFields();
92  void doFinalise(CallBacker*);
93  virtual void typeSel(CallBacker*);
94 };
Definition: uigroup.h:53
#define mExpClass(module)
Definition: commondefs.h:157
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
uiSteerAttrSel * inpfld_
Definition: uisteeringsel.h:85
Notifier< uiSteeringSel > steertypeSelected_
Definition: uisteeringsel.h:73
bool withconstdir_
Definition: uisteeringsel.h:89
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
Set of attribute descriptions.
Definition: attribdescset.h:29
AttribDesc ID: each Desc has a unique ID in a set; the boolean isstored allows us to know whether thi...
Definition: attribdescid.h:25
static IOPar & inpselhist
Definition: uisteeringsel.h:75
Definition: uistring.h:88
Definition: uiparent.h:24
#define mJoinUiStrs(txt1, txt2)
Definition: uistrings.h:567
uiAttrSelData attrdata_
Definition: uisteeringsel.h:47
FixedString Desc()
Definition: keystrs.h:60
uiGenInput * dirfld_
Definition: uisteeringsel.h:83
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
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:87
Definition: uiseissel.h:139
General Input Element.
Definition: uigeninput.h:56
Definition: uisteeringsel.h:22
Attrib::DescID inlDipID() const
Definition: uisteeringsel.h:31
Definition: uilabel.h:22
User interface for attribute selection data.
Definition: uiattrsel.h:36
uiGenInput * dipfld_
Definition: uisteeringsel.h:84
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:43
const Attrib::DescSet * descset_
Definition: uisteeringsel.h:79
Attrib::DescID crlDipID() const
Definition: uisteeringsel.h:33
bool is2d_
Definition: uisteeringsel.h:87
Attribute Steering ui element: data + selection of type.
Definition: uisteeringsel.h:54
uiLabel * nosteerlbl_
Definition: uisteeringsel.h:81
bool notypechange_
Definition: uisteeringsel.h:88
uiGenInput * typfld_
Definition: uisteeringsel.h:82
Semblance Attribute.
Definition: attribdataholder.h:21

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