MAK RTIspy API Documentation for HLA Evolved
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) 2017 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#include <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
};
Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (
www.mak.com
)