OpendTect  6.3
uiwelldisplaycontrol.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: Bruno
8  Date: Mar 2009
9 ________________________________________________________________________
10 
11 -*/
12 
13 
14 #include "uiwellmod.h"
15 #include "notify.h"
16 #include "bufstring.h"
17 
18 class MouseEventHandler;
19 class uiWellDahDisplay;
20 
21 namespace Well { class Marker; }
22 
24 {
25 public:
28 
29  void addDahDisplay(uiWellDahDisplay&);
30  void removeDahDisplay(uiWellDahDisplay&);
31  void clear();
32 
33  bool isMouseDown() const { return ismousedown_;}
34  void setMouseDown(bool yn) { ismousedown_ = yn; }
35  bool isCtrlPressed() const {return isctrlpressed_;}
36  void setCtrlPressed(bool);
37 
38  const uiWellDahDisplay* selDahDisplay() const { return seldisp_; }
39  const Well::Marker& selMarker() const { return selmarker_; }
40 
41  void setSelMarker(Well::Marker);
42  void highlightMarker(Well::Marker,bool);
43 
44 
45  float time() const { return time_; }
46  float dah() const { return dah_; }
47  float xPos() const { return xpos_; }
48  float yPos() const { return ypos_; }
49 
50  MouseEventHandler* mouseEventHandler();
51 
55 
57 
58 protected:
59 
62 
66 
69 
70  MouseEventHandler& mouseEventHandler(int);
71 
72  void getPosInfo(BufferString&) const;
73  float mousePos() const;
74 
75  float time_;
76  float dah_;
77  float xpos_;
78  float ypos_;
79 
80  void mouseMovedCB(CallBacker*);
81  void mousePressedCB(CallBacker*);
82  void mouseReleasedCB(CallBacker*);
83  void setPosInfo(CallBacker*);
84  void setSelDahDisplay(CallBacker*);
85  void setSelMarkerCB(CallBacker*);
86 };
bool isMouseDown() const
Definition: uiwelldisplaycontrol.h:33
#define mExpClass(module)
Definition: commondefs.h:157
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
float time() const
Definition: uiwelldisplaycontrol.h:45
Notifier< uiWellDisplayControl > mousePressed
Definition: uiwelldisplaycontrol.h:53
void clear(std::ios &)
Notifier< uiWellDisplayControl > posChanged
Definition: uiwelldisplaycontrol.h:52
float ypos_
Definition: uiwelldisplaycontrol.h:78
Definition: uiwelldisplaycontrol.h:23
uiWellDahDisplay * seldisp_
Definition: uiwelldisplaycontrol.h:61
float time_
Definition: uiwelldisplaycontrol.h:75
Notifier< uiWellDisplayControl > mouseReleased
Definition: uiwelldisplaycontrol.h:54
float yPos() const
Definition: uiwelldisplaycontrol.h:48
ObjectSet< uiWellDahDisplay > logdisps_
Definition: uiwelldisplaycontrol.h:60
Definition: wellcommon.h:16
float xpos_
Definition: uiwelldisplaycontrol.h:77
Well depth/distance along hole display.
Definition: uiwelldahdisplay.h:49
float dah() const
Definition: uiwelldisplaycontrol.h:46
Definition: mouseevent.h:166
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
Well::Marker & lastselmarker_
Definition: uiwelldisplaycontrol.h:68
void setMouseDown(bool yn)
Definition: uiwelldisplaycontrol.h:34
BufferString info_
Definition: uiwelldisplaycontrol.h:63
Marker, can be attached to Strat level. When not attached, uses the object&#39;s own (fallback) name and ...
Definition: wellmarker.h:32
Notifier< uiWellDisplayControl > markerSel
Definition: uiwelldisplaycontrol.h:56
const uiWellDahDisplay * selDahDisplay() const
Definition: uiwelldisplaycontrol.h:38
Well::Marker & selmarker_
Definition: uiwelldisplaycontrol.h:67
bool ismousedown_
Definition: uiwelldisplaycontrol.h:64
float dah_
Definition: uiwelldisplaycontrol.h:76
float xPos() const
Definition: uiwelldisplaycontrol.h:47
const Well::Marker & selMarker() const
Definition: uiwelldisplaycontrol.h:39
bool isCtrlPressed() const
Definition: uiwelldisplaycontrol.h:35
bool isctrlpressed_
Definition: uiwelldisplaycontrol.h:65

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