-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalogplot.h
66 lines (39 loc) · 1.29 KB
/
analogplot.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
62
63
64
65
66
#ifndef ANALOGPLOT_H
#define ANALOGPLOT_H
#include "scopeplot.h"
#include "scopeplotbase.h"
#include <vector>
#include <string>
#include <QObject>
#include <QColor>
#include <qwt_plot.h>
class QwtPlotMarker;
class ScopePlotCurve;
class AnalogSignal;
class AnalogPlot : public ScopePlot
{
public:
AnalogPlot( QWidget *parent , const QString& name );
virtual ~AnalogPlot(void);
void AddAnalogSignal( AnalogSignal* pAnalogSignal, const QColor& color, QString& name );
void RemoveAnalogSignal( const QString& name );
typedef std::vector<ScopePlotCurve*> VEC_ANALOG_SCOPE_PLOT_CURVE_PTR;
typedef std::vector<ScopePlotCurve*>::iterator VEC_ANALOG_SCOPE_PLOT_CURVE_PTR_ITER;
void setTimeBase( const unsigned int timeBaseInUs );
virtual void PlotSignals();
virtual void PlotLine();
inline QwtPlot * GetPlotWidget()
{
return (QwtPlot*) m_pPlot;
}
void ChangeCurveColor(const QColor& color, const QString& name);
void EnableZoomer (void);
ScopePlotCurve* GetPlotCurveFromName( const QString& name);
protected:
VEC_ANALOG_SCOPE_PLOT_CURVE_PTR m_vecPtrScopePlotCurve;
QString m_strName;
ScopePlotBase *m_pPlot;
QwtPlotMarker* m_pPlotMarker;
//AnalogPlotZoomer* m_pPlotZoomer;
};
#endif // ANALOGPLOT_H