X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=signal.h;h=2cec1299e0cce040cf78d90a0441933c4512e9ce;hb=3b18c57d8f224791481e0b768065bd4d11a3d79e;hp=47e1dc915b4e50b873b58b6540c748d105e87cff;hpb=28a4c9c5eb20296199fc3496bb40b7733dffac75;p=pulseview.git diff --git a/signal.h b/signal.h index 47e1dc91..2cec1299 100644 --- a/signal.h +++ b/signal.h @@ -19,7 +19,11 @@ */ #include + +#include +#include #include + #include class SignalData; @@ -32,6 +36,17 @@ protected: public: QString get_name() const; + /** + * Paints the signal into a QGLWidget. + * @param widget the QGLWidget to paint into. + * @param rect the rectangular area to draw the trace into. + * @param scale the scale in femtoseconds per pixel. + * @param offset the time to show at the left hand edge of + * the view in femtoseconds. + **/ + virtual void paint(QGLWidget &widget, const QRect &rect, + uint64_t scale, int64_t offset) = 0; + protected: QString _name; boost::shared_ptr _data;