v2.0.0
Loading...
Searching...
No Matches
fwdsettingsview.h
Go to the documentation of this file.
1//=============================================================================================================
24
25#ifndef FWDSETTINGSVIEW_H
26#define FWDSETTINGSVIEW_H
27
28//=============================================================================================================
29// INCLUDES
30//=============================================================================================================
31
32#include "../disp_global.h"
33#include "abstractview.h"
34
35#include <fiff/fiff_types.h>
36#include <fs/fs_annotationset.h>
37
38//=============================================================================================================
39// QT INCLUDES
40//=============================================================================================================
41
42#include <QSharedPointer>
43
44#include <memory>
45
46//=============================================================================================================
47// EIGEN INCLUDES
48//=============================================================================================================
49
50//=============================================================================================================
51// FORWARD DECLARATIONS
52//=============================================================================================================
53
54namespace FSLIB
55{
56class FsAnnotationSet;
57}
58
59namespace Ui
60{
61class FwdSettingsViewWidget;
62}
63//=============================================================================================================
64// DEFINE NAMESPACE DISPLIB
65//=============================================================================================================
66
67namespace DISPLIB
68{
69
70//=============================================================================================================
79{
80 Q_OBJECT
81
82public:
83 //=========================================================================================================
91 explicit FwdSettingsView(const QString& sSettingsPath = "",
92 QWidget* parent = 0,
93 Qt::WindowFlags f = Qt::Widget);
94
96
97 //=========================================================================================================
104
105 //=========================================================================================================
112 void setRecomputationStatus(int iStatus);
113
114 //=========================================================================================================
121
122 //=========================================================================================================
128 int getClusterNumber();
129
130 //=========================================================================================================
134 void showAtlasDirDialog();
135
136 //=========================================================================================================
146
148 FIFFLIB::fiff_int_t iCoordFrame,
149 int iNSource,
150 int iNChan,
151 int iNSpaces);
152
153 //=========================================================================================================
159
160 void setClusteredInformation(int iNSource);
161
162 //=========================================================================================================
168
169 void onClusteringStatusChanged(bool bChecked);
170
171 //=========================================================================================================
175 void saveSettings();
176
177 //=========================================================================================================
181 void loadSettings();
182
183 //=========================================================================================================
187 void clearView();
188
189protected:
190 //=========================================================================================================
196 void updateGuiMode(GuiMode mode);
197
198 //=========================================================================================================
205
207
208 std::unique_ptr<Ui::FwdSettingsViewWidget> m_pUi;
209
211
212signals:
213 //=========================================================================================================
219 void recompStatusChanged(bool bChecked);
220
221 //=========================================================================================================
227 void clusteringStatusChanged(bool bChecked);
228
229 //=========================================================================================================
236 void atlasDirChanged(const QString& sDirPath,
237 const FSLIB::FsAnnotationSet::SPtr pAnnotationSet);
238
239 //=========================================================================================================
244
245 //=========================================================================================================
251 void clusterNumberChanged(int iNCluster);
252};
253
254//=============================================================================================================
255// INLINE DEFINITIONS
256//=============================================================================================================
257
258} // NAMESPACE
259
260#endif // FWDSETTINGSVIEW_H
Primitive scalar typedefs and forward-compatible aliases backing the FIFF type system.
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.
Bi-hemispheric pair of FreeSurfer annotations (lh + rh) for one parcellation atlas.
FreeSurfer surface, annotation and parcellation I/O for mne-cpp.
qint32 fiff_int_t
Definition fiff_types.h:86
2-D display widgets and visualisation helpers (charts, topography, colour maps).
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void setSolutionInformation(FIFFLIB::fiff_int_t iSourceOri, FIFFLIB::fiff_int_t iCoordFrame, int iNSource, int iNChan, int iNSpaces)
void setClusteredInformation(int iNSource)
std::unique_ptr< Ui::FwdSettingsViewWidget > m_pUi
void clusterNumberChanged(int iNCluster)
void setRecomputationStatus(int iStatus)
void atlasDirChanged(const QString &sDirPath, const FSLIB::FsAnnotationSet::SPtr pAnnotationSet)
void updateProcessingMode(ProcessingMode mode)
void clusteringStatusChanged(bool bChecked)
void recompStatusChanged(bool bChecked)
void onClusteringStatusChanged(bool bChecked)
void updateGuiMode(GuiMode mode)
FwdSettingsView(const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
Container holding the lh and/or rh FsAnnotation for one parcellation atlas.
QSharedPointer< FsAnnotationSet > SPtr