 |
OpendTect
6.6
|
Go to the documentation of this file.
14 #include "generalmod.h"
24 friend class QtTabletEventFilter;
30 EnterProximity=171, LeaveProximity=172 };
39 FourDMouse, RotationStylus };
77 int xx=0,
int yy=0,
float aa=0 )
78 : butstate_(st), pressed_(false)
79 , angle_(aa), tabletinfo_(nullptr)
82 dpos_.setXY( xx, yy );
86 float xx,
float yy,
float aa=0 )
87 : butstate_(st), pressed_(false)
88 , angle_(aa), tabletinfo_(nullptr)
96 double xx,
double yy,
float aa=0 )
97 : butstate_(st), pressed_(false)
98 , angle_(aa), tabletinfo_(nullptr)
101 dpos.
setXY( xx, yy );
106 : tabletinfo_(nullptr)
122 int x()
const {
return pos_.x; }
123 int y()
const {
return pos_.y; }
124 float angle()
const {
return angle_; }
136 {
return !(*
this==ev); }
236 float offset=
mUdf(
float));
251 : pos_(xx,yy),scale_(sc),angle_(angl)
256 int x()
const {
return pos_.x; }
257 int y()
const {
return pos_.y; }
258 float scale()
const {
return scale_; }
259 float angle()
const {
return angle_; }
261 enum State{ Started, Moving, Finished };
float angle_
Definition: mouseevent.h:151
TabletDevice
Definition: mouseevent.h:38
bool ishandled_
Definition: mouseevent.h:219
static float getDefaultTrackpadZoomFactor()
void setButtonState(const OD::ButtonState &)
void setPos(const Geom::Point2D< double > &)
MouseEvent * event_
Definition: mouseevent.h:217
PointerType
Definition: mouseevent.h:35
float angle_
Definition: mouseevent.h:269
MouseEvent(OD::ButtonState st, double xx, double yy, float aa=0)
Definition: mouseevent.h:95
const MouseEvent & event() const
Definition: mouseevent.h:207
float postPressDist() const
Stores event information from gesture event.
Definition: mouseevent.h:248
void setPressed(bool yn)
Definition: mouseevent.h:116
#define od_int64
Definition: plftypes.h:35
static TabletInfo & latestState()
Notifier< MouseEventHandler > wheelMove
Definition: mouseevent.h:204
bool ishandled_
Definition: mouseevent.h:320
TabletInfo * tabletinfo_
Definition: mouseevent.h:152
static float getDefaultMouseWheelZoomFactor()
#define mExpClass(module)
Definition: commondefs.h:177
OD::ButtonState butstate_
Definition: mouseevent.h:147
int x() const
Definition: mouseevent.h:256
const TabletInfo * tabletInfo() const
static const TabletInfo * currentState()
TrcKeyValue trkv_
Definition: mouseevent.h:238
GestureEvent(int xx, int yy, float sc, float angl)
Definition: mouseevent.h:250
od_int64 uniqueid_
Definition: mouseevent.h:49
TabletDevice device_
Definition: mouseevent.h:40
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
void triggerPinchEvent(const GestureEvent &pinchevnt)
Only available during events.
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:81
Handles gesture event and triggers notifier with GestureEventInfo.
Definition: mouseevent.h:302
ButtonState
Definition: keyenum.h:20
int postPressTime() const
void setEvent(const MouseEvent *)
void triggerWheel(const MouseEvent &)
int xtilt_
Definition: mouseevent.h:51
bool pressed_
Definition: mouseevent.h:148
MouseEvent(OD::ButtonState st, float xx, float yy, float aa=0)
Definition: mouseevent.h:85
PointerType pointertype_
Definition: mouseevent.h:36
Geom::Point2D< int > pos_
Definition: mouseevent.h:267
const GestureEvent * currentevent_
Definition: mouseevent.h:319
EventType
Definition: mouseevent.h:29
CNotifier< MouseCursorExchange, const Info & > notifier
Definition: mouseevent.h:242
Geom::Point2D< double > dpos_
Definition: mouseevent.h:150
Geom::Point2D< int > globalpresspos_
Definition: mouseevent.h:65
int presstimestamp_
Definition: mouseevent.h:63
State
Definition: mouseevent.h:261
void triggerButtonReleased(const MouseEvent &)
bool hasEvent() const
Definition: mouseevent.h:206
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:90
int z_
Definition: mouseevent.h:53
float angle() const
Definition: mouseevent.h:259
Definition: trckeyvalue.h:27
Definition: mouseevent.h:233
const GestureEvent * getPinchEventInfo() const
float scale() const
Definition: mouseevent.h:258
State getState() const
Definition: mouseevent.h:262
int y() const
Definition: mouseevent.h:257
float offset_
Definition: mouseevent.h:239
const Geom::Point2D< int > & pos() const
Definition: mouseevent.h:255
MouseEvent(OD::ButtonState st=OD::NoButton, int xx=0, int yy=0, float aa=0)
Definition: mouseevent.h:76
void setState(State st)
Definition: mouseevent.h:263
float maxPostPressDist() const
Notifier< MouseEventHandler > buttonPressed
Definition: mouseevent.h:200
Geom::Point2D< int > pos_
Definition: mouseevent.h:149
Notifier< MouseEventHandler > doubleClick
Definition: mouseevent.h:203
double pressure_
Definition: mouseevent.h:45
Geom::Point2D< int > pos_
Definition: mouseevent.h:43
@ None
Definition: networkcommon.h:33
Definition: mouseevent.h:189
void setHandled(bool yn)
Definition: mouseevent.h:212
@ NoButton
Qt's mouse/keyboard state values.
Definition: keyenum.h:21
State state_
Definition: mouseevent.h:270
bool isHandled() const
Definition: mouseevent.h:211
Definition: mouseevent.h:23
float angle() const
used for wheel events
Definition: mouseevent.h:124
float maxpostpressdist_
Definition: mouseevent.h:64
void setXY(TT xx, TT yy)
Definition: geometry.h:287
bool isHandled() const
Definition: mouseevent.h:312
@ UnknownPointer
Definition: mouseevent.h:35
TabletInfo * tabletInfo()
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:274
Info(const TrcKeyValue &, float offset=mUdf(float))
EventType eventtype_
Definition: mouseevent.h:31
Definition: mouseevent.h:229
double tangentialpressure_
Definition: mouseevent.h:47
Notifier< GestureEventHandler > pinchnotifier
Definition: mouseevent.h:315
Geom::Point2D< int > globalpos_
Definition: mouseevent.h:42
int x() const
Definition: mouseevent.h:122
Notifier< MouseEventHandler > buttonReleased
Definition: mouseevent.h:201
void triggerDoubleClick(const MouseEvent &)
bool middleButton() const
OD::ButtonState buttonState() const
Definition: mouseevent.h:112
const Geom::Point2D< double > & getDPos() const
bool isPressed() const
Definition: mouseevent.h:115
float scale_
Definition: mouseevent.h:268
MouseEvent(const MouseEvent &me)
Definition: mouseevent.h:105
Definition: mouseevent.h:73
int ytilt_
Definition: mouseevent.h:52
void triggerMovement(const MouseEvent &)
Notifier< MouseEventHandler > movement
Definition: mouseevent.h:202
void setHandled(bool yn)
Definition: mouseevent.h:313
void triggerButtonPressed(const MouseEvent &)
double rotation_
Definition: mouseevent.h:46
Notifier with automatic capsule creation.
Definition: notify.h:171
void setTabletInfo(const TabletInfo *)
MouseEvent & operator=(const MouseEvent &)
Geom::Point2D< float > getFPos() const
int y() const
Definition: mouseevent.h:123
const Geom::Point2D< int > & pos() const
Definition: mouseevent.h:119
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021