彻底改版2.0
This commit is contained in:
28
third/qwtdemo/examples/realtime/incrementalplot.h
Normal file
28
third/qwtdemo/examples/realtime/incrementalplot.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef _INCREMENTALPLOT_H_
|
||||
#define _INCREMENTALPLOT_H_ 1
|
||||
|
||||
#include <qwt_plot.h>
|
||||
|
||||
class QwtPlotCurve;
|
||||
class QwtPlotDirectPainter;
|
||||
|
||||
class IncrementalPlot : public QwtPlot
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
IncrementalPlot( QWidget *parent = NULL );
|
||||
virtual ~IncrementalPlot();
|
||||
|
||||
void appendPoint( const QPointF & );
|
||||
void clearPoints();
|
||||
|
||||
public Q_SLOTS:
|
||||
void showSymbols( bool );
|
||||
|
||||
private:
|
||||
QwtPlotCurve *d_curve;
|
||||
QwtPlotDirectPainter *d_directPainter;
|
||||
};
|
||||
|
||||
#endif // _INCREMENTALPLOT_H_
|
||||
Reference in New Issue
Block a user