v2.0.0
Loading...
Searching...
No Matches
DISPLIB::AverageScene Class Reference

The AverageScene class provides a reimplemented QGraphicsScene for 2D layout plotting. More...

#include <averagescene.h>

Public Types

typedef QSharedPointer< AverageSceneSPtr
typedef QSharedPointer< const AverageSceneConstSPtr

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

Detailed Description

The AverageScene class provides a reimplemented QGraphicsScene for 2D layout plotting.

DECLARE CLASS AverageScene

Definition at line 75 of file averagescene.h.

Inheritance diagram for DISPLIB::AverageScene:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const AverageScene> DISPLIB::AverageScene::ConstSPtr

Const shared pointer type for AverageScene.

Definition at line 81 of file averagescene.h.

◆ SPtr

typedef QSharedPointer<AverageScene> DISPLIB::AverageScene::SPtr

Shared pointer type for AverageScene.

Definition at line 80 of file averagescene.h.

Constructor & Destructor Documentation

◆ AverageScene()

AverageScene::AverageScene ( QGraphicsView * view,
QObject * parent = 0 )
explicit

Constructs a AverageScene.

Definition at line 63 of file averagescene.cpp.

Member Function Documentation

◆ getSignalColorForAllItems()

const QColor & AverageScene::getSignalColorForAllItems ( )

Set the signal color for all items in the scene

Returns
The color used for all the itmes' signal paths.

Definition at line 160 of file averagescene.cpp.

◆ repaintItems()

void AverageScene::repaintItems ( const QList< QGraphicsItem * > & selectedChannelItems)

Repaints all items from the layout data in the scene.

Parameters
[in]selectedChannelItemsitems which are to painted to the average scene

Definition at line 86 of file averagescene.cpp.

◆ repaintSelectionItems()

void AverageScene::repaintSelectionItems ( const DISPLIB::SelectionItem & selectedChannelItems)

Repaints all items from the layout data in the scene from a SelectionItem object

Parameters
[in]selectedChannelItemsdata about items which are to be painted.

Definition at line 110 of file averagescene.cpp.

◆ setActivationPerAverage()

void AverageScene::setActivationPerAverage ( const QSharedPointer< QMap< QString, bool > > qMapActivationPerAverage)

Set the activation per average map information

Parameters
[in]qMapActivationPerAverageThe average activation information.

Definition at line 130 of file averagescene.cpp.

◆ setColorPerAverage()

void AverageScene::setColorPerAverage ( const QSharedPointer< QMap< QString, QColor > > qMapAverageColor)

Set the color per average map information

Parameters
[in]qMapAverageColorThe average color information.

Definition at line 145 of file averagescene.cpp.

◆ setScaleMap()

void AverageScene::setScaleMap ( const QMap< qint32, float > & scaleMap)

Sets the scale map to scaleMap.

Parameters
[in]scaleMapmap with all channel types and their current scaling value.

Definition at line 71 of file averagescene.cpp.

◆ setSignalItemColor()

void AverageScene::setSignalItemColor ( const QColor & signalColor)

Sets the signal color for the items the scene holds

Parameters
[in]signalColor.

Definition at line 174 of file averagescene.cpp.

◆ updateScene()

void AverageScene::updateScene ( )

Updates and repaints the scene

Definition at line 167 of file averagescene.cpp.


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