34 #include <qwt_scale_engine.h> 35 #include <qwt_plot_grid.h> 36 #include <qwt_plot_layout.h> 37 #include <qwt_plot_canvas.h> 38 #include <qwt_plot_marker.h> 39 #include <qwt_plot_curve.h> 40 #include <qwt_plot_directpainter.h> 42 #include <qwt_plot_legenditem.h> 44 #include <qwt_curve_fitter.h> 45 #include <qwt_painter.h> 46 #include <qwt_system_clock.h> 47 #include <qwt_interval.h> 69 const void *
getInfo(
void)
const;
79 std::vector<double> data;
90 setRenderHint(QwtPlotItem::RenderAntialiased);
91 QColor color(Qt::black);
100 Canvas(QwtPlot *plot = NULL) : QwtPlotCanvas(plot)
102 setPaintAttribute(QwtPlotCanvas::BackingStore,
false);
104 if(QwtPainter::isX11GraphicsSystem())
106 #if QT_VERSION < 0x050000 107 setAttribute( Qt::WA_PaintOutsidePaintEvent,
true );
109 if(testPaintAttribute(QwtPlotCanvas::BackingStore))
111 setAttribute(Qt::WA_PaintOnScreen,
true);
112 setAttribute(Qt::WA_NoSystemBackground,
true);
121 QPalette pal = palette();
123 #if QT_VERSION >= 0x040400 124 QLinearGradient gradient;
125 gradient.setCoordinateMode(QGradient::StretchToDeviceMode);
126 gradient.setColorAt(1.0, QColor(Qt::white));
127 pal.setBrush(QPalette::Window, QBrush(gradient));
129 pal.setBrush(QPalette::Window, QBrush(color));
131 pal.setColor(QPalette::WindowText, Qt::green);
143 Scope(QWidget * = NULL);
147 std::list<Channel>::iterator
insertChannel(QString,
double,
double,
const QPen &,QwtPlotCurve *,
void *);
181 void setChannelPen(std::list<Channel>::iterator,
const QPen &);
185 void timeoutEvent(
void);
191 void drawCurves(
void);
201 double triggerThreshold;
202 double triggerWindow;
203 std::list<size_t> triggerQueue;
204 std::list<Channel>::iterator triggerChannel;
207 QwtPlotDirectPainter *d_directPainter;
211 QwtPlotMarker *origin;
214 QwtScaleMap *scaleMapY;
215 QwtScaleMap *scaleMapX;
222 std::list<Channel> channels;