QCAD Application Framework
CAD Application Development and Automation.
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
RTabletEvent.h
Go to the documentation of this file.
1
#ifndef RTABLETEVENT_H
2
#define RTABLETEVENT_H
3
4
#include <QTabletEvent>
5
6
#include "
RVector.h
"
7
8
class
RGraphicsScene
;
9
class
RGraphicsView
;
10
11
12
22
class
RTabletEvent
:
public
QTabletEvent {
23
public
:
24
/*
25
RTabletEvent(
26
QEvent::Type type,
27
const RVector& position,
28
int device,
29
int pointerType,
30
qreal pressure,
31
int xTilt,
32
int yTilt,
33
qreal tangentialPressure,
34
qreal rotation,
35
int z,
36
Qt::KeyboardModifiers keyState,
37
qint64 uniqueID,
38
RGraphicsScene& s,
39
RGraphicsView& v);
40
*/
41
42
RTabletEvent
(
43
const
QTabletEvent& tabletEvent,
44
RGraphicsScene
& s,
45
RGraphicsView
& v
46
);
47
48
virtual
~RTabletEvent
();
49
50
RVector
getModelPosition
()
const
;
51
RVector
getUcsPosition
()
const
;
52
RVector
getScreenPosition
()
const
;
53
54
RGraphicsView
&
getGraphicsView
()
const
;
55
RGraphicsScene
&
getGraphicsScene
()
const
;
56
57
protected
:
58
RVector
modelPosition
;
59
RVector
ucsPosition
;
60
RVector
screenPosition
;
61
62
RGraphicsScene
&
scene
;
63
RGraphicsView
&
view
;
64
};
65
66
Q_DECLARE_METATYPE
(
RTabletEvent
*)
67
68
#endif
src
core
RTabletEvent.h
Generated on Tue Jun 26 2012 18:41:07 for QCAD Application Framework by
1.8.1.1