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 //=========================================================================================================
79 explicit AverageScene(QGraphicsView* view, QObject* parent = 0);
80
81 //=========================================================================================================
87 void setScaleMap(const QMap<qint32, float>& scaleMap);
88
89 //=========================================================================================================
95 void repaintItems(const QList<QGraphicsItem*>& selectedChannelItems);
96
97 //=========================================================================================================
103 void repaintSelectionItems(const DISPLIB::SelectionItem& selectedChannelItems);
104
105 //=========================================================================================================
109 void updateScene();
110
111 //=========================================================================================================
117 void setActivationPerAverage(const QSharedPointer<QMap<QString, bool>> qMapActivationPerAverage);
118
119 //=========================================================================================================
125 void setColorPerAverage(const QSharedPointer<QMap<QString, QColor>> qMapAverageColor);
126
127 //=========================================================================================================
133 const QColor& getSignalColorForAllItems();
134
135 //=========================================================================================================
141 void setSignalItemColor(const QColor& signalColor);
142
143private:
144 QColor m_colGlobalItemSignalColor;
145 QMap<qint32, float> m_qMapChScaling;
146
147 QList<SelectionSceneItem*> m_lSelectedChannelItems;
148};
149} // NAMESPACE DISPLIB
150
151#endif // AverageScene_H
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
Base QGraphicsScene providing pan, pinch-zoom and swipe gesture handling for the sensor-layout scenes...
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.