MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The FilterDesignView class provides the a manager for temporal filtering. More...
#include <filterdesignview.h>
Public Types | |
typedef QSharedPointer< FilterDesignView > | SPtr |
typedef QSharedPointer< const FilterDesignView > | 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 | filterChanged (const RTPROCESSINGLIB::FilterKernel &activeFilter) |
void | filterChannelTypeChanged (const QString &channelType) |
void | updateFilterFrom (double dFrom) |
void | updateFilterTo (double dTo) |
Signals inherited from DISPLIB::AbstractView | |
void | guiStyleChanged (DISPLIB::AbstractView::StyleMode style) |
Public Member Functions | |
FilterDesignView (const QString &sSettingsPath, QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
~FilterDesignView () | |
void | setMaxAllowedFilterTaps (int iMaxNumberFilterTaps) |
int | getFilterTaps () |
void | setSamplingRate (double dSamplingRate) |
void | setFrom (double dFrom) |
void | setTo (double dTo) |
double | getFrom () |
double | getTo () |
RTPROCESSINGLIB::FilterKernel | getCurrentFilter () |
QString | getChannelType () |
void | setChannelType (const QString &sType) |
void | saveSettings () |
void | loadSettings () |
void | clearView () |
void | updateFilterPlot () |
void | guiStyleChanged (DISPLIB::AbstractView::StyleMode style) |
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) |
void | initSpinBoxes () |
void | initButtons () |
void | initComboBoxes () |
void | initFilterPlot () |
void | resizeEvent (QResizeEvent *event) |
virtual void | keyPressEvent (QKeyEvent *event) |
void | changeStateSpinBoxes (int currentIndex) |
void | filterParametersChanged () |
void | onSpinBoxFilterChannelType (const QString &channelType) |
void | onBtnExportFilterPlot () |
void | onBtnExportFilterCoefficients () |
void | onBtnLoadFilter () |
void | updateGuiFromFilter (const RTPROCESSINGLIB::FilterKernel &filter) |
Protected Attributes | |
Ui::FilterDesignViewWidget * | m_pUi |
QPointer< FilterPlotScene > | m_pFilterPlotScene |
RTPROCESSINGLIB::FilterKernel | m_filterKernel |
QString | m_sSettingsPath |
int | m_iFilterTaps |
double | m_dSFreq |
Protected Attributes inherited from DISPLIB::AbstractView | |
bool | m_bResearchModeIsActive |
bool | m_bOfflineModeIsActive |
QString | m_sSettingsPath |
The FilterDesignView class provides the a manager for temporal filtering.
DECLARE CLASS FilterDesignView
Definition at line 86 of file filterdesignview.h.
typedef QSharedPointer<const FilterDesignView> DISPLIB::FilterDesignView::ConstSPtr |
Const shared pointer type for FilterDesignView.
Definition at line 92 of file filterdesignview.h.
typedef QSharedPointer<FilterDesignView> DISPLIB::FilterDesignView::SPtr |
Shared pointer type for FilterDesignView.
Definition at line 91 of file filterdesignview.h.
FilterDesignView::FilterDesignView | ( | const QString & | sSettingsPath, |
QWidget * | parent = 0 , |
||
Qt::WindowFlags | f = Qt::Widget |
||
) |
Constructs a FilterDesignView dialog which is a child of parent.
[in] | parent | pointer to parent widget; If parent is 0, the new FilterDesignView becomes a window. If parent is another widget, FilterDesignView becomes a child window inside parent. FilterDesignView is deleted when its parent is deleted. |
Definition at line 83 of file filterdesignview.cpp.
FilterDesignView::~FilterDesignView | ( | ) |
Destroys the FilterDesignView. All FilterDesignView's children are deleted first. The application exits if FilterDesignView is the main widget.
Definition at line 105 of file filterdesignview.cpp.
|
protected |
This function gets called whenever the combo box is altered by the user via the gui.
[in] | currentIndex | holds the current index of the combo box. |
Definition at line 382 of file filterdesignview.cpp.
|
virtual |
Clears the view
Implements DISPLIB::AbstractView.
Definition at line 555 of file filterdesignview.cpp.
|
signal |
Emitted when the filter changes.
[in] | activeFilter | The currently active filters. |
|
signal |
Emitted when the filter channel type changed.
[in] | channelType | The channel type on which the filter should be performed on. |
|
protected |
This function gets called whenever the filter parameters are altered by the user via the gui.
Definition at line 406 of file filterdesignview.cpp.
QString FilterDesignView::getChannelType | ( | ) |
Returns the current channel type which is to be filtered.
Definition at line 188 of file filterdesignview.cpp.
FilterKernel FilterDesignView::getCurrentFilter | ( | ) |
Returns the current filter.
Definition at line 181 of file filterdesignview.cpp.
int FilterDesignView::getFilterTaps | ( | ) |
Returns the currently set number of filter taps.
Definition at line 129 of file filterdesignview.cpp.
double FilterDesignView::getFrom | ( | ) |
Get filter 'From' value
Definition at line 562 of file filterdesignview.cpp.
double FilterDesignView::getTo | ( | ) |
Get filter 'To' value
Definition at line 569 of file filterdesignview.cpp.
void FilterDesignView::guiStyleChanged | ( | DISPLIB::AbstractView::StyleMode | style | ) |
Process the event of style mode change in an upper class.
Definition at line 588 of file filterdesignview.cpp.
|
protected |
inits all buttons.
Definition at line 296 of file filterdesignview.cpp.
|
protected |
inits the QComboBoxes.
Definition at line 310 of file filterdesignview.cpp.
|
protected |
inits the filter plot.
Definition at line 335 of file filterdesignview.cpp.
|
protected |
inits all spin boxes.
Definition at line 274 of file filterdesignview.cpp.
|
protectedvirtual |
keyPressEvent reimplemented virtual function to handle key events
Definition at line 356 of file filterdesignview.cpp.
|
virtual |
Loads and inits all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 222 of file filterdesignview.cpp.
|
protected |
This function exports the filter coefficients to a txt file.
Definition at line 507 of file filterdesignview.cpp.
|
protected |
Saves an svg graphic of the scene if wanted by the user.
Definition at line 470 of file filterdesignview.cpp.
|
protected |
This function loads a filter from a txt file.
Definition at line 528 of file filterdesignview.cpp.
|
protected |
This function applies the user defined filter to all channels.
[in] | channelType | holds the current text of the connected spin box. |
Definition at line 463 of file filterdesignview.cpp.
|
protected |
resizeEvent reimplemented virtual function to handle resize events of the filter window
Definition at line 348 of file filterdesignview.cpp.
|
virtual |
Saves all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 203 of file filterdesignview.cpp.
void FilterDesignView::setChannelType | ( | const QString & | sType | ) |
Sets the current channel type which is to be filtered.
[in] | sType | The new channel type to be filtered. |
Definition at line 195 of file filterdesignview.cpp.
void FilterDesignView::setFrom | ( | double | dFrom | ) |
Sets filter 'From' value
[in] | dFrom | set filter 'From' value. |
Definition at line 165 of file filterdesignview.cpp.
void FilterDesignView::setMaxAllowedFilterTaps | ( | int | iMaxNumberFilterTaps | ) |
Sets the max number of allowed filter taps.
[in] | iMaxNumberFilterTaps | number of max allowed filter taps. |
Definition at line 114 of file filterdesignview.cpp.
void FilterDesignView::setSamplingRate | ( | double | dSamplingRate | ) |
Sets the new samplingRate.
[in] | dSamplingRate | the new sampling rate. |
Definition at line 136 of file filterdesignview.cpp.
void FilterDesignView::setTo | ( | double | dTo | ) |
Sets filter 'To' value
[in] | dTo | set filter 'To' value. |
Definition at line 173 of file filterdesignview.cpp.
|
signal |
Update to simple filter control 'From'
[in] | dFrom | change in filter 'From' value. |
void FilterDesignView::updateFilterPlot | ( | ) |
updates the filter plot scene with the newly generated filter
Definition at line 369 of file filterdesignview.cpp.
|
signal |
Update to simple filter control 'To'
[in] | dTo | change in filter 'To' value. |
|
protected |
Update Gui and filter based on an input filter parameters
[in] | filter | filter which parameters will be used to update gui and stored filter. |
Definition at line 576 of file filterdesignview.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 250 of file filterdesignview.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 262 of file filterdesignview.cpp.
|
protected |
The current sampling frequency.
Definition at line 333 of file filterdesignview.h.
|
protected |
The current filter operator.
Definition at line 328 of file filterdesignview.h.
|
protected |
The current number of filter taps.
Definition at line 332 of file filterdesignview.h.
|
protected |
Pointer to the QGraphicsScene which holds the filter plotting.
Definition at line 326 of file filterdesignview.h.
|
protected |
Pointer to the qt designer generated ui class.
Definition at line 324 of file filterdesignview.h.
|
protected |
The settings path to store the GUI settings to.
Definition at line 330 of file filterdesignview.h.