OpendTect-6_4  6.4
mpefssflatvieweditor.h
Go to the documentation of this file.
1 #ifndef mpefssflatvieweditor_h
2 #define mpefssflatvieweditor_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  CopyRight: (C) dGB Beheer B.V.
8  Author: Umesh Sinha
9  Date: Jan 2010
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uimpemod.h"
16 #include "geometry.h"
18 
19 #include "emposid.h"
20 
21 class FlatPosData;
22 class MouseEventHandler;
23 class IndexInfo;
24 
25 namespace EM { class FaultStickPainter; }
26 namespace FlatView { class AuxDataEditor; }
27 
28 namespace MPE
29 {
30 
33 {
34 public:
35  FaultStickSetFlatViewEditor(FlatView::AuxDataEditor*,
36  const EM::ObjectID&);
37  ~FaultStickSetFlatViewEditor();
38 
39  void setMouseEventHandler(MouseEventHandler*);
40  void updateActStkContainer();
41 
42  void setTrcKeyZSampling(const TrcKeyZSampling&);
43  void setPath(const TrcKeyPath&);
44  void setFlatPosData(const FlatPosData*);
45  void drawFault();
46  void enableLine(bool);
47  void enableKnots(bool);
48 
49  void set2D(bool yn);
50  void setGeomID(Pos::GeomID);
51 
52  TypeSet<int>& getTrcNos();
53  TypeSet<float>& getDistances();
54  TypeSet<Coord>& getCoords();
55  void setRandomLineID(int rdlid);
56 
57 protected:
58 
59  void fssRepaintATSCB(CallBacker*);
60  void fssRepaintedCB(CallBacker*);
61 
62  void seedMovementStartedCB(CallBacker*);
63  void seedMovementFinishedCB(CallBacker*);
64  void removeSelectionCB(CallBacker*);
65 
66  void mouseMoveCB(CallBacker*);
67  void mousePressCB(CallBacker*);
68  void mouseReleaseCB(CallBacker*);
69  void doubleClickedCB(CallBacker*);
70  void sowingFinishedCB(CallBacker*);
71 
72  mStruct(uiMPE) StkMarkerIdInfo
73  {
74  int markerid_;
75  int stickid_;
76  };
77 
78  void cleanActStkContainer();
79  void fillActStkContainer();
80  int getStickId(int markerid) const;
81 
82  bool getMousePosInfo(
83  const Geom::Point2D<int>& mousepos,
84  IndexInfo& ix, IndexInfo& iy,
85  Coord3& worldpos,int* trcnr=0) const;
86  Coord3 getScaleVector() const;
88 
89  const TrcKeyPath* path_;
90 
95  int rdlid_;
96 
102  Coord3 getNormal(const Coord3* mousepos=0) const;
103 };
104 
105 } //namespace MPE
106 
107 #endif
#define mExpClass(module)
Definition: commondefs.h:160
od_int32 ObjectID
Definition: emposid.h:24
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Positioning of flat &#39;bulk&#39; data. Only the &#39;x1&#39; axis can be irregular.
Definition: flatposdata.h:26
ObjectSet< StkMarkerIdInfo > markeridinfo_
Definition: mpefssflatvieweditor.h:98
#define mStruct(module)
Definition: commondefs.h:165
Is an identifier for each position in the earthmodel.
Definition: emposid.h:37
int activestickid_
Definition: mpefssflatvieweditor.h:99
MPE stands for Model, Predict, Edit. Contains tracking and editing functions.
Definition: autotracker.h:32
Info on (floating-point) position in an array or StepInterval.
Definition: indexinfo.h:23
FlatView::AuxDataEditor * editor_
Definition: mpefssflatvieweditor.h:97
MouseEventHandler * meh_
Definition: mpefssflatvieweditor.h:100
uiMPEEngine & uiMPE()
Access function for an instance (and normally the only instance) of MPE::uiMPEEngine.
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
EM::PosID mousepid_
Definition: mpefssflatvieweditor.h:101
bool doubleclicked_
Definition: mpefssflatvieweditor.h:94
Definition: mouseevent.h:162
Editor for FlatView::AuxData. Allows the end-user to click-drag-release the points in data...
Definition: flatauxdataeditor.h:119
A cartesian coordinate in 3D space.
Definition: coord.h:72
Index_Type GeomID
Definition: commontypes.h:52
Fault stick painter.
Definition: emfaultstickpainter.h:35
bool seedhasmoved_
Definition: mpefssflatvieweditor.h:92
const TrcKeyPath * path_
Definition: mpefssflatvieweditor.h:89
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
Definition: mpefssflatvieweditor.h:31
bool makenewstick_
Definition: mpefssflatvieweditor.h:93
Definition: bitmap2rgb.h:18
int rdlid_
Definition: mpefssflatvieweditor.h:95
EM::FaultStickPainter * fsspainter_
Definition: mpefssflatvieweditor.h:91

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