v2.0.0
Loading...
Searching...
No Matches
averagescene.h
Go to the documentation of this file.
1//=============================================================================================================
20
21#ifndef AVERAGESCENE_H
22#define AVERAGESCENE_H
23
24//=============================================================================================================
25// INCLUDES
26//=============================================================================================================
27
28#include "../../disp_global.h"
29
30#include "layoutscene.h"
31
32//=============================================================================================================
33// QT INCLUDES
34//=============================================================================================================
35
36#include <QMap>
37
38//=============================================================================================================
39// EIGEN INCLUDES
40//=============================================================================================================
41
42//=============================================================================================================
43// DEFINE NAMESPACE DISPLIB
44//=============================================================================================================
45
46namespace DISPLIB
47{
48
49//=============================================================================================================
50// FORWARD DECLARATIONS
51//=============================================================================================================
52
54class SelectionItem;
55
56//=============================================================================================================
65{
66 Q_OBJECT
67
68public:
69 typedef QSharedPointer<AverageScene> SPtr;
70 typedef QSharedPointer<const AverageScene> ConstSPtr;
71
72 //=========================================================================================================
76 explicit AverageScene(QGraphicsView* view, QObject *parent = 0);
77
78 //=========================================================================================================
84 void setScaleMap(const QMap<qint32, float> &scaleMap);
85
86 //=========================================================================================================
92 void repaintItems(const QList<QGraphicsItem*> &selectedChannelItems);
93
94 //=========================================================================================================
100 void repaintSelectionItems(const DISPLIB::SelectionItem &selectedChannelItems);
101
102 //=========================================================================================================
106 void updateScene();
107
108 //=========================================================================================================
114 void setActivationPerAverage(const QSharedPointer<QMap<QString, bool> > qMapActivationPerAverage);
115
116 //=========================================================================================================
122 void setColorPerAverage(const QSharedPointer<QMap<QString, QColor> > qMapAverageColor);
123
124 //=========================================================================================================
130 const QColor& getSignalColorForAllItems();
131
132 //=========================================================================================================
138 void setSignalItemColor(const QColor &signalColor);
139
140private:
141 QColor m_colGlobalItemSignalColor;
142 QMap<qint32, float> m_qMapChScaling;
143
144 QList<SelectionSceneItem*> m_lSelectedChannelItems;
145};
146} // NAMESPACE DISPLIB
147
148#endif // AverageScene_H
Base QGraphicsScene providing pan, pinch-zoom and swipe gesture handling for the sensor-layout scenes...
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
2-D display widgets and visualisation helpers (charts, topography, colour maps).
void setScaleMap(const QMap< qint32, float > &scaleMap)
void setSignalItemColor(const QColor &signalColor)
void repaintSelectionItems(const DISPLIB::SelectionItem &selectedChannelItems)
AverageScene(QGraphicsView *view, QObject *parent=0)
void setColorPerAverage(const QSharedPointer< QMap< QString, QColor > > qMapAverageColor)
const QColor & getSignalColorForAllItems()
QSharedPointer< AverageScene > SPtr
void repaintItems(const QList< QGraphicsItem * > &selectedChannelItems)
void setActivationPerAverage(const QSharedPointer< QMap< QString, bool > > qMapActivationPerAverage)
QSharedPointer< const AverageScene > ConstSPtr
LayoutScene(QGraphicsView *view, QObject *parent=0)
Value type describing one named selection group (label + list of channel names).
Graphics item representing a selectable electrode or channel in a 2-D layout scene.