-
Notifications
You must be signed in to change notification settings - Fork 0
/
frequencyplot.h
61 lines (34 loc) · 1.15 KB
/
frequencyplot.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef FREQUENCYPLOT_H
#define FREQUENCYPLOT_H
#include "AnalyzerPlot.h"
#include <vector>
#include <string>
#include <QObject>
#include <QColor>
#include <qwt_plot.h>
class QwtPlotMarker;
class ScopePlotCurve;
class AnalogSignal;
class FrequencyPlot
{
public:
FrequencyPlot( QWidget *parent , const QString& name );
virtual ~FrequencyPlot(void);
void AddFreqValue( FreqValues* pFreqValues, const QColor& color, QString& name );
void changeFreqRange( int fStart, int fStop );
typedef std::vector<AnalyzerPlotCurve*> VEC_ANALYZER_PLOT_CURVE_PTR;
typedef std::vector<AnalyzerPlotCurve*>::iterator VEC_ANALYZER_PLOT_CURVE_PTR_ITER;
virtual void Plot();
inline QwtPlot * GetPlotWidget()
{
return (QwtPlot*) m_pPlot;
}
void ChangeCurveColor(const QColor& color, const QString& name);
AnalyzerPlotCurve* GetPlotCurveFromName( const QString& name);
void showPeak( double freq1, double amplitude1, double freq2, double amplitude2 );
protected:
VEC_ANALYZER_PLOT_CURVE_PTR m_vecPtrAnalyzerPlotCurve;
QString m_strName;
AnalyzerPlotBase *m_pPlot;
};
#endif // FREQUENCYPLOT_H