OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uiattributesmod.h"
15 #include "uiseissel.h"
16 #include "uiattrsel.h"
17 #include "attribdescid.h"
18 
19 class uiGenInput;
20 class uiLabel;
21 namespace Attrib { class Desc; class DescSet; class SelSpec; }
22 
23 mExpClass(uiAttributes) uiSteerAttrSel : public uiSteerCubeSel
25 public:
26 
28  const Attrib::DescSet*,bool is2d,
29  const uiString& txt=
30  mJoinUiStrs(sSteering(),sData()));
31 
32  inline Attrib::DescID inlDipID() const { return getDipID(0); }
33  // Returns -2 when selected is not a dip
34  inline Attrib::DescID crlDipID() const { return getDipID(1); }
35  // Returns -2 when selected is not a dip
36 
37  void setDesc(const Attrib::Desc*);
39 
40  void fillSelSpec(Attrib::SelSpec&,bool inl);
41  /* inl=true: AttribSelSpec for inline comp
42  inl=false: AttribSelSpec for crossline comp*/
43 
44 protected:
45 
47 
49 };
50 
51 
52 
55 mExpClass(uiAttributes) uiSteeringSel : public uiGroup
57 public:
59  const Attrib::DescSet*,bool is2d,
60  bool withconstdir=true,
61  bool doinit=true);
63 
65 
66  virtual bool willSteer() const;
67  void setDesc(const Attrib::Desc*);
69  void setType(int,bool fixed=false);
70 
71  void clearInpField();
72  const char* text() const;
73 
75 
76  static IOPar& inpselhist;
77 
78 protected:
79 
81 
87 
88  bool is2d_;
91 
92  void createFields();
94  virtual void typeSel(CallBacker*);
95 };
96 
Attrib::DescID
AttribDesc ID: each Desc has a unique ID in a set; the boolean isstored allows us to know whether thi...
Definition: attribdescid.h:27
uiSteerAttrSel::setDescSet
void setDescSet(const Attrib::DescSet *)
uiSteeringSel::typeSel
virtual void typeSel(CallBacker *)
uiSteerCubeSel
Definition: uiseissel.h:138
uiSteerAttrSel::fillSelSpec
void fillSelSpec(Attrib::SelSpec &, bool inl)
uiSteerAttrSel::inlDipID
Attrib::DescID inlDipID() const
Definition: uisteeringsel.h:32
uiSteerAttrSel::setDesc
void setDesc(const Attrib::Desc *)
uiSteeringSel::uiSteeringSel
uiSteeringSel(uiParent *, const Attrib::DescSet *, bool is2d, bool withconstdir=true, bool doinit=true)
uiSteerAttrSel
Definition: uisteeringsel.h:24
uiSteeringSel::clearInpField
void clearInpField()
uiSteeringSel::setDesc
void setDesc(const Attrib::Desc *)
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
uiSteeringSel::typfld_
uiGenInput * typfld_
Definition: uisteeringsel.h:83
uiSteeringSel::doFinalise
void doFinalise(CallBacker *)
uiSteeringSel::nosteerlbl_
uiLabel * nosteerlbl_
Definition: uisteeringsel.h:82
uiAttrSelData
User interface for attribute selection data.
Definition: uiattrsel.h:39
uiseissel.h
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
uiSteeringSel::dirfld_
uiGenInput * dirfld_
Definition: uisteeringsel.h:84
uiGenInput
General Input Element.
Definition: uigeninput.h:59
uiSteeringSel::descID
Attrib::DescID descID()
uiSteeringSel::~uiSteeringSel
~uiSteeringSel()
uiSteeringSel::dipfld_
uiGenInput * dipfld_
Definition: uisteeringsel.h:85
uiSteeringSel::mODTextTranslationClass
mODTextTranslationClass(uiSteeringSel)
uiGroup
Definition: uigroup.h:54
uiSteeringSel::steertypeSelected_
Notifier< uiSteeringSel > steertypeSelected_
Definition: uisteeringsel.h:74
Notifier< uiSteeringSel >
uiSteerAttrSel::attrdata_
uiAttrSelData attrdata_
Definition: uisteeringsel.h:48
uiSteeringSel
Attribute Steering ui element: data + selection of type.
Definition: uisteeringsel.h:56
uiSteeringSel::setDescSet
void setDescSet(const Attrib::DescSet *)
uiSteeringSel::setType
void setType(int, bool fixed=false)
uiSteeringSel::withconstdir_
bool withconstdir_
Definition: uisteeringsel.h:90
attribdescid.h
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
uiSteeringSel::inpfld_
uiSteerAttrSel * inpfld_
Definition: uisteeringsel.h:86
uiSteerAttrSel::getDipID
Attrib::DescID getDipID(int) const
uiSteeringSel::willSteer
virtual bool willSteer() const
uiSteeringSel::inpselhist
static IOPar & inpselhist
Definition: uisteeringsel.h:76
uiSteerAttrSel::crlDipID
Attrib::DescID crlDipID() const
Definition: uisteeringsel.h:34
uiSteerAttrSel::mODTextTranslationClass
mODTextTranslationClass(uiSteerAttrSel)
uiSteeringSel::descset_
const Attrib::DescSet * descset_
Definition: uisteeringsel.h:80
uiSteeringSel::is2d_
bool is2d_
Definition: uisteeringsel.h:88
uiLabel
Definition: uilabel.h:24
uiSteerAttrSel::uiSteerAttrSel
uiSteerAttrSel(uiParent *, const Attrib::DescSet *, bool is2d, const uiString &txt=mJoinUiStrs(sSteering(), sData()))
mJoinUiStrs
#define mJoinUiStrs(txt1, txt2)
Definition: uistrings.h:697
uiattrsel.h
uiParent
Definition: uiparent.h:26
uiSteeringSel::notypechange_
bool notypechange_
Definition: uisteeringsel.h:89
uiSteeringSel::text
const char * text() const
Attrib::DescSet
Set of attribute descriptions.
Definition: attribdescset.h:35
Attrib
Semblance Attribute.
Definition: attribdataholder.h:25
Attrib::SelSpec
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
Attrib::Desc
Description of an attribute in an Attrib::DescSet. Each attribute has a name (e.g....
Definition: attribdesc.h:89
uiSteeringSel::createFields
void createFields()
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
sKey::Desc
FixedString Desc()
Definition: keystrs.h:62

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