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 class FiffInfo;
50}
51
52//=============================================================================================================
53// DEFINE NAMESPACE DISPLIB
54//=============================================================================================================
55
56namespace DISPLIB
57{
58
59//=============================================================================================================
60// DISPLIB FORWARD DECLARATIONS
61//=============================================================================================================
62
63class AverageScene;
64class EvokedSetModel;
66class SelectionItem;
67
68//=============================================================================================================
78{
79 Q_OBJECT
80
81public:
82 typedef QSharedPointer<AverageLayoutView> SPtr;
83 typedef QSharedPointer<const AverageLayoutView> ConstSPtr;
84
85 //=========================================================================================================
91 AverageLayoutView(const QString& sSettingsPath = "",
92 QWidget *parent = 0,
93 Qt::WindowFlags f = Qt::Widget);
94
95 //=========================================================================================================
100
101 //=========================================================================================================
106 void updateViewport();
107
108 //=========================================================================================================
114 void setChannelInfoModel(QSharedPointer<ChannelInfoModel> &pChannelInfoModel);
115
116 //=========================================================================================================
122 void setEvokedSetModel(QSharedPointer<EvokedSetModel> pEvokedSetModel);
123
124 //=========================================================================================================
130 QSharedPointer<EvokedSetModel> getEvokedSetModel();
131
132 //=========================================================================================================
138 void setBackgroundColor(const QColor& backgroundColor);
139
140 //=========================================================================================================
146 QColor getBackgroundColor();
147
148 //=========================================================================================================
154 void takeScreenshot(const QString& fileName);
155
156 //=========================================================================================================
162 void setScaleMap(const QMap<qint32, float> &scaleMap);
163
164 //=========================================================================================================
170 QSharedPointer<QMap<QString, QColor> > getAverageColor() const;
171
172 //=========================================================================================================
178 QSharedPointer<QMap<QString, bool> > getAverageActivation() const;
179
180 //=========================================================================================================
186 void setAverageColor(const QSharedPointer<QMap<QString, QColor> > qMapAverageColor);
187
188 //=========================================================================================================
194 void setSingleAverageColor(const QColor& avgColor);
195
196 //=========================================================================================================
202 void setAverageActivation(const QSharedPointer<QMap<QString, bool> > qMapAverageActivation);
203
204 //=========================================================================================================
210 void setFiffInfo(const QSharedPointer<FIFFLIB::FiffInfo> pFiffInfo);
211
212 //=========================================================================================================
218 void channelSelectionManagerChanged(const QList<QGraphicsItem *> &selectedChannelItems);
219
220 //=========================================================================================================
226 void channelSelectionChanged(const QVariant &data);
227
228 //=========================================================================================================
232 void updateData();
233
234 //=========================================================================================================
238 void saveSettings();
239
240 //=========================================================================================================
244 void loadSettings();
245
246 //=========================================================================================================
250 void clearView();
251
252protected:
253 //=========================================================================================================
259 void updateGuiMode(GuiMode mode);
260
261 //=========================================================================================================
268
269 QSharedPointer<AverageScene> m_pAverageScene;
270 QSharedPointer<DISPLIB::EvokedSetModel> m_pEvokedSetModel;
271 QSharedPointer<DISPLIB::ChannelInfoModel> m_pChannelInfoModel;
272
273 QSharedPointer<FIFFLIB::FiffInfo> m_pFiffInfo;
274
275 QPointer<QGraphicsView> m_pAverageLayoutView;
276
277 QSharedPointer<QMap<QString, QColor> > m_qMapAverageColor;
278 QSharedPointer<QMap<QString, bool> > m_qMapAverageActivation;
279 QMap<qint32,float> m_scaleMap;
280};
281} // NAMESPACE
282
283#endif // AVERAGELAYOUTVIEW_H
Common base widget for every dockable Quick-Control settings panel in DISPLIB.
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
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
QMap< qint32, float > m_scaleMap
void setEvokedSetModel(QSharedPointer< EvokedSetModel > pEvokedSetModel)
void channelSelectionChanged(const QVariant &data)
void setChannelInfoModel(QSharedPointer< ChannelInfoModel > &pChannelInfoModel)
QSharedPointer< QMap< QString, bool > > getAverageActivation() const
QSharedPointer< FIFFLIB::FiffInfo > m_pFiffInfo
QSharedPointer< DISPLIB::EvokedSetModel > m_pEvokedSetModel
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
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:88