MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DISPLIB::FilterPlotScene Class Reference

The FilterPlotScene class provides the scene where a filter response can be plotted. More...

#include <filterplotscene.h>

Public Types

typedef QSharedPointer< FilterPlotSceneSPtr
 
typedef QSharedPointer< const FilterPlotSceneConstSPtr
 

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
 

Detailed Description

The FilterPlotScene class provides the scene where a filter response can be plotted.

DECLARE CLASS FilterPlotScene

Definition at line 79 of file filterplotscene.h.

Inheritance diagram for DISPLIB::FilterPlotScene:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for FilterPlotScene class.

Definition at line 85 of file filterplotscene.h.

◆ SPtr

Shared pointer type for FilterPlotScene class.

Definition at line 84 of file filterplotscene.h.

Constructor & Destructor Documentation

◆ FilterPlotScene()

FilterPlotScene::FilterPlotScene ( QGraphicsView *  view,
QObject *  parent = 0 
)

Constructs a FilterPlotScene dialog which is a child of parent.

Parameters
[in]parentpointer 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.

Member Function Documentation

◆ plotFilterFrequencyResponse()

void FilterPlotScene::plotFilterFrequencyResponse ( )
protected

Plots the filter's frequency response.

Definition at line 220 of file filterplotscene.cpp.

◆ plotMagnitudeDiagram()

void FilterPlotScene::plotMagnitudeDiagram ( int  samplingFreq,
const QString &  filtername = QString() 
)
protected

Draws the diagram to plot the magnitude.

Parameters
[in]holdsthe current sampling frequency.
[in]holdsthe current name of the filter. Default is an empty QString.

Definition at line 114 of file filterplotscene.cpp.

◆ updateFilter()

void FilterPlotScene::updateFilter ( const RTPROCESSINGLIB::FilterKernel operatorFilter,
int  samplingFreq,
int  cutOffLow,
int  cutOffHigh 
)

Updates the current filter.

Parameters
[in]operatorFilterpointer to the current filter operator which is to be plotted.
[in]samplingFreqholds the current sampling frequency.
[in]cutOffLowcut off frequqency lowpass or lower cut off when filter is a bandpass.
[in]cutOffHighcut off frequqency highpass or higher cut off when filter is a bandpass.

Definition at line 85 of file filterplotscene.cpp.

Member Data Documentation

◆ m_cPenColor

QColor DISPLIB::FilterPlotScene::m_cPenColor
protected

Color of the text and plot of the filter freq response plot.

Definition at line 142 of file filterplotscene.h.

◆ m_iAxisTextSize

int DISPLIB::FilterPlotScene::m_iAxisTextSize
protected

point size of the plotted text.

Definition at line 135 of file filterplotscene.h.

◆ m_iCutOffHigh

int DISPLIB::FilterPlotScene::m_iCutOffHigh
protected

cut off frequqency highpass or higher cut off when filter is a bandpass.

Definition at line 139 of file filterplotscene.h.

◆ m_iCutOffLow

int DISPLIB::FilterPlotScene::m_iCutOffLow
protected

cut off frequqency lowpass or lower cut off when filter is a bandpass.

Definition at line 138 of file filterplotscene.h.

◆ m_iCutOffMarkerWidth

int DISPLIB::FilterPlotScene::m_iCutOffMarkerWidth
protected

cut off marker width.

Definition at line 140 of file filterplotscene.h.

◆ m_iDiagramMarginsHoriz

int DISPLIB::FilterPlotScene::m_iDiagramMarginsHoriz
protected

horizontal space between the filter and diagram plot.

Definition at line 136 of file filterplotscene.h.

◆ m_iDiagramMarginsVert

int DISPLIB::FilterPlotScene::m_iDiagramMarginsVert
protected

vertical space between the filter and diagram plot.

Definition at line 137 of file filterplotscene.h.

◆ m_iMaxMagnitude

int DISPLIB::FilterPlotScene::m_iMaxMagnitude
protected

the maximum magnitude shown in the diagram.

Definition at line 131 of file filterplotscene.h.

◆ m_iNumberHorizontalLines

int DISPLIB::FilterPlotScene::m_iNumberHorizontalLines
protected

number of plotted horizontal ()lines.

Definition at line 133 of file filterplotscene.h.

◆ m_iNumberVerticalLines

int DISPLIB::FilterPlotScene::m_iNumberVerticalLines
protected

number of plotted vertical lines.

Definition at line 134 of file filterplotscene.h.

◆ m_iPlotLength

int DISPLIB::FilterPlotScene::m_iPlotLength
protected

Length of current filter impulse response plot.

Definition at line 141 of file filterplotscene.h.

◆ m_iScalingFactor

int DISPLIB::FilterPlotScene::m_iScalingFactor
protected

Scales the db filter magnitudes by the specified factor in order to provide better plotting.

Definition at line 132 of file filterplotscene.h.

◆ m_pCurrentFilter

RTPROCESSINGLIB::FilterKernel DISPLIB::FilterPlotScene::m_pCurrentFilter
protected

Pointer to the filter operator.

Definition at line 127 of file filterplotscene.h.

◆ m_pGraphicsItemPath

QGraphicsPathItem* DISPLIB::FilterPlotScene::m_pGraphicsItemPath
protected

Pointer to the graphics path item in the filterplotscene.

Definition at line 129 of file filterplotscene.h.


The documentation for this class was generated from the following files: