direcs  2012-09-30
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
LaserScene Class Reference

This specialised version of QGraphicsScene is able to react to mouse events. More...

#include <laserScene.h>

List of all members.

Signals

void robotPositionChanged (QGraphicsSceneMouseEvent *mouseEvent)
void wheelZoom (QGraphicsSceneWheelEvent *wheelEvent)

Public Member Functions

 LaserScene (QObject *parent=0)
 ~LaserScene ()

Protected Member Functions

void contextMenuEvent (QGraphicsSceneContextMenuEvent *event)
void keyPressEvent (QKeyEvent *keyEvent)
void mouseMoveEvent (QGraphicsSceneMouseEvent *mouseEvent)
void mousePressEvent (QGraphicsSceneMouseEvent *mouseEvent)
void mouseReleaseEvent (QGraphicsSceneMouseEvent *mouseEvent)
void wheelEvent (QGraphicsSceneWheelEvent *wheelEvent)

Detailed Description

This specialised version of QGraphicsScene is able to react to mouse events.

Author:
Markus Knapp This specialised version of QGraphicsScene is able to react to different mouse events in order to provide direct user interaction.

Definition at line 33 of file laserScene.h.


Constructor & Destructor Documentation

LaserScene::LaserScene ( QObject *  parent = 0)

Definition at line 24 of file laserScene.cpp.

LaserScene::~LaserScene ( )

Definition at line 29 of file laserScene.cpp.


Member Function Documentation

void LaserScene::contextMenuEvent ( QGraphicsSceneContextMenuEvent *  event)
protected

Reimplementation of QGraphicsScene::contextMenuEvent().

Definition at line 77 of file laserScene.cpp.

void LaserScene::keyPressEvent ( QKeyEvent *  keyEvent)
protected

Reimplementation of QGraphicsScene::keyPressEvent().

Definition at line 162 of file laserScene.cpp.

void LaserScene::mouseMoveEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
protected

Reimplementation of QGraphicsView::mouseMoveEvent().

Definition at line 45 of file laserScene.cpp.

Here is the call graph for this function:

void LaserScene::mousePressEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
protected

Reimplementation of QGraphicsView::mousePressEvent().

Definition at line 33 of file laserScene.cpp.

void LaserScene::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
protected

Reimplementation of QGraphicsScene::mouseReleaseEvent().

Definition at line 59 of file laserScene.cpp.

Here is the call graph for this function:

void LaserScene::robotPositionChanged ( QGraphicsSceneMouseEvent *  mouseEvent)
signal

This signal is emitted as soon as the robot's position changed. The position change is triggered by the mouse move event handler.

Here is the caller graph for this function:

void LaserScene::wheelEvent ( QGraphicsSceneWheelEvent *  wheelEvent)
protected

Reimplementation of QGraphicsScene::wheelEventEvent().

Definition at line 68 of file laserScene.cpp.

Here is the call graph for this function:

void LaserScene::wheelZoom ( QGraphicsSceneWheelEvent *  wheelEvent)
signal

This signal is emitted as soon as mosue wheel is used. The wheel event is triggered by the wheel event handler.

Here is the caller graph for this function:


The documentation for this class was generated from the following files: