SpectrumView
Namespace: DISPLIB · Library: Display Library
#include <disp/spectrumview.h>
class DISPLIB::SpectrumView
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.
Inheritance
Public Methods
SpectrumView(sSettingsPath, parent, f)
Constructs a SpectrumView which is a child of parent.
Parameters:
-
sSettingsPath : const QString & Settings path under which the widget persists its state (empty = no persistence).
-
parent : *QWidget ** parent of widget.
-
f : Qt::WindowFlags Qt window flags passed to the QWidget constructor.
~SpectrumView()
Destroys the ArtifactSettingsView.
init(info, iScaleType)
Initializes the view based on the FiffInfo and scale type.
Parameters:
-
info : QSharedPointer<FiffInfo> & The FiffInfo.
-
iScaleType : int The scale type.
addData(matData)
Adds data to the underlying model.
Parameters:
- matData : const Eigen::MatrixXd & The new data.
setBoundaries(iLower, iUpper)
Sets the boundaries.
Parameters:
-
iLower : int The lower boundary.
-
iUpper : int The upper boundary.
eventFilter(watched, event)
The event filter.
Parameters:
-
watched : *QObject ** Object the event was sent to.
-
event : *QEvent ** The intercepted event.
Returns:
- bool — True if a mouse-move event was consumed, otherwise the QWidget result.
saveSettings()
Saves all important settings of this view via QSettings.
loadSettings()
Loads and inits all important settings of this view via QSettings.
clearView()
Clears the view.
Authors of this file
- Lorenz Esch <lorenz.esch@tu-ilmenau.de>
- Gabriel Motta <gabrielbenmotta@gmail.com>
- Juan GPC <jgarciaprieto@mgh.harvard.edu>
- Christoph Dinh <christoph.dinh@mne-cpp.org>