OpendTect-6_4  6.4
uiwelldisplaycontrol.h
Go to the documentation of this file.
1 #ifndef uiwelldisplaycontrol_h
2 #define uiwelldisplaycontrol_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bruno
9  Date: Mar 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 
16 #include "uiwellmod.h"
17 #include "callback.h"
18 #include "bufstring.h"
19 
20 class MouseEventHandler;
21 class uiWellDahDisplay;
22 
23 namespace Well { class Marker; }
24 
26 {
27 public:
30 
31  void addDahDisplay(uiWellDahDisplay&);
32  void removeDahDisplay(uiWellDahDisplay&);
33  void clear();
34 
35  bool isMouseDown() const { return ismousedown_;}
36  void setMouseDown(bool yn) { ismousedown_ = yn; }
37  bool isCtrlPressed() const {return isctrlpressed_;}
38  void setCtrlPressed(bool);
39 
40  const uiWellDahDisplay* selDahDisplay() const { return seldisp_; }
41  const Well::Marker* selMarker() const { return selmarker_; }
42  const Well::Marker* lastValidMarker() const {return lastselmarker_;}
43 
44  void setSelMarker(const Well::Marker*);
45 
46  float time() const { return time_; }
47  float dah() const { return dah_; }
48  float xPos() const { return xpos_; }
49  float yPos() const { return ypos_; }
50 
51  MouseEventHandler* mouseEventHandler();
52 
56 
58 
59 protected:
60 
63 
67 
70 
71  void highlightMarker(const Well::Marker&,bool);
72  MouseEventHandler& mouseEventHandler(int);
73 
74  void getPosInfo(BufferString&) const;
75  float mousePos() const;
76 
77  float time_;
78  float dah_;
79  float xpos_;
80  float ypos_;
81 
82  void mouseMovedCB(CallBacker*);
83  void mousePressedCB(CallBacker*);
84  void mouseReleasedCB(CallBacker*);
85  void setPosInfo(CallBacker*);
86  void setSelDahDisplay(CallBacker*);
87  void setSelMarkerCB(CallBacker*);
88 };
89 
90 #endif
bool isMouseDown() const
Definition: uiwelldisplaycontrol.h:35
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
float time() const
Definition: uiwelldisplaycontrol.h:46
Notifier< uiWellDisplayControl > mousePressed
Definition: uiwelldisplaycontrol.h:54
void clear(std::ios &)
Notifier< uiWellDisplayControl > posChanged
Definition: uiwelldisplaycontrol.h:53
float ypos_
Definition: uiwelldisplaycontrol.h:80
Definition: uiwelldisplaycontrol.h:25
const Well::Marker * lastValidMarker() const
Definition: uiwelldisplaycontrol.h:42
uiWellDahDisplay * seldisp_
Definition: uiwelldisplaycontrol.h:62
float time_
Definition: uiwelldisplaycontrol.h:77
Notifier< uiWellDisplayControl > mouseReleased
Definition: uiwelldisplaycontrol.h:55
float yPos() const
Definition: uiwelldisplaycontrol.h:49
ObjectSet< uiWellDahDisplay > logdisps_
Definition: uiwelldisplaycontrol.h:61
Definition: directionalsurvey.h:19
float xpos_
Definition: uiwelldisplaycontrol.h:79
Well depth/distance along hole display.
Definition: uiwelldahdisplay.h:57
float dah() const
Definition: uiwelldisplaycontrol.h:47
Definition: mouseevent.h:162
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
const Well::Marker * selmarker_
Definition: uiwelldisplaycontrol.h:68
void setMouseDown(bool yn)
Definition: uiwelldisplaycontrol.h:36
BufferString info_
Definition: uiwelldisplaycontrol.h:64
Marker, should be attached to Strat level.
Definition: wellmarker.h:35
Notifier< uiWellDisplayControl > markerSel
Definition: uiwelldisplaycontrol.h:57
const uiWellDahDisplay * selDahDisplay() const
Definition: uiwelldisplaycontrol.h:40
bool ismousedown_
Definition: uiwelldisplaycontrol.h:65
float dah_
Definition: uiwelldisplaycontrol.h:78
float xPos() const
Definition: uiwelldisplaycontrol.h:48
const Well::Marker * selMarker() const
Definition: uiwelldisplaycontrol.h:41
bool isCtrlPressed() const
Definition: uiwelldisplaycontrol.h:37
const Well::Marker * lastselmarker_
Definition: uiwelldisplaycontrol.h:69
bool isctrlpressed_
Definition: uiwelldisplaycontrol.h:66

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