OpendTect-6_4  6.4
uihorizonshiftdlg.h
Go to the documentation of this file.
1 #ifndef uihorizonshiftdlg_h
2 #define uihorizonshiftdlg_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Satyaki Maitra
8  Date: Feb 2009
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uidialog.h"
15 #include "attribdescid.h"
16 #include "bufstringset.h"
17 #include "datapack.h"
18 #include "emposid.h"
19 #include "position.h"
20 
21 class uiAttrSel;
22 class uiCheckBox;
23 class uiGenInput;
24 class uiSlider;
25 class uiPushButton;
26 namespace EM { class Horizon3D; }
27 namespace Attrib { class DescSet; }
28 
29 mClass(uiEMAttrib) uiHorizonShiftDialog : public uiDialog
31 public:
33  int visid,
34  const Attrib::DescSet&,
35  float initialshift,
36  bool cancalcattrib);
38 
39  const EM::Horizon3D& horizon3D() { return *emhor3d_; }
40  StepInterval<float> shiftRg() const;
41  int nrSteps() const;
42  Attrib::DescID attribID() const;
43  float getShift() const;
44  int curShiftIdx() const;
45  bool doStore() const;
46  const EM::ObjectID& emID() const { return emid_; }
47  const int& visID() const { return visid_; }
48 
49  const char* getAttribName() const;
50  const char* getAttribBaseName() const;
51 
54 
55 protected:
56  static const char* sDefaultAttribName();
57 
58  void setNameFldSensitive(CallBacker*);
59  void rangeChangeCB(CallBacker*);
60  void attribChangeCB(CallBacker*);
61  void calcAttrib(CallBacker*);
62  void shiftCB(CallBacker*);
63  bool acceptOK(CallBacker*);
64 
71 
76  int visid_;
77 };
78 
79 #endif
od_int32 ObjectID
Definition: emposid.h:24
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: uihorizonshiftdlg.h:29
Definition: uislider.h:42
const int & visID() const
Definition: uihorizonshiftdlg.h:47
is the base class for all buttons.
Definition: uibutton.h:83
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
uiSlider * slider_
Definition: uihorizonshiftdlg.h:67
Set of attribute descriptions.
Definition: attribdescset.h:35
StepInterval< float > calcshiftrg_
Definition: uihorizonshiftdlg.h:73
StepInterval< float > shiftrg_
Definition: uihorizonshiftdlg.h:72
AttribDesc ID: each Desc has a unique ID in a set; the boolean isstored allows us to know whether thi...
Definition: attribdescid.h:27
EM::Horizon3D * emhor3d_
Definition: uihorizonshiftdlg.h:74
uiAttrSel * attrinpfld_
Definition: uihorizonshiftdlg.h:65
Definition: uiparent.h:26
uiPushButton * calbut_
Definition: uihorizonshiftdlg.h:68
Definition: uidialog.h:42
uiGenInput * namefld_
Definition: uihorizonshiftdlg.h:70
Notifier< uiHorizonShiftDialog > horShifted
Definition: uihorizonshiftdlg.h:53
General Input Element.
Definition: uigeninput.h:58
uiGenInput * rangeinpfld_
Definition: uihorizonshiftdlg.h:66
EM::ObjectID emid_
Definition: uihorizonshiftdlg.h:75
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
User interface element for storing attribute desc selection.
Definition: uiattrsel.h:174
int visid_
Definition: uihorizonshiftdlg.h:76
3D Horizon. A Horizon is made up of one or more grids (so they can overlap at faults). The grids are defined by knot-points in a matrix and fillstyle in between the knots.
Definition: emhorizon3d.h:96
const EM::Horizon3D & horizon3D()
Definition: uihorizonshiftdlg.h:39
#define mClass(module)
Definition: commondefs.h:164
const EM::ObjectID & emID() const
Definition: uihorizonshiftdlg.h:46
uiCheckBox * storefld_
Definition: uihorizonshiftdlg.h:69
Definition: uibutton.h:134
Notifier< uiHorizonShiftDialog > calcAttribPushed
Definition: uihorizonshiftdlg.h:52
Semblance Attribute.
Definition: attribdataholder.h:25

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