Per-channel frequency-spectrum heat-map QTableView (rows = channels, columns = freq bins). More...
#include <spectrumview.h>
Public Types | |
| typedef QSharedPointer< SpectrumView > | SPtr |
| typedef QSharedPointer< const SpectrumView > | ConstSPtr |
| Public Types inherited from DISPLIB::AbstractView | |
| enum | StyleMode { Default , Dark } |
| enum | GuiMode { Clinical , Research } |
| enum | ProcessingMode { RealTime , Offline } |
| typedef QSharedPointer< AbstractView > | SPtr |
| typedef QSharedPointer< const AbstractView > | ConstSPtr |
Signals | |
| void | sendMouseLoc (int row, int x, int y, QRect visRect) |
| Signals inherited from DISPLIB::AbstractView | |
| void | guiStyleChanged (DISPLIB::AbstractView::StyleMode style) |
Public Member Functions | |
| SpectrumView (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
| ~SpectrumView () | |
| void | init (QSharedPointer< FIFFLIB::FiffInfo > &info, int iScaleType) |
| void | addData (const Eigen::MatrixXd &data) |
| void | setBoundaries (int iLower, int iUpper) |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
| void | saveSettings () |
| void | loadSettings () |
| void | clearView () |
| Public Member Functions inherited from DISPLIB::AbstractView | |
| AbstractView (QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
| virtual void | setGuiMode (GuiMode mode) |
| virtual void | setProcessingMode (ProcessingMode mode) |
Protected Member Functions | |
| void | updateGuiMode (GuiMode mode) |
| void | updateProcessingMode (ProcessingMode mode) |
Protected Attributes | |
| QPointer< QTableView > | m_pTableView |
| QPointer< DISPLIB::FrequencySpectrumDelegate > | m_pFSDelegate |
| QPointer< DISPLIB::FrequencySpectrumModel > | m_pFSModel |
| Protected Attributes inherited from DISPLIB::AbstractView | |
| bool | m_bResearchModeIsActive |
| bool | m_bOfflineModeIsActive |
| QString | m_sSettingsPath |
Per-channel frequency-spectrum heat-map QTableView (rows = channels, columns = freq bins).
Wraps a QTableView around a FrequencySpectrumModel and paints each row with FrequencySpectrumDelegate so the live FFT amplitudes appear as a rolling colour band per channel.
Definition at line 76 of file spectrumview.h.

| typedef QSharedPointer<const SpectrumView> DISPLIB::SpectrumView::ConstSPtr |
Const shared pointer type for SpectrumView.
Definition at line 82 of file spectrumview.h.
| typedef QSharedPointer<SpectrumView> DISPLIB::SpectrumView::SPtr |
Shared pointer type for SpectrumView.
Definition at line 81 of file spectrumview.h.
| SpectrumView::SpectrumView | ( | const QString & | sSettingsPath = "", |
| QWidget * | parent = 0, | ||
| Qt::WindowFlags | f = Qt::Widget ) |
Constructs a SpectrumView which is a child of parent.
| [in] | parent | parent of widget. |
Definition at line 48 of file spectrumview.cpp.
| SpectrumView::~SpectrumView | ( | ) |
Destroys the ArtifactSettingsView.
Definition at line 72 of file spectrumview.cpp.
| void SpectrumView::addData | ( | const Eigen::MatrixXd & | data | ) |
Adds data to the underlying model.
| [in] | data | The new data. |
Definition at line 123 of file spectrumview.cpp.
|
virtual |
|
virtual |
The event filter
| [in] | watched. | |
| [in] | event. |
Definition at line 138 of file spectrumview.cpp.
| void SpectrumView::init | ( | QSharedPointer< FIFFLIB::FiffInfo > & | info, |
| int | iScaleType ) |
Initializes the view based on the FiffInfo and scale type.
| [in] | info | The FiffInfo. |
| [in] | iScaleType | The scale type. |
Definition at line 79 of file spectrumview.cpp.
|
virtual |
Loads and inits all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 172 of file spectrumview.cpp.
|
virtual |
Saves all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 160 of file spectrumview.cpp.
|
signal |
Signals for sending the mouse location to the delegate
| void SpectrumView::setBoundaries | ( | int | iLower, |
| int | iUpper ) |
Sets the boundaries.
| [in] | iLower | The lower boundary. |
| [in] | iUpper | The upper boundary. |
Definition at line 130 of file spectrumview.cpp.
|
protectedvirtual |
Update the views GUI based on the set GuiMode (Clinical=0, Research=1).
| [in] | mode | The new mode (Clinical=0, Research=1). |
Implements DISPLIB::AbstractView.
Definition at line 184 of file spectrumview.cpp.
|
protectedvirtual |
Update the views GUI based on the set ProcessingMode (RealTime=0, Offline=1).
| [in] | mode | The new mode (RealTime=0, Offline=1). |
Implements DISPLIB::AbstractView.
Definition at line 196 of file spectrumview.cpp.
|
protected |
Frequency spectrum delegate.
Definition at line 174 of file spectrumview.h.
|
protected |
Frequency spectrum model.
Definition at line 175 of file spectrumview.h.
|
protected |
The QTableView being part of the model/view framework of Qt.
Definition at line 173 of file spectrumview.h.