MAK RTIspy API Documentation for HLA 1.3
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
examples
hlaBounce
hlaBounceGraphicsScene.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2010 MaK Technologies, Inc.
3
** All rights reserved.
4
********************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: .h,v $ $Revision: 1.2 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef HlaBounceGraphicsScene_H_
10
#define HlaBounceGraphicsScene_H_
11
12
#include <QtGui/QGraphicsScene>
13
#include <QtCore/QRect>
14
15
class
HlaBounceGraphicsScene
:
public
QGraphicsScene
16
{
17
Q_OBJECT
18
19
public
:
20
21
HlaBounceGraphicsScene
(
QObject
* parent = 0 );
22
HlaBounceGraphicsScene
(
const
QRectF & sceneRect,
QObject
* parent = 0);
23
HlaBounceGraphicsScene
(qreal x, qreal y, qreal width, qreal height,
QObject
* parent = 0);
24
virtual
~HlaBounceGraphicsScene
();
25
26
// Enters/exits the graphics scene into a mode where it will draw a
27
// rectangle when the mouse is down
28
void
setDrawRectangleMode
(
bool
enable);
29
30
// Returns the last rectangle to be drawn
31
QRect
getLastRectangle
() {
return
myLastRectangle
; };
32
33
protected
:
34
35
virtual
void
mousePressEvent
(QGraphicsSceneMouseEvent* mouseEvent);
36
virtual
void
mouseMoveEvent
(QGraphicsSceneMouseEvent* mouseEvent);
37
virtual
void
mouseReleaseEvent
(QGraphicsSceneMouseEvent* mouseEvent);
38
39
signals:
40
41
void
mouseReleased
(
const
QPointF&);
42
43
protected
:
44
45
bool
myDrawRectangle
;
46
QGraphicsRectItem*
myRectangle
;
47
QRect
myLastRectangle
;
48
49
};
50
51
#endif
Document ID: Generated on Mon Mar 21 09:41:37 EDT 2016 from SVN revision 163228
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (
www.mak.com
)