MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
filterplotscene.h
Go to the documentation of this file.
1//=============================================================================================================
36#ifndef FILTERPLOTSCENE_H
37#define FILTERPLOTSCENE_H
38
39//=============================================================================================================
40// INCLUDES
41//=============================================================================================================
42
43#include "../../disp_global.h"
44#include "layoutscene.h"
45
47
48//=============================================================================================================
49// QT INCLUDES
50//=============================================================================================================
51
52//=============================================================================================================
53// EIGEN INCLUDES
54//=============================================================================================================
55
56//=============================================================================================================
57// FORWARD DECLARATIONS
58//=============================================================================================================
59
60class QGraphicsPathItem;
61class QGraphicsView;
62
63//=============================================================================================================
64// DEFINE NAMESPACE DISPLIB
65//=============================================================================================================
66
67namespace DISPLIB
68{
69
70//=============================================================================================================
71// DISPLIB FORWARD DECLARATIONS
72//=============================================================================================================
73
80{
81 Q_OBJECT
82
83public:
84 typedef QSharedPointer<FilterPlotScene> SPtr;
85 typedef QSharedPointer<const FilterPlotScene> ConstSPtr;
87 //=========================================================================================================
93 FilterPlotScene(QGraphicsView* view,
94 QObject *parent = 0);
95
96 //=========================================================================================================
105 void updateFilter(const RTPROCESSINGLIB::FilterKernel &operatorFilter,
106 int samplingFreq,
107 int cutOffLow,
108 int cutOffHigh);
109
110protected:
111 //=========================================================================================================
118 void plotMagnitudeDiagram(int samplingFreq,
119 const QString &filtername = QString());
120
121 //=========================================================================================================
125 void plotFilterFrequencyResponse();
126
129 QGraphicsPathItem* m_pGraphicsItemPath;
142 QColor m_cPenColor;
143};
144} // NAMESPACE DISPLIB
145
146#endif // FILTERPLOTSCENE_H
The FilterKernel class represents a filter object that generates the FIR filter coefficients using Pa...
Contains the declaration of the LayoutScene class.
#define DISPSHARED_EXPORT
Definition disp_global.h:55
The FilterPlotScene class provides the scene where a filter response can be plotted.
QGraphicsPathItem * m_pGraphicsItemPath
RTPROCESSINGLIB::FilterKernel m_pCurrentFilter
QSharedPointer< const FilterPlotScene > ConstSPtr
QSharedPointer< FilterPlotScene > SPtr
The LayoutScene class provides a reimplemented QGraphicsScene for 2D layout plotting....
Definition layoutscene.h:82
The FilterKernel class provides methods to create/design a FIR filter kernel.