MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The FilterPlotScene class provides the scene where a filter response can be plotted. More...
#include <filterplotscene.h>
Public Types | |
typedef QSharedPointer< FilterPlotScene > | SPtr |
typedef QSharedPointer< const FilterPlotScene > | ConstSPtr |
Public Member Functions | |
FilterPlotScene (QGraphicsView *view, QObject *parent=0) | |
void | updateFilter (const RTPROCESSINGLIB::FilterKernel &operatorFilter, int samplingFreq, int cutOffLow, int cutOffHigh) |
Public Member Functions inherited from DISPLIB::LayoutScene | |
LayoutScene (QGraphicsView *view, QObject *parent=0) | |
Protected Member Functions | |
void | plotMagnitudeDiagram (int samplingFreq, const QString &filtername=QString()) |
void | plotFilterFrequencyResponse () |
Protected Member Functions inherited from DISPLIB::LayoutScene | |
void | wheelEvent (QGraphicsSceneWheelEvent *event) |
void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *mouseEvent) |
void | mousePressEvent (QGraphicsSceneMouseEvent *mouseEvent) |
void | mouseMoveEvent (QGraphicsSceneMouseEvent *mouseEvent) |
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *mouseEvent) |
void | keyPressEvent (QKeyEvent *keyEvent) |
void | keyReleaseEvent (QKeyEvent *keyEvent) |
bool | event (QEvent *event) |
bool | gestureEvent (QGestureEvent *event) |
void | panTriggered (QPanGesture *) |
void | pinchTriggered (QPinchGesture *) |
void | swipeTriggered (QSwipeGesture *) |
bool | eventFilter (QObject *object, QEvent *event) |
Protected Attributes | |
RTPROCESSINGLIB::FilterKernel | m_pCurrentFilter |
QGraphicsPathItem * | m_pGraphicsItemPath |
int | m_iMaxMagnitude |
int | m_iScalingFactor |
int | m_iNumberHorizontalLines |
int | m_iNumberVerticalLines |
int | m_iAxisTextSize |
int | m_iDiagramMarginsHoriz |
int | m_iDiagramMarginsVert |
int | m_iCutOffLow |
int | m_iCutOffHigh |
int | m_iCutOffMarkerWidth |
int | m_iPlotLength |
QColor | m_cPenColor |
Protected Attributes inherited from DISPLIB::LayoutScene | |
QGraphicsView * | m_qvView |
bool | m_bDragMode |
QPointF | m_mousePressPosition |
The FilterPlotScene class provides the scene where a filter response can be plotted.
DECLARE CLASS FilterPlotScene
Definition at line 79 of file filterplotscene.h.
typedef QSharedPointer<const FilterPlotScene> DISPLIB::FilterPlotScene::ConstSPtr |
Const shared pointer type for FilterPlotScene class.
Definition at line 85 of file filterplotscene.h.
typedef QSharedPointer<FilterPlotScene> DISPLIB::FilterPlotScene::SPtr |
Shared pointer type for FilterPlotScene class.
Definition at line 84 of file filterplotscene.h.
FilterPlotScene::FilterPlotScene | ( | QGraphicsView * | view, |
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 66 of file filterplotscene.cpp.
|
protected |
Plots the filter's frequency response.
Definition at line 220 of file filterplotscene.cpp.
|
protected |
Draws the diagram to plot the magnitude.
[in] | holds | the current sampling frequency. |
[in] | holds | the current name of the filter. Default is an empty QString. |
Definition at line 114 of file filterplotscene.cpp.
void FilterPlotScene::updateFilter | ( | const RTPROCESSINGLIB::FilterKernel & | 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 85 of file filterplotscene.cpp.
|
protected |
Color of the text and plot of the filter freq response plot.
Definition at line 142 of file filterplotscene.h.
|
protected |
point size of the plotted text.
Definition at line 135 of file filterplotscene.h.
|
protected |
cut off frequqency highpass or higher cut off when filter is a bandpass.
Definition at line 139 of file filterplotscene.h.
|
protected |
cut off frequqency lowpass or lower cut off when filter is a bandpass.
Definition at line 138 of file filterplotscene.h.
|
protected |
cut off marker width.
Definition at line 140 of file filterplotscene.h.
|
protected |
horizontal space between the filter and diagram plot.
Definition at line 136 of file filterplotscene.h.
|
protected |
vertical space between the filter and diagram plot.
Definition at line 137 of file filterplotscene.h.
|
protected |
the maximum magnitude shown in the diagram.
Definition at line 131 of file filterplotscene.h.
|
protected |
number of plotted horizontal ()lines.
Definition at line 133 of file filterplotscene.h.
|
protected |
number of plotted vertical lines.
Definition at line 134 of file filterplotscene.h.
|
protected |
Length of current filter impulse response plot.
Definition at line 141 of file filterplotscene.h.
|
protected |
Scales the db filter magnitudes by the specified factor in order to provide better plotting.
Definition at line 132 of file filterplotscene.h.
|
protected |
Pointer to the filter operator.
Definition at line 127 of file filterplotscene.h.
|
protected |
Pointer to the graphics path item in the filterplotscene.
Definition at line 129 of file filterplotscene.h.