MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
artifactsettingsview.h
Go to the documentation of this file.
1//=============================================================================================================
35#ifndef ARTIFACTSETTINGSVIEW_H
36#define ARTIFACTSETTINGSVIEW_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "../disp_global.h"
43#include "abstractview.h"
44
45#include <fiff/fiff_ch_info.h>
46
47//=============================================================================================================
48// QT INCLUDES
49//=============================================================================================================
50
51#include <QPointer>
52#include <QMap>
53
54//=============================================================================================================
55// FORWARD DECLARATIONS
56//=============================================================================================================
57
58class QCheckBox;
59class QDoubleSpinBox;
60class QSpinBox;
61class QGridLayout;
62
63namespace Ui {
64 class AverageSettingsViewWidget;
65}
66
67namespace FIFFLIB {
68 class FiffEvokedSet;
69 class FiffChInfo;
70}
71
72//=============================================================================================================
73// DEFINE NAMESPACE DISPLIB
74//=============================================================================================================
75
76namespace DISPLIB
77{
78
79//=============================================================================================================
80// DISPLIB FORWARD DECLARATIONS
81//=============================================================================================================
82
89{
90 Q_OBJECT
91
92public:
93 typedef QSharedPointer<ArtifactSettingsView> SPtr;
94 typedef QSharedPointer<ArtifactSettingsView> ConstSPtr;
96 explicit ArtifactSettingsView(const QString& sSettingsPath = "",
97 const QList<FIFFLIB::FiffChInfo>& fiffChInfoList = QList<FIFFLIB::FiffChInfo>(),
98 QWidget *parent = Q_NULLPTR);
99
100 //=========================================================================================================
105
106 void setChInfo(const QList<FIFFLIB::FiffChInfo>& fiffChInfoList);
107
108 QMap<QString,double> getThresholdMap();
109
110 void setThresholdMap(const QMap<QString,double>& mapThresholds);
111
112 bool getDoArtifactThresholdRejection();
113
114 //=========================================================================================================
118 void saveSettings();
119
120 //=========================================================================================================
124 void loadSettings();
125
126 //=========================================================================================================
130 void clearView();
131
132protected:
133 //=========================================================================================================
139 void updateGuiMode(GuiMode mode);
140
141 //=========================================================================================================
147 void updateProcessingMode(ProcessingMode mode);
148
149 //=========================================================================================================
153 void redrawGUI();
154
155 void onChangeArtifactThreshold();
156
157 QMap<QString,QDoubleSpinBox*> m_mapChThresholdsDoubleSpinBoxes;
158 QMap<QString,QSpinBox*> m_mapChThresholdsSpinBoxes;
159
160 QMap<QString,double> m_mapThresholdsFirst;
161 QMap<QString,int> m_mapThresholdsSecond;
162 QMap<QString,double> m_mapThresholds;
163
164 QList<FIFFLIB::FiffChInfo> m_fiffChInfoList;
165
166 bool m_bDoArtifactThresholdReduction;
167
168 QPointer<QCheckBox> m_pArtifactRejectionCheckBox;
169
170signals:
171 void changeArtifactThreshold(const QMap<QString,double>& mapThresholds);
172};
173} // NAMESPACE
174
175#endif // ARTIFACTSETTINGSVIEW_H
#define DISPSHARED_EXPORT
Definition disp_global.h:55
FiffChInfo class declaration.
The AbstractView class provides the base calss for all Disp viewers.
The ArtifactSettingsView class provides an artifact rejection settings view.
QSharedPointer< ArtifactSettingsView > ConstSPtr
QSharedPointer< ArtifactSettingsView > SPtr
AbstractView class declaration.