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
RInputEvent.h
Go to the documentation of this file.
1
#ifndef RINPUTEVENT_H
2
#define RINPUTEVENT_H
3
4
#include <QMouseEvent>
5
6
#include "
RVector.h
"
7
8
class
RGraphicsScene
;
9
class
RGraphicsView
;
10
20
class
RInputEvent
{
21
public
:
22
RInputEvent
(
const
RVector
& position,
RGraphicsScene
& s,
RGraphicsView
& v);
23
virtual
~RInputEvent
();
24
25
RVector
getModelPosition
()
const
;
26
void
setModelPosition
(
const
RVector
& v);
27
// RVector getUcsPosition() const;
28
RVector
getScreenPosition
()
const
;
29
30
RGraphicsView
&
getGraphicsView
()
const
;
31
RGraphicsScene
&
getGraphicsScene
()
const
;
32
36
bool
isValid
()
const
{
37
return
modelPosition
.
valid
;
38
}
39
40
protected
:
41
RVector
modelPosition
;
42
// RVector ucsPosition;
43
RVector
screenPosition
;
44
45
RGraphicsScene
&
scene
;
46
RGraphicsView
&
view
;
47
};
48
49
Q_DECLARE_METATYPE
(
RInputEvent
*)
50
51
#endif
src
core
RInputEvent.h
Generated on Tue Jun 26 2012 18:41:07 for QCAD Application Framework by
1.8.1.1