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

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