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 //=========================================================================================================
82 FilterPlotScene(QGraphicsView* view,
83 QObject *parent = 0);
84
85 //=========================================================================================================
94 void updateFilter(const UTILSLIB::FilterKernel &operatorFilter,
95 int samplingFreq,
96 int cutOffLow,
97 int cutOffHigh);
98
99protected:
100 //=========================================================================================================
107 void plotMagnitudeDiagram(int samplingFreq,
108 const QString &filtername = QString());
109
110 //=========================================================================================================
115
117
118 QGraphicsPathItem* m_pGraphicsItemPath;
119
131 QColor m_cPenColor;
132};
133} // NAMESPACE DISPLIB
134
135#endif // FILTERPLOTSCENE_H
Base QGraphicsScene providing pan, pinch-zoom and swipe gesture handling for the sensor-layout scenes...
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
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.