OpendTect-6_4  6.4
uiemattribpartserv.h
Go to the documentation of this file.
1 #ifndef uiemattribpartserv_h
2 #define uiemattribpartserv_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Nanne Hemstra
9  Date: September 2006
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiemattribmod.h"
16 #include "uiapplserv.h"
17 #include "uistring.h"
18 #include "attribdescid.h"
19 #include "datacoldef.h"
20 #include "emposid.h"
21 #include "multiid.h"
22 #include "ranges.h"
23 
24 namespace Attrib { class DescSet; }
25 namespace Geometry { class RandomLine; }
26 class DataPointSet;
27 class NLAModel;
28 class TaskRunner;
29 
30 class uiAttrSurfaceOut;
31 class uiAttrTrcSelOut;
33 class uiImportHorizon2D;
34 class uiSeisEventSnapper;
35 
43 public:
46 
47  const char* name() const { return "EMAttribs"; }
48 
49  static int evCalcShiftAttribute() { return 0; }
50  static int evHorizonShift() { return 1; }
51  static int evStoreShiftHorizons() { return 2; }
52  static int evShiftDlgOpened() { return 3; }
53  static int evShiftDlgClosedCancel() { return 4; }
54  static int evShiftDlgClosedOK() { return 5; }
55  static int evDisplayEMObject() { return 6; }
56 
57  enum HorOutType { OnHor, AroundHor, BetweenHors };
58  void createHorizonOutput(HorOutType);
59 
60  void snapHorizon(const EM::ObjectID&,bool is2d);
61 
62  void setNLA( const NLAModel* mdl, const MultiID& id )
63  { nlamodel_ = mdl; nlaid_ = id; }
64  void setDescSet( const Attrib::DescSet* ads )
65  { descset_ = ads; }
66 
67  void showHorShiftDlg(const EM::ObjectID&,
68  int visid,
69  const BoolTypeSet& attrenabled,
70  float initialshift,
71  bool canaddattrib);
72  void fillHorShiftDPS(ObjectSet<DataPointSet>&,
73  TaskRunner*);
74 
75  const DataColDef& sidDef() const;
77  { return initialattribstatus_; }
78  float initialShift() const { return initialshift_; }
79 
80  float getShift() const;
82  { attribid_ = id; }
83  int getShiftedObjectVisID() const;
84  void setAttribIdx(int);
85  Attrib::DescID attribID() const { return attribid_; }
86  int attribIdx() const { return attribidx_; }
87  //Works only in case of Shift Dlg
88  int textureIdx() const;
89  //Works only in case of Shift Dlg
90  StepInterval<float> shiftRange() const;
91  const char* getAttribBaseNm() const;
92  void import2DHorizon();
93  void create2DGrid(const Geometry::RandomLine*);
94 
95  const TypeSet<EM::ObjectID>& getEMObjIDs() const { return emobjids_; }
96 
97 protected:
98 
106 
109 
113 
120 
121  void calcDPS(CallBacker*);
122  void horShifted(CallBacker*);
123  void shiftDlgClosed(CallBacker*);
124 
125  void readyForDisplayCB(CallBacker*);
126 };
127 
128 #endif
#define mExpClass(module)
Definition: commondefs.h:160
od_int32 ObjectID
Definition: emposid.h:24
int attribIdx() const
Definition: uiemattribpartserv.h:86
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: uihorizonshiftdlg.h:29
uiAttrSurfaceOut * surfattr3ddlg_
Definition: uiemattribpartserv.h:119
const NLAModel * nlamodel_
Definition: uiemattribpartserv.h:99
Part Server for Wells.
Definition: uiseiseventsnapper.h:29
Attrib::DescID attribid_
Definition: uiemattribpartserv.h:111
Trace Selection Output Batch dialog. Used for calculating attributes between surfaces or withing a us...
Definition: uiattrtrcselout.h:35
uiImportHorizon2D * uiimphor2ddlg_
Definition: uiemattribpartserv.h:104
const BoolTypeSet & initialAttribStatus() const
Definition: uiemattribpartserv.h:76
Set of data points with group selection.
Definition: datapointset.h:48
void setAttribID(Attrib::DescID id)
Definition: uiemattribpartserv.h:81
float initialshift_
Definition: uiemattribpartserv.h:107
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Minimum Interface for NLA models.
Definition: nlamodel.h:20
Definition: randomlinegeom.h:31
Set of attribute descriptions.
Definition: attribdescset.h:35
static int evStoreShiftHorizons()
Definition: uiemattribpartserv.h:51
Attrib::DescID attribID() const
Definition: uiemattribpartserv.h:85
AttribDesc ID: each Desc has a unique ID in a set; the boolean isstored allows us to know whether thi...
Definition: attribdescid.h:27
uiSeisEventSnapper * uiseisevsnapdlg_
Definition: uiemattribpartserv.h:103
static int evShiftDlgClosedCancel()
Definition: uiemattribpartserv.h:53
MultiID nlaid_
Definition: uiemattribpartserv.h:101
TypeSet< EM::ObjectID > emobjids_
Definition: uiemattribpartserv.h:105
static int evHorizonShift()
Definition: uiemattribpartserv.h:50
static int evShiftDlgOpened()
Definition: uiemattribpartserv.h:52
static int evShiftDlgClosedOK()
Definition: uiemattribpartserv.h:54
const Attrib::DescSet * descset_
Definition: uiemattribpartserv.h:100
uiAttrTrcSelOut * aroundhor3ddlg_
Definition: uiemattribpartserv.h:115
HorOutType
Definition: uiemattribpartserv.h:57
const TypeSet< EM::ObjectID > & getEMObjIDs() const
Definition: uiemattribpartserv.h:95
uiAttrTrcSelOut * betweenhor3ddlg_
Definition: uiemattribpartserv.h:117
Class that can execute a task.
Definition: task.h:169
uiAttrTrcSelOut * aroundhor2ddlg_
Definition: uiemattribpartserv.h:114
BoolTypeSet initialattribstatus_
Definition: uiemattribpartserv.h:108
Surface Output Batch dialog. Used for calculating attributes on surfaces.
Definition: uiattrsurfout.h:32
const char * name() const
Definition: uiemattribpartserv.h:47
uiAttrSurfaceOut * surfattr2ddlg_
Definition: uiemattribpartserv.h:118
static int evDisplayEMObject()
Definition: uiemattribpartserv.h:55
Dialog for Horizon Import.
Definition: uiimphorizon2d.h:34
int shiftidx_
Definition: uiemattribpartserv.h:110
void setNLA(const NLAModel *mdl, const MultiID &id)
Definition: uiemattribpartserv.h:62
Services from application level to &#39;Part servers&#39;.
Definition: uiapplserv.h:24
uiAttrTrcSelOut * betweenhor2ddlg_
Definition: uiemattribpartserv.h:116
Definition: uiemattribpartserv.h:57
static int evCalcShiftAttribute()
Definition: uiemattribpartserv.h:49
Column definition in tabular data sets.
Definition: datacoldef.h:29
Makes available certain services that are needed on a higher level.
Definition: uiapplserv.h:48
void setDescSet(const Attrib::DescSet *ads)
Definition: uiemattribpartserv.h:64
Definition: arraytesselator.h:21
int attribidx_
Definition: uiemattribpartserv.h:112
float initialShift() const
Definition: uiemattribpartserv.h:78
Compound key consisting of ints.
Definition: multiid.h:25
Semblance Attribute.
Definition: attribdataholder.h:25
Part Server for Attribute handling on EarthModel objects.
Definition: uiemattribpartserv.h:41
uiHorizonShiftDialog * horshiftdlg_
Definition: uiemattribpartserv.h:102

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