OpendTect  6.3
uihorsavefieldgrp.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: Y. Liu
8  Date: Nov 2009
9 ________________________________________________________________________
10 
11 -*/
12 
13 
14 #include "uiearthmodelmod.h"
15 #include "uigroup.h"
16 
17 namespace EM { class Horizon; class SurfaceIODataSelection; }
18 
19 class uiCheckBox;
20 class uiGenInput;
21 class uiIOObjSel;
22 class uiPosSubSel;
23 
29 mExpClass(uiEarthModel) uiHorSaveFieldGrp : public uiGroup
31 public:
33  bool is2d=false,bool wthsubsel=false);
34 
36 
37  void setSaveFieldName(const char*);
38  bool displayNewHorizon() const;
39  bool overwriteHorizon() const;
40  void allowOverWrite(bool);
41  EM::Horizon* getNewHorizon() const { return newhorizon_; }
42 
43  EM::Horizon* readHorizon(const DBKey&);
44  bool saveHorizon();
45 
46  void setHorRange(const Interval<int>& newinlrg,
47  const Interval<int>& newcrlrg);
48  void setFullSurveyArray(bool yn);
49  bool needsFullSurveyArray() const;
50  bool acceptOK();
51 
52 protected:
53 
58 
62  bool is2d_;
63 
64  EM::SurfaceIODataSelection getSelection(bool) const;
65  bool createNewHorizon();
66  void saveCB(CallBacker*);
67  void expandToFullSurveyArray();
68 };
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
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
Group to capture a user&#39;s position subselection wishes.
Definition: uipossubsel.h:31
EM::Horizon * newhorizon_
Definition: uihorsavefieldgrp.h:60
Definition: uiparent.h:24
EM::Horizon * horizon_
Definition: uihorsavefieldgrp.h:59
save or overwrite horizon field set up. It will create new horizon based on given horizon...
Definition: uihorsavefieldgrp.h:29
uiCheckBox * addnewfld_
Definition: uihorsavefieldgrp.h:55
uiIOObjSel * outputfld_
Definition: uihorsavefieldgrp.h:56
uiGenInput * savefld_
Definition: uihorsavefieldgrp.h:54
General Input Element.
Definition: uigeninput.h:56
FixedString Horizon()
Definition: keystrs.h:70
EM::Horizon * getNewHorizon() const
Definition: uihorsavefieldgrp.h:41
User Interface (UI) element for selection of IOObjs.
Definition: uiioobjsel.h:36
uiPosSubSel * rgfld_
Definition: uihorsavefieldgrp.h:57
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:23
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36
bool is2d_
Definition: uihorsavefieldgrp.h:62
bool usefullsurvey_
Definition: uihorsavefieldgrp.h:61
Surface I/O data selection.
Definition: emsurfaceiodata.h:60
Definition: uibutton.h:130
Horizon Surface.
Definition: emhorizon.h:46

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