MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
averagescene.h
Go to the documentation of this file.
1//=============================================================================================================
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
66class SelectionSceneItem;
67class SelectionItem;
68
69//=============================================================================================================
76{
77 Q_OBJECT
78
79public:
80 typedef QSharedPointer<AverageScene> SPtr;
81 typedef QSharedPointer<const AverageScene> ConstSPtr;
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;
154 QList<SelectionSceneItem*> m_lSelectedChannelItems;
155};
156} // NAMESPACE DISPLIB
157
158#endif // AverageScene_H
Contains the declaration of the LayoutScene class.
#define DISPSHARED_EXPORT
Definition disp_global.h:55
The AverageScene class provides a reimplemented QGraphicsScene for 2D layout plotting.
QSharedPointer< AverageScene > SPtr
QSharedPointer< const AverageScene > ConstSPtr
The LayoutScene class provides a reimplemented QGraphicsScene for 2D layout plotting....
Definition layoutscene.h:82
The SelectionSceneItem class provides a new data structure for visualizing channels in a 2D layout.