MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The AverageScene class provides a reimplemented QGraphicsScene for 2D layout plotting. More...
#include <averagescene.h>
Public Types | |
typedef QSharedPointer< AverageScene > | SPtr |
typedef QSharedPointer< const AverageScene > | ConstSPtr |
Public Member Functions | |
AverageScene (QGraphicsView *view, QObject *parent=0) | |
void | setScaleMap (const QMap< qint32, float > &scaleMap) |
void | repaintItems (const QList< QGraphicsItem * > &selectedChannelItems) |
void | repaintSelectionItems (const DISPLIB::SelectionItem &selectedChannelItems) |
void | updateScene () |
void | setActivationPerAverage (const QSharedPointer< QMap< QString, bool > > qMapActivationPerAverage) |
void | setColorPerAverage (const QSharedPointer< QMap< QString, QColor > > qMapAverageColor) |
const QColor & | getSignalColorForAllItems () |
void | setSignalItemColor (const QColor &signalColor) |
Public Member Functions inherited from DISPLIB::LayoutScene | |
LayoutScene (QGraphicsView *view, QObject *parent=0) | |
Additional Inherited Members | |
Protected Member Functions inherited from DISPLIB::LayoutScene | |
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 inherited from DISPLIB::LayoutScene | |
QGraphicsView * | m_qvView |
bool | m_bDragMode |
QPointF | m_mousePressPosition |
The AverageScene class provides a reimplemented QGraphicsScene for 2D layout plotting.
DECLARE CLASS AverageScene
Definition at line 75 of file averagescene.h.
typedef QSharedPointer<const AverageScene> DISPLIB::AverageScene::ConstSPtr |
Const shared pointer type for AverageScene.
Definition at line 81 of file averagescene.h.
typedef QSharedPointer<AverageScene> DISPLIB::AverageScene::SPtr |
Shared pointer type for AverageScene.
Definition at line 80 of file averagescene.h.
|
explicit |
Constructs a AverageScene.
Definition at line 63 of file averagescene.cpp.
const QColor & AverageScene::getSignalColorForAllItems | ( | ) |
Set the signal color for all items in the scene
Definition at line 160 of file averagescene.cpp.
void AverageScene::repaintItems | ( | const QList< QGraphicsItem * > & | selectedChannelItems | ) |
Repaints all items from the layout data in the scene.
[in] | selectedChannelItems | items which are to painted to the average scene |
Definition at line 86 of file averagescene.cpp.
void AverageScene::repaintSelectionItems | ( | const DISPLIB::SelectionItem & | selectedChannelItems | ) |
Repaints all items from the layout data in the scene from a SelectionItem object
[in] | selectedChannelItems | data about items which are to be painted. |
Definition at line 110 of file averagescene.cpp.
void AverageScene::setActivationPerAverage | ( | const QSharedPointer< QMap< QString, bool > > | qMapActivationPerAverage | ) |
Set the activation per average map information
[in] | qMapActivationPerAverage | The average activation information. |
Definition at line 130 of file averagescene.cpp.
void AverageScene::setColorPerAverage | ( | const QSharedPointer< QMap< QString, QColor > > | qMapAverageColor | ) |
Set the color per average map information
[in] | qMapAverageColor | The average color information. |
Definition at line 145 of file averagescene.cpp.
void AverageScene::setScaleMap | ( | const QMap< qint32, float > & | scaleMap | ) |
Sets the scale map to scaleMap.
[in] | scaleMap | map with all channel types and their current scaling value. |
Definition at line 71 of file averagescene.cpp.
void AverageScene::setSignalItemColor | ( | const QColor & | signalColor | ) |
Sets the signal color for the items the scene holds
[in] | signalColor. |
Definition at line 174 of file averagescene.cpp.
void AverageScene::updateScene | ( | ) |
Updates and repaints the scene
Definition at line 167 of file averagescene.cpp.