v2.0.0
Loading...
Searching...
No Matches
averagescene.h
Go to the documentation of this file.
1//=============================================================================================================
35
36#ifndef AVERAGESCENE_H
37#define AVERAGESCENE_H
38
39//=============================================================================================================
40// INCLUDES
41//=============================================================================================================
42
43#include "../../disp_global.h"
44
45#include "layoutscene.h"
46
47//=============================================================================================================
48// QT INCLUDES
49//=============================================================================================================
50
51//=============================================================================================================
52// EIGEN INCLUDES
53//=============================================================================================================
54
55//=============================================================================================================
56// DEFINE NAMESPACE DISPLIB
57//=============================================================================================================
58
59namespace DISPLIB
60{
61
62//=============================================================================================================
63// FORWARD DECLARATIONS
64//=============================================================================================================
65
67class SelectionItem;
68
69//=============================================================================================================
76{
77 Q_OBJECT
78
79public:
80 typedef QSharedPointer<AverageScene> SPtr;
81 typedef QSharedPointer<const AverageScene> ConstSPtr;
82
83 //=========================================================================================================
87 explicit AverageScene(QGraphicsView* view, QObject *parent = 0);
88
89 //=========================================================================================================
95 void setScaleMap(const QMap<qint32, float> &scaleMap);
96
97 //=========================================================================================================
103 void repaintItems(const QList<QGraphicsItem*> &selectedChannelItems);
104
105 //=========================================================================================================
111 void repaintSelectionItems(const DISPLIB::SelectionItem &selectedChannelItems);
112
113 //=========================================================================================================
117 void updateScene();
118
119 //=========================================================================================================
125 void setActivationPerAverage(const QSharedPointer<QMap<QString, bool> > qMapActivationPerAverage);
126
127 //=========================================================================================================
133 void setColorPerAverage(const QSharedPointer<QMap<QString, QColor> > qMapAverageColor);
134
135 //=========================================================================================================
141 const QColor& getSignalColorForAllItems();
142
143 //=========================================================================================================
149 void setSignalItemColor(const QColor &signalColor);
150
151private:
152 QColor m_colGlobalItemSignalColor;
153
154 QList<SelectionSceneItem*> m_lSelectedChannelItems;
155};
156} // NAMESPACE DISPLIB
157
158#endif // AverageScene_H
Contains the declaration of the LayoutScene class.
disp library export/import macros.
#define DISPSHARED_EXPORT
Definition disp_global.h:51
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)
The SelectionSceneItem class provides a new data structure for visualizing channels in a 2D layout.
Graphics item representing a selectable electrode or channel in a 2-D layout scene.