QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RTabletEvent.h
Go to the documentation of this file.
1
20#ifndef RTABLETEVENT_H
21#define RTABLETEVENT_H
22
23#include "core_global.h"
24
25#include <QTabletEvent>
26
27#include "RVector.h"
28
29class RGraphicsScene;
30class RGraphicsView;
31
32
33
43class QCADCORE_EXPORT RTabletEvent: public QTabletEvent {
44public:
45 /*
46 RTabletEvent(
47 QEvent::Type type,
48 const RVector& position,
49 int device,
50 int pointerType,
51 qreal pressure,
52 int xTilt,
53 int yTilt,
54 qreal tangentialPressure,
55 qreal rotation,
56 int z,
57 Qt::KeyboardModifiers keyState,
58 qint64 uniqueID,
59 RGraphicsScene& s,
60 RGraphicsView& v);
61 */
62
64 const QTabletEvent& tabletEvent,
67 );
68
69 virtual ~RTabletEvent();
70
71 RVector getModelPosition() const;
72 RVector getUcsPosition() const;
73 RVector getScreenPosition() const;
74
76 RGraphicsScene& getGraphicsScene() const;
77
78protected:
82
85};
86
88
89#endif
Q_DECLARE_METATYPE(RMath *)
Abstract base class for all graphics scenes.
Definition RGraphicsScene.h:64
Graphics view.
Definition RGraphicsView.h:67
A tablet event for a graphics scene.
Definition RTabletEvent.h:43
RVector modelPosition
Definition RTabletEvent.h:79
RVector ucsPosition
Definition RTabletEvent.h:80
RVector screenPosition
Definition RTabletEvent.h:81
RGraphicsView & view
Definition RTabletEvent.h:84
RGraphicsScene & scene
Definition RTabletEvent.h:83
Represents a 3d vector (x/y/z).
Definition RVector.h:47
#define QCADCORE_EXPORT
Definition core_global.h:10
void getGraphicsView()
Returns the current or last active RGraphicsView.
Definition simple.js:32
char s
Definition opennurbs_string.cpp:32