MNE-CPP  beta 1.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MNEBrowseRawQt::FilterPlotScene Class Reference

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

#include <filterplotscene.h>

Inheritance diagram for MNEBrowseRawQt::FilterPlotScene:

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< FilterOperatorm_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
 

Detailed Description

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

DECLARE CLASS FilterPlotScene

Definition at line 72 of file filterplotscene.h.

Constructor & Destructor Documentation

FilterPlotScene::FilterPlotScene ( 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 59 of file filterplotscene.cpp.

Member Function Documentation

void FilterPlotScene::plotFilterFrequencyResponse ( )
protected

Draws the filter's frequency response.

Definition at line 196 of file filterplotscene.cpp.

void FilterPlotScene::plotMagnitudeDiagram ( int  samplingFreq)
protected

Draws the diagram to plot the magnitude.

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

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 79 of file filterplotscene.cpp.

Member Data Documentation

double MNEBrowseRawQt::FilterPlotScene::m_dMaxMagnitude
protected

the maximum magnirutde shown in the diagram.

Definition at line 116 of file filterplotscene.h.

int MNEBrowseRawQt::FilterPlotScene::m_iAxisTextSize
protected

point size of the plotted text.

Definition at line 119 of file filterplotscene.h.

int MNEBrowseRawQt::FilterPlotScene::m_iCutOffHigh
protected

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

Definition at line 123 of file filterplotscene.h.

int MNEBrowseRawQt::FilterPlotScene::m_iCutOffLow
protected

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

Definition at line 122 of file filterplotscene.h.

int MNEBrowseRawQt::FilterPlotScene::m_iCutOffMarkerWidth
protected

cut off marker width.

Definition at line 124 of file filterplotscene.h.

int MNEBrowseRawQt::FilterPlotScene::m_iDiagramMarginsHoriz
protected

horizontal space between the filter and diagram plot.

Definition at line 120 of file filterplotscene.h.

int MNEBrowseRawQt::FilterPlotScene::m_iDiagramMarginsVert
protected

vertical space between the filter and diagram plot.

Definition at line 121 of file filterplotscene.h.

int MNEBrowseRawQt::FilterPlotScene::m_iNumberHorizontalLines
protected

number of plotted horizontal ()lines.

Definition at line 117 of file filterplotscene.h.

int MNEBrowseRawQt::FilterPlotScene::m_iNumberVerticalLines
protected

number of plotted vertical lines.

Definition at line 118 of file filterplotscene.h.

int MNEBrowseRawQt::FilterPlotScene::m_iScalingFactor
protected

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

Definition at line 115 of file filterplotscene.h.

QSharedPointer<FilterOperator> MNEBrowseRawQt::FilterPlotScene::m_pCurrentFilter
protected

Pointer to the filter operator

Definition at line 111 of file filterplotscene.h.

QGraphicsPathItem* MNEBrowseRawQt::FilterPlotScene::m_pGraphicsItemPath
protected

Pointer to the graphics path item in the filterplotscene

Definition at line 113 of file filterplotscene.h.


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