MNE-CPP
beta 1.0
|
The FilterPlotScene class provides the scene where a filter respone can be plotted. More...
#include <filterplotscene.h>
Public Member Functions | |
FilterPlotScene (QObject *parent=0) | |
void | updateFilter (QSharedPointer< MNEOperator > operatorFilter, int samplingFreq, int cutOffLow, int cutOffHigh) |
Protected Member Functions | |
void | plotMagnitudeDiagram (int samplingFreq) |
void | plotFilterFrequencyResponse () |
Protected Attributes | |
QSharedPointer< FilterOperator > | m_pCurrentFilter |
QGraphicsPathItem * | m_pGraphicsItemPath |
int | m_iScalingFactor |
double | m_dMaxMagnitude |
int | m_iNumberHorizontalLines |
int | m_iNumberVerticalLines |
int | m_iAxisTextSize |
int | m_iDiagramMarginsHoriz |
int | m_iDiagramMarginsVert |
int | m_iCutOffLow |
int | m_iCutOffHigh |
int | m_iCutOffMarkerWidth |
The FilterPlotScene class provides the scene where a filter respone can be plotted.
DECLARE CLASS FilterPlotScene
Definition at line 72 of file filterplotscene.h.
FilterPlotScene::FilterPlotScene | ( | QObject * | parent = 0 | ) |
Constructs a FilterPlotScene dialog which is a child of parent.
[in] | parent | pointer to parent widget; If parent is 0, the new FilterPlotScene becomes a window. If parent is another widget, FilterPlotScene becomes a child window inside parent. FilterPlotScene is deleted when its parent is deleted. |
Definition at line 59 of file filterplotscene.cpp.
|
protected |
Draws the filter's frequency response.
Definition at line 196 of file filterplotscene.cpp.
|
protected |
Draws the diagram to plot the magnitude.
[in] | holds | the current sampling frequency |
Definition at line 101 of file filterplotscene.cpp.
void FilterPlotScene::updateFilter | ( | QSharedPointer< MNEOperator > | operatorFilter, |
int | samplingFreq, | ||
int | cutOffLow, | ||
int | cutOffHigh | ||
) |
Updates the current filter.
[in] | operatorFilter | pointer to the current filter operator which is to be plotted |
[in] | samplingFreq | holds the current sampling frequency |
[in] | cutOffLow | cut off frequqency lowpass or lower cut off when filter is a bandpass |
[in] | cutOffHigh | cut off frequqency highpass or higher cut off when filter is a bandpass |
Definition at line 79 of file filterplotscene.cpp.
|
protected |
the maximum magnirutde shown in the diagram.
Definition at line 116 of file filterplotscene.h.
|
protected |
point size of the plotted text.
Definition at line 119 of file filterplotscene.h.
|
protected |
cut off frequqency highpass or higher cut off when filter is a bandpass.
Definition at line 123 of file filterplotscene.h.
|
protected |
cut off frequqency lowpass or lower cut off when filter is a bandpass.
Definition at line 122 of file filterplotscene.h.
|
protected |
cut off marker width.
Definition at line 124 of file filterplotscene.h.
|
protected |
horizontal space between the filter and diagram plot.
Definition at line 120 of file filterplotscene.h.
|
protected |
vertical space between the filter and diagram plot.
Definition at line 121 of file filterplotscene.h.
|
protected |
number of plotted horizontal ()lines.
Definition at line 117 of file filterplotscene.h.
|
protected |
number of plotted vertical lines.
Definition at line 118 of file filterplotscene.h.
|
protected |
Scales the db filter magnitudes by the specified factor in order to provide better plotting.
Definition at line 115 of file filterplotscene.h.
|
protected |
Pointer to the filter operator
Definition at line 111 of file filterplotscene.h.
|
protected |
Pointer to the graphics path item in the filterplotscene
Definition at line 113 of file filterplotscene.h.