direcs  2012-09-30
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
laserScene.h
Go to the documentation of this file.
1 /*************************************************************************
2  * Copyright (C) Markus Knapp *
3  * www.direcs.de *
4  * *
5  * This file is part of direcs. *
6  * *
7  * direcs is free software: you can redistribute it and/or modify it *
8  * under the terms of the GNU General Public License as published *
9  * by the Free Software Foundation, version 3 of the License. *
10  * *
11  * direcs is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with direcs. If not, see <http://www.gnu.org/licenses/>. *
18  * *
19  *************************************************************************/
20 
21 #ifndef LASERSCENE_H
22 #define LASERSCENE_H
23 
24 #include <QtGui>
25 
26 
33 class LaserScene : public QGraphicsScene
34 {
35  Q_OBJECT
36 
37  public:
38  LaserScene(QObject* parent = 0);
39  ~LaserScene();
40 
41  signals:
46  void robotPositionChanged(QGraphicsSceneMouseEvent* mouseEvent);
47 
52  void wheelZoom(QGraphicsSceneWheelEvent* wheelEvent);
53 
54 
55  protected:
59  void mousePressEvent(QGraphicsSceneMouseEvent* mouseEvent);
60 
64  void mouseMoveEvent(QGraphicsSceneMouseEvent* mouseEvent);
65 
69  void mouseReleaseEvent(QGraphicsSceneMouseEvent* mouseEvent);
70 
74  void wheelEvent(QGraphicsSceneWheelEvent* wheelEvent);
75 
79  void contextMenuEvent(QGraphicsSceneContextMenuEvent* event);
80 
84  void keyPressEvent(QKeyEvent* keyEvent);
85 };
86 
87 #endif