MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
spectrumview.h
Go to the documentation of this file.
1//=============================================================================================================
35#ifndef SPECTRUMVIEW_H
36#define SPECTRUMVIEW_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "../disp_global.h"
43#include "abstractview.h"
44
45//=============================================================================================================
46// QT INCLUDES
47//=============================================================================================================
48
49#include <QPointer>
50
51//=============================================================================================================
52// EIGEN INCLUDES
53//=============================================================================================================
54
55#include <Eigen/Core>
56
57//=============================================================================================================
58// FORWARD DECLARATIONS
59//=============================================================================================================
60
61class QTableView;
62
63namespace FIFFLIB {
64 class FiffInfo;
65}
66
67//=============================================================================================================
68// DEFINE NAMESPACE DISPLIB
69//=============================================================================================================
70
71namespace DISPLIB
72{
73
74//=============================================================================================================
75// DISPLIB FORWARD DECLARATIONS
76//=============================================================================================================
77
78class FrequencySpectrumDelegate;
79class FrequencySpectrumModel;
80
81//=============================================================================================================
88{
89 Q_OBJECT
90
91public:
92 typedef QSharedPointer<SpectrumView> SPtr;
93 typedef QSharedPointer<const SpectrumView> ConstSPtr;
95 //=========================================================================================================
101 SpectrumView(const QString& sSettingsPath = "",
102 QWidget* parent = 0,
103 Qt::WindowFlags f = Qt::Widget);
104
105 //=========================================================================================================
110
111 //=========================================================================================================
118 void init(QSharedPointer<FIFFLIB::FiffInfo> &info,
119 int iScaleType);
120
121 //=========================================================================================================
127 void addData(const Eigen::MatrixXd &data);
128
129 //=========================================================================================================
136 void setBoundaries(int iLower,
137 int iUpper);
138
139 //=========================================================================================================
146 virtual bool eventFilter(QObject* watched,
147 QEvent* event);
148
149 //=========================================================================================================
153 void saveSettings();
154
155 //=========================================================================================================
159 void loadSettings();
160
161 //=========================================================================================================
165 void clearView();
166
167protected:
168 //=========================================================================================================
174 void updateGuiMode(GuiMode mode);
175
176 //=========================================================================================================
182 void updateProcessingMode(ProcessingMode mode);
183
184 QPointer<QTableView> m_pTableView;
185 QPointer<DISPLIB::FrequencySpectrumDelegate> m_pFSDelegate;
186 QPointer<DISPLIB::FrequencySpectrumModel> m_pFSModel;
188signals:
189 //=========================================================================================================
193 void sendMouseLoc(int row,
194 int x,
195 int y,
196 QRect visRect);
197};
198} // NAMESPACE
199
200#endif // SPECTRUMVIEW_H
#define DISPSHARED_EXPORT
Definition disp_global.h:55
The AbstractView class provides the base calss for all Disp viewers.
The SpectrumView class provides a spectrum view.
QSharedPointer< SpectrumView > SPtr
QPointer< QTableView > m_pTableView
QPointer< DISPLIB::FrequencySpectrumModel > m_pFSModel
QPointer< DISPLIB::FrequencySpectrumDelegate > m_pFSDelegate
QSharedPointer< const SpectrumView > ConstSPtr
void sendMouseLoc(int row, int x, int y, QRect visRect)
AbstractView class declaration.