v2.0.0
Loading...
Searching...
No Matches
filterplotscene.h
Go to the documentation of this file.
1//=============================================================================================================
21
22#ifndef FILTERPLOTSCENE_H
23#define FILTERPLOTSCENE_H
24
25//=============================================================================================================
26// INCLUDES
27//=============================================================================================================
28
29#include "../../disp_global.h"
30#include "layoutscene.h"
31
32#include <dsp/filterkernel.h>
33
34//=============================================================================================================
35// QT INCLUDES
36//=============================================================================================================
37
38//=============================================================================================================
39// EIGEN INCLUDES
40//=============================================================================================================
41
42//=============================================================================================================
43// FORWARD DECLARATIONS
44//=============================================================================================================
45
46class QGraphicsPathItem;
47class QGraphicsView;
48
49//=============================================================================================================
50// DEFINE NAMESPACE DISPLIB
51//=============================================================================================================
52
53namespace DISPLIB
54{
55
56//=============================================================================================================
57// DISPLIB FORWARD DECLARATIONS
58//=============================================================================================================
59
60//=============================================================================================================
69{
70 Q_OBJECT
71
72public:
73 typedef QSharedPointer<FilterPlotScene> SPtr;
74 typedef QSharedPointer<const FilterPlotScene> ConstSPtr;
75
76 //=========================================================================================================
83 FilterPlotScene(QGraphicsView* view,
84 QObject* parent = 0);
85
86 //=========================================================================================================
95 void updateFilter(const UTILSLIB::FilterKernel& operatorFilter,
96 int samplingFreq,
97 int cutOffLow,
98 int cutOffHigh);
99
100protected:
101 //=========================================================================================================
109 void plotMagnitudeDiagram(int samplingFreq,
110 const QString& filtername = QString());
111
112 //=========================================================================================================
117
119
120 QGraphicsPathItem* m_pGraphicsItemPath;
121
133 QColor m_cPenColor;
134};
135} // NAMESPACE DISPLIB
136
137#endif // FILTERPLOTSCENE_H
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
Base QGraphicsScene providing pan, pinch-zoom and swipe gesture handling for the sensor-layout scenes...
Linear-phase FIR filter kernel with overlap-add FFT convolution back-end.
2-D display widgets and visualisation helpers (charts, topography, colour maps).
QGraphicsPathItem * m_pGraphicsItemPath
FilterPlotScene(QGraphicsView *view, QObject *parent=0)
void updateFilter(const UTILSLIB::FilterKernel &operatorFilter, int samplingFreq, int cutOffLow, int cutOffHigh)
void plotMagnitudeDiagram(int samplingFreq, const QString &filtername=QString())
UTILSLIB::FilterKernel m_pCurrentFilter
QSharedPointer< const FilterPlotScene > ConstSPtr
QSharedPointer< FilterPlotScene > SPtr
LayoutScene(QGraphicsView *view, QObject *parent=0)
The FilterKernel class provides methods to create/design a FIR filter kernel.