MNE-CPP  beta 1.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
XDISPLIB::LayoutScene Class Reference

The LayoutScene class provides a reimplemented QGraphicsScene for 2D layout plotting. This class handles all the user interaction features (subclass in order to use). More...

#include <layoutscene.h>

Inheritance diagram for XDISPLIB::LayoutScene:
XDISPLIB::SelectionScene

Public Member Functions

 LayoutScene (QGraphicsView *view, QObject *parent=0)
 

Protected Member Functions

void wheelEvent (QGraphicsSceneWheelEvent *event)
 
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *mouseEvent)
 
void mousePressEvent (QGraphicsSceneMouseEvent *mouseEvent)
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *mouseEvent)
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *mouseEvent)
 
void keyPressEvent (QKeyEvent *keyEvent)
 
void keyReleaseEvent (QKeyEvent *keyEvent)
 
bool event (QEvent *event)
 
bool gestureEvent (QGestureEvent *event)
 
void panTriggered (QPanGesture *)
 
void pinchTriggered (QPinchGesture *)
 
void swipeTriggered (QSwipeGesture *)
 
bool eventFilter (QObject *object, QEvent *event)
 

Protected Attributes

QGraphicsView * m_qvView
 
bool m_bDragMode
 
QPointF m_mousePressPosition
 

Detailed Description

The LayoutScene class provides a reimplemented QGraphicsScene for 2D layout plotting. This class handles all the user interaction features (subclass in order to use).

LayoutScene...

Definition at line 81 of file layoutscene.h.

Constructor & Destructor Documentation

LayoutScene::LayoutScene ( QGraphicsView *  view,
QObject *  parent = 0 
)

Constructs a LayoutScene.

Definition at line 59 of file layoutscene.cpp.

Member Function Documentation

bool LayoutScene::event ( QEvent *  event)
protected

reimplemented event function - intercepts touch gestures

Definition at line 209 of file layoutscene.cpp.

bool LayoutScene::eventFilter ( QObject *  object,
QEvent *  event 
)
protected

Installed event filter.

Parameters
[in]objthe qt object for which the event was intercpeted
[in]eventthe current event

Definition at line 265 of file layoutscene.cpp.

bool LayoutScene::gestureEvent ( QGestureEvent *  event)
protected

gestureEvent processes gesture events

Definition at line 227 of file layoutscene.cpp.

void LayoutScene::keyPressEvent ( QKeyEvent *  keyEvent)
protected

Reimplemented key press event.

Definition at line 187 of file layoutscene.cpp.

void LayoutScene::keyReleaseEvent ( QKeyEvent *  keyEvent)
protected

Reimplemented key release event.

Definition at line 198 of file layoutscene.cpp.

void LayoutScene::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
protected

Reimplemented double mouse press event.

Definition at line 92 of file layoutscene.cpp.

void LayoutScene::mouseMoveEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
protected

Reimplemented double mouse move event.

Definition at line 130 of file layoutscene.cpp.

void LayoutScene::mousePressEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
protected

Reimplemented mouse press event.

Definition at line 103 of file layoutscene.cpp.

void LayoutScene::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
protected

Reimplemented double mouse release event.

Definition at line 148 of file layoutscene.cpp.

void LayoutScene::panTriggered ( QPanGesture *  gesture)
protected

pinchTriggered processes pan gesture events

Definition at line 243 of file layoutscene.cpp.

void LayoutScene::pinchTriggered ( QPinchGesture *  gesture)
protected

pinchTriggered processes pinch gesture events

Definition at line 255 of file layoutscene.cpp.

void XDISPLIB::LayoutScene::swipeTriggered ( QSwipeGesture *  )
protected

pinchTriggered processes swipe gesture events

void LayoutScene::wheelEvent ( QGraphicsSceneWheelEvent *  event)
protected

Reimplemented wheel event.

Definition at line 75 of file layoutscene.cpp.

Member Data Documentation

bool XDISPLIB::LayoutScene::m_bDragMode
protected

Flag whether the drag mode is activated.

Definition at line 94 of file layoutscene.h.

QPointF XDISPLIB::LayoutScene::m_mousePressPosition
protected

The current mouse press location.

Definition at line 96 of file layoutscene.h.

QGraphicsView* XDISPLIB::LayoutScene::m_qvView
protected

The view which visualizes this scene.

Definition at line 93 of file layoutscene.h.


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