v2.0.0
Loading...
Searching...
No Matches
averagelayoutview.h
Go to the documentation of this file.
1//=============================================================================================================
23
24#ifndef AVERAGELAYOUTVIEW_H
25#define AVERAGELAYOUTVIEW_H
26
27//=============================================================================================================
28// INCLUDES
29//=============================================================================================================
30
31#include "../disp_global.h"
32#include "abstractview.h"
33
34//=============================================================================================================
35// QT INCLUDES
36//=============================================================================================================
37
38#include <QPointer>
39#include <QMap>
40
41//=============================================================================================================
42// FORWARD DECLARATIONS
43//=============================================================================================================
44
45class QGraphicsView;
46class QGraphicsItem;
47
48namespace FIFFLIB
49{
50class FiffInfo;
51}
52
53//=============================================================================================================
54// DEFINE NAMESPACE DISPLIB
55//=============================================================================================================
56
57namespace DISPLIB
58{
59
60//=============================================================================================================
61// DISPLIB FORWARD DECLARATIONS
62//=============================================================================================================
63
64class AverageScene;
65class EvokedSetModel;
67class SelectionItem;
68
69//=============================================================================================================
79{
80 Q_OBJECT
81
82public:
83 typedef QSharedPointer<AverageLayoutView> SPtr;
84 typedef QSharedPointer<const AverageLayoutView> ConstSPtr;
85
86 //=========================================================================================================
94 AverageLayoutView(const QString& sSettingsPath = "",
95 QWidget* parent = 0,
96 Qt::WindowFlags f = Qt::Widget);
97
98 //=========================================================================================================
103
104 //=========================================================================================================
109 void updateViewport();
110
111 //=========================================================================================================
117 void setChannelInfoModel(QSharedPointer<ChannelInfoModel>& pChannelInfoModel);
118
119 //=========================================================================================================
125 void setEvokedSetModel(QSharedPointer<EvokedSetModel> pEvokedSetModel);
126
127 //=========================================================================================================
133 QSharedPointer<EvokedSetModel> getEvokedSetModel();
134
135 //=========================================================================================================
141 void setBackgroundColor(const QColor& backgroundColor);
142
143 //=========================================================================================================
149 QColor getBackgroundColor();
150
151 //=========================================================================================================
157 void takeScreenshot(const QString& fileName);
158
159 //=========================================================================================================
165 void setScaleMap(const QMap<qint32, float>& scaleMap);
166
167 //=========================================================================================================
173 QSharedPointer<QMap<QString, QColor>> getAverageColor() const;
174
175 //=========================================================================================================
181 QSharedPointer<QMap<QString, bool>> getAverageActivation() const;
182
183 //=========================================================================================================
189 void setAverageColor(const QSharedPointer<QMap<QString, QColor>> qMapAverageColor);
190
191 //=========================================================================================================
197 void setSingleAverageColor(const QColor& avgColor);
198
199 //=========================================================================================================
205 void setAverageActivation(const QSharedPointer<QMap<QString, bool>> qMapAverageActivation);
206
207 //=========================================================================================================
213 void setFiffInfo(const QSharedPointer<FIFFLIB::FiffInfo> pFiffInfo);
214
215 //=========================================================================================================
221 void channelSelectionManagerChanged(const QList<QGraphicsItem*>& selectedChannelItems);
222
223 //=========================================================================================================
229 void channelSelectionChanged(const QVariant& selectionData);
230
231 //=========================================================================================================
235 void updateData();
236
237 //=========================================================================================================
241 void saveSettings();
242
243 //=========================================================================================================
247 void loadSettings();
248
249 //=========================================================================================================
253 void clearView();
254
255protected:
256 //=========================================================================================================
262 void updateGuiMode(GuiMode mode);
263
264 //=========================================================================================================
271
272 QSharedPointer<AverageScene> m_pAverageScene;
273 QSharedPointer<DISPLIB::EvokedSetModel> m_pEvokedSetModel;
274 QSharedPointer<DISPLIB::ChannelInfoModel> m_pChannelInfoModel;
275
276 QSharedPointer<FIFFLIB::FiffInfo> m_pFiffInfo;
277
278 QPointer<QGraphicsView> m_pAverageLayoutView;
279
280 QSharedPointer<QMap<QString, QColor>> m_qMapAverageColor;
281 QSharedPointer<QMap<QString, bool>> m_qMapAverageActivation;
282 QMap<qint32, float> m_scaleMap;
283};
284} // NAMESPACE
285
286#endif // AVERAGELAYOUTVIEW_H
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
Common base widget for every dockable Quick-Control settings panel in DISPLIB.
FIFF file I/O, in-memory data structures and high-level readers/writers.
2-D display widgets and visualisation helpers (charts, topography, colour maps).
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void setBackgroundColor(const QColor &backgroundColor)
QSharedPointer< AverageLayoutView > SPtr
void setEvokedSetModel(QSharedPointer< EvokedSetModel > pEvokedSetModel)
void setChannelInfoModel(QSharedPointer< ChannelInfoModel > &pChannelInfoModel)
QSharedPointer< QMap< QString, bool > > getAverageActivation() const
QSharedPointer< FIFFLIB::FiffInfo > m_pFiffInfo
QSharedPointer< DISPLIB::EvokedSetModel > m_pEvokedSetModel
QMap< qint32, float > m_scaleMap
void setAverageColor(const QSharedPointer< QMap< QString, QColor > > qMapAverageColor)
QPointer< QGraphicsView > m_pAverageLayoutView
QSharedPointer< AverageScene > m_pAverageScene
QSharedPointer< QMap< QString, QColor > > m_qMapAverageColor
QSharedPointer< QMap< QString, QColor > > getAverageColor() const
void channelSelectionChanged(const QVariant &selectionData)
QSharedPointer< QMap< QString, bool > > m_qMapAverageActivation
void setScaleMap(const QMap< qint32, float > &scaleMap)
void takeScreenshot(const QString &fileName)
void setAverageActivation(const QSharedPointer< QMap< QString, bool > > qMapAverageActivation)
QSharedPointer< DISPLIB::ChannelInfoModel > m_pChannelInfoModel
void setFiffInfo(const QSharedPointer< FIFFLIB::FiffInfo > pFiffInfo)
QSharedPointer< const AverageLayoutView > ConstSPtr
AverageLayoutView(const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void updateProcessingMode(ProcessingMode mode)
void channelSelectionManagerChanged(const QList< QGraphicsItem * > &selectedChannelItems)
void setSingleAverageColor(const QColor &avgColor)
QSharedPointer< EvokedSetModel > getEvokedSetModel()
Sensor-layout QGraphicsScene placing one AverageSceneItem per visible channel.
QAbstractTableModel exposing per-channel FIFF metadata (name, type, unit, position,...
QAbstractTableModel wrapping a FiffEvokedSet (one row per channel, one column per condition).
Value type describing one named selection group (label + list of channel names).
Full FIFF measurement info: per-channel descriptors, sampling and filter setup, projectors,...
Definition fiff_info.h:90