MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DISPLIB::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>

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).

DECLARE CLASS LayoutScene

Definition at line 81 of file layoutscene.h.

Inheritance diagram for DISPLIB::LayoutScene:
Inheritance graph

Constructor & Destructor Documentation

◆ LayoutScene()

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

Constructs a LayoutScene.

Definition at line 62 of file layoutscene.cpp.

Member Function Documentation

◆ event()

bool LayoutScene::event ( QEvent *  event)
protected

reimplemented event function - intercepts touch gestures

Definition at line 205 of file layoutscene.cpp.

◆ eventFilter()

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 256 of file layoutscene.cpp.

◆ gestureEvent()

bool LayoutScene::gestureEvent ( QGestureEvent *  event)
protected

gestureEvent processes gesture events

Definition at line 223 of file layoutscene.cpp.

◆ keyPressEvent()

void LayoutScene::keyPressEvent ( QKeyEvent *  keyEvent)
protected

Reimplemented key press event.

Definition at line 185 of file layoutscene.cpp.

◆ keyReleaseEvent()

void LayoutScene::keyReleaseEvent ( QKeyEvent *  keyEvent)
protected

Reimplemented key release event.

Definition at line 195 of file layoutscene.cpp.

◆ mouseDoubleClickEvent()

void LayoutScene::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
protected

Reimplemented double mouse press event.

Definition at line 94 of file layoutscene.cpp.

◆ mouseMoveEvent()

void LayoutScene::mouseMoveEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
protected

Reimplemented double mouse move event.

Definition at line 130 of file layoutscene.cpp.

◆ mousePressEvent()

void LayoutScene::mousePressEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
protected

Reimplemented mouse press event.

Definition at line 104 of file layoutscene.cpp.

◆ mouseReleaseEvent()

void LayoutScene::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
protected

Reimplemented double mouse release event.

Definition at line 147 of file layoutscene.cpp.

◆ panTriggered()

void LayoutScene::panTriggered ( QPanGesture *  gesture)
protected

pinchTriggered processes pan gesture events

Definition at line 238 of file layoutscene.cpp.

◆ pinchTriggered()

void LayoutScene::pinchTriggered ( QPinchGesture *  gesture)
protected

pinchTriggered processes pinch gesture events

Definition at line 248 of file layoutscene.cpp.

◆ swipeTriggered()

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

pinchTriggered processes swipe gesture events

◆ wheelEvent()

void LayoutScene::wheelEvent ( QGraphicsSceneWheelEvent *  event)
protected

Reimplemented wheel event.

Definition at line 78 of file layoutscene.cpp.

Member Data Documentation

◆ m_bDragMode

bool DISPLIB::LayoutScene::m_bDragMode
protected

Flag whether the drag mode is activated.

Definition at line 178 of file layoutscene.h.

◆ m_mousePressPosition

QPointF DISPLIB::LayoutScene::m_mousePressPosition
protected

The current mouse press location.

Definition at line 180 of file layoutscene.h.

◆ m_qvView

QGraphicsView* DISPLIB::LayoutScene::m_qvView
protected

The view which visualizes this scene.

Definition at line 175 of file layoutscene.h.


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