v2.0.0
Loading...
Searching...
No Matches
artifactsettingsview.h
Go to the documentation of this file.
1//=============================================================================================================
22
23#ifndef ARTIFACTSETTINGSVIEW_H
24#define ARTIFACTSETTINGSVIEW_H
25
26//=============================================================================================================
27// INCLUDES
28//=============================================================================================================
29
30#include "../disp_global.h"
31#include "abstractview.h"
32
33#include <fiff/fiff_ch_info.h>
34
35//=============================================================================================================
36// QT INCLUDES
37//=============================================================================================================
38
39#include <QPointer>
40#include <QMap>
41
42//=============================================================================================================
43// FORWARD DECLARATIONS
44//=============================================================================================================
45
46class QCheckBox;
47class QDoubleSpinBox;
48class QSpinBox;
49class QGridLayout;
50
51namespace Ui
52{
53class AverageSettingsViewWidget;
54}
55
56namespace FIFFLIB
57{
58class FiffEvokedSet;
59class FiffChInfo;
60}
61
62//=============================================================================================================
63// DEFINE NAMESPACE DISPLIB
64//=============================================================================================================
65
66namespace DISPLIB
67{
68
69//=============================================================================================================
70// DISPLIB FORWARD DECLARATIONS
71//=============================================================================================================
72
73//=============================================================================================================
82{
83 Q_OBJECT
84
85public:
86 typedef QSharedPointer<ArtifactSettingsView> SPtr;
87 typedef QSharedPointer<ArtifactSettingsView> ConstSPtr;
88
89 explicit ArtifactSettingsView(const QString& sSettingsPath = "",
90 const QList<FIFFLIB::FiffChInfo>& fiffChInfoList = QList<FIFFLIB::FiffChInfo>(),
91 QWidget* parent = Q_NULLPTR);
92
93 //=========================================================================================================
98
99 void setChInfo(const QList<FIFFLIB::FiffChInfo>& fiffChInfoList);
100
101 QMap<QString, double> getThresholdMap();
102
103 void setThresholdMap(const QMap<QString, double>& mapThresholds);
104
106
107 //=========================================================================================================
111 void saveSettings();
112
113 //=========================================================================================================
117 void loadSettings();
118
119 //=========================================================================================================
123 void clearView();
124
125protected:
126 //=========================================================================================================
132 void updateGuiMode(GuiMode mode);
133
134 //=========================================================================================================
141
142 //=========================================================================================================
146 void redrawGUI();
147
149
150 QMap<QString, QDoubleSpinBox*> m_mapChThresholdsDoubleSpinBoxes;
151 QMap<QString, QSpinBox*> m_mapChThresholdsSpinBoxes;
152
153 QMap<QString, double> m_mapThresholdsFirst;
154 QMap<QString, int> m_mapThresholdsSecond;
155 QMap<QString, double> m_mapThresholds;
156
157 QList<FIFFLIB::FiffChInfo> m_fiffChInfoList;
158
160
161 QPointer<QCheckBox> m_pArtifactRejectionCheckBox;
162
163signals:
164 void changeArtifactThreshold(const QMap<QString, double>& mapThresholds);
165};
166} // NAMESPACE
167
168#endif // ARTIFACTSETTINGSVIEW_H
FIFF channel descriptor record (FIFF_CH_INFO): per-channel logical/scanner numbers,...
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)
QMap< QString, int > m_mapThresholdsSecond
QList< FIFFLIB::FiffChInfo > m_fiffChInfoList
QMap< QString, double > m_mapThresholdsFirst
QMap< QString, double > getThresholdMap()
void changeArtifactThreshold(const QMap< QString, double > &mapThresholds)
QSharedPointer< ArtifactSettingsView > ConstSPtr
ArtifactSettingsView(const QString &sSettingsPath="", const QList< FIFFLIB::FiffChInfo > &fiffChInfoList=QList< FIFFLIB::FiffChInfo >(), QWidget *parent=nullptr)
QMap< QString, double > m_mapThresholds
void setThresholdMap(const QMap< QString, double > &mapThresholds)
void setChInfo(const QList< FIFFLIB::FiffChInfo > &fiffChInfoList)
QMap< QString, QSpinBox * > m_mapChThresholdsSpinBoxes
QSharedPointer< ArtifactSettingsView > SPtr
void updateProcessingMode(ProcessingMode mode)
QPointer< QCheckBox > m_pArtifactRejectionCheckBox
QMap< QString, QDoubleSpinBox * > m_mapChThresholdsDoubleSpinBoxes
Per-channel FIFF descriptor: identifiers, kind, calibration, coil type, channel-frame coil position a...
Set of FiffEvoked instances sharing one FiffInfo, plus channel-picking and compensation helpers.