彻底改版2.0
This commit is contained in:
44
third/qwtdemo/examples/oscilloscope/plot.h
Normal file
44
third/qwtdemo/examples/oscilloscope/plot.h
Normal file
@@ -0,0 +1,44 @@
|
||||
#include <qwt_plot.h>
|
||||
#include <qwt_interval.h>
|
||||
#include <qwt_system_clock.h>
|
||||
|
||||
class QwtPlotCurve;
|
||||
class QwtPlotMarker;
|
||||
class QwtPlotDirectPainter;
|
||||
|
||||
class Plot: public QwtPlot
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Plot( QWidget * = NULL );
|
||||
virtual ~Plot();
|
||||
|
||||
void start();
|
||||
virtual void replot();
|
||||
|
||||
virtual bool eventFilter( QObject *, QEvent * );
|
||||
|
||||
public Q_SLOTS:
|
||||
void setIntervalLength( double );
|
||||
|
||||
protected:
|
||||
virtual void showEvent( QShowEvent * );
|
||||
virtual void resizeEvent( QResizeEvent * );
|
||||
virtual void timerEvent( QTimerEvent * );
|
||||
|
||||
private:
|
||||
void updateCurve();
|
||||
void incrementInterval();
|
||||
|
||||
QwtPlotMarker *d_origin;
|
||||
QwtPlotCurve *d_curve;
|
||||
int d_paintedPoints;
|
||||
|
||||
QwtPlotDirectPainter *d_directPainter;
|
||||
|
||||
QwtInterval d_interval;
|
||||
int d_timerId;
|
||||
|
||||
QwtSystemClock d_clock;
|
||||
};
|
||||
Reference in New Issue
Block a user