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

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