OpendTect-6_4  6.4
horflatvieweditor.h
Go to the documentation of this file.
1 #ifndef horflatvieweditor_h
2 #define horflatvieweditor_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Nanne Hemstra
9  Date: May 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uimpemod.h"
16 #include "callback.h"
17 #include "trckeyzsampling.h"
18 #include "multiid.h"
19 #include "position.h"
20 #include "uistring.h"
21 
22 class FlatDataPack;
23 class MouseEvent;
24 class MouseEventHandler;
25 
26 namespace Attrib { class SelSpec; }
27 namespace EM { class PosID; class EMObject; };
28 namespace FlatView { class AuxDataEditor; }
29 
30 namespace MPE
31 {
32 
33 class EMTracker;
34 class EMSeedPicker;
35 
38 public:
41 
42  void setTrcKeyZSampling(const TrcKeyZSampling&);
43  void setSelSpec(const Attrib::SelSpec*,bool wva);
44  void swapSelSpec();
45  void set2D(bool is2d) { is2d_ = is2d; }
46 
47  FlatView::AuxDataEditor* getEditor() { return editor_; }
48  void setGeomID(Pos::GeomID geomid)
49  { geomid_ = geomid; }
50  void setMouseEventHandler(MouseEventHandler*);
51  void setSeedPickingStatus(bool);
52  void setTrackerSetupActive(bool bn)
53  { trackersetupactive_ = bn; }
54 
58 
59 protected:
60 
61  void mouseMoveCB(CallBacker*);
62  void mousePressCB(CallBacker*);
63  void mouseReleaseCB(CallBacker*);
64  void movementEndCB(CallBacker*);
65  void removePosCB(CallBacker*);
66 
67  bool canTrack(const EMTracker&) const;
68  bool checkSanity(EMTracker&,const EM::EMObject&,
69  const EMSeedPicker&,
70  bool& pickinvd) const;
71  bool prepareTracking(bool pickinvd,
72  const EMTracker&,
73  EMSeedPicker&,
74  const FlatDataPack&) const;
75  bool getPosID(const EM::EMObject&,const Coord3&,
76  EM::PosID&) const;
77  bool doTheSeed(EM::EMObject&,EMSeedPicker&,
78  const Coord3&,
79  const MouseEvent&) const;
80 
83 
87 
89 
90  bool is2d_;
93 
94 public:
95  static bool selectSeedData(const FlatView::AuxDataEditor*,
96  bool& pickinvd);
100 };
101 
102 } // namespace MPE
103 
104 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Pos::GeomID geomid_
Definition: horflatvieweditor.h:88
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
void setGeomID(Pos::GeomID geomid)
Definition: horflatvieweditor.h:48
MouseEventHandler * mouseeventhandler_
Definition: horflatvieweditor.h:82
TrcKeyZSampling curcs_
Definition: horflatvieweditor.h:84
Notifier< HorizonFlatViewEditor > updateseedpickingstatus
Definition: horflatvieweditor.h:57
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Is an identifier for each position in the earthmodel.
Definition: emposid.h:37
FlatView::AuxDataEditor * getEditor()
Definition: horflatvieweditor.h:47
MPE stands for Model, Predict, Edit. Contains tracking and editing functions.
Definition: autotracker.h:32
Notifier< HorizonFlatViewEditor > updateoldactivevolinuimpeman
Definition: horflatvieweditor.h:55
void set2D(bool is2d)
Definition: horflatvieweditor.h:45
Tracks EM objects.
Definition: emtracker.h:40
Handles adding of seeds and retracking of events based on new seeds. An instance of the class is usua...
Definition: emseedpicker.h:63
bool trackersetupactive_
Definition: horflatvieweditor.h:92
const Attrib::SelSpec * wvaselspec_
Definition: horflatvieweditor.h:86
void setTrackerSetupActive(bool bn)
Definition: horflatvieweditor.h:52
Definition: callback.h:254
uiMPEEngine & uiMPE()
Access function for an instance (and normally the only instance) of MPE::uiMPEEngine.
Notifier< HorizonFlatViewEditor > restoreactivevolinuimpeman
Definition: horflatvieweditor.h:56
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
Definition: mouseevent.h:162
Editor for FlatView::AuxData. Allows the end-user to click-drag-release the points in data...
Definition: flatauxdataeditor.h:119
Definition: horflatvieweditor.h:36
A cartesian coordinate in 3D space.
Definition: coord.h:72
Index_Type GeomID
Definition: commontypes.h:52
bool is2d_
Definition: horflatvieweditor.h:90
const Attrib::SelSpec * vdselspec_
Definition: horflatvieweditor.h:85
Base class for all EarthModel objects.
Definition: emobject.h:158
bool seedpickingon_
Definition: horflatvieweditor.h:91
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
DataPack for flat data.
Definition: datapackbase.h:64
Definition: bitmap2rgb.h:18
FlatView::AuxDataEditor * editor_
Definition: horflatvieweditor.h:81
Definition: mouseevent.h:73
Semblance Attribute.
Definition: attribdataholder.h:25

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