v2.0.0
Loading...
Searching...
No Matches
filterplotscene.h
Go to the documentation of this file.
1//=============================================================================================================
35
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;
86
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 //=========================================================================================================
126
128
129 QGraphicsPathItem* m_pGraphicsItemPath;
130
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.
disp library export/import macros.
#define DISPSHARED_EXPORT
Definition disp_global.h:51
2-D display widgets and visualisation helpers (charts, topography, colour maps).
void updateFilter(const RTPROCESSINGLIB::FilterKernel &operatorFilter, int samplingFreq, int cutOffLow, int cutOffHigh)
QGraphicsPathItem * m_pGraphicsItemPath
RTPROCESSINGLIB::FilterKernel m_pCurrentFilter
FilterPlotScene(QGraphicsView *view, QObject *parent=0)
void plotMagnitudeDiagram(int samplingFreq, const QString &filtername=QString())
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.