Definition at line 28 of file qwt_plot_canvas.h.
Public Types | |
| enum | PaintAttribute { PaintCached = 1, PaintPacked = 2 } |
| enum | FocusIndicator { NoFocusIndicator, CanvasFocusIndicator, ItemFocusIndicator } |
Public Member Functions | |
| void | setFocusIndicator (FocusIndicator) |
| FocusIndicator | focusIndicator () const |
| void | setPaintAttribute (PaintAttribute, bool on=true) |
| bool | testPaintAttribute (PaintAttribute) const |
| QPixmap * | paintCache () |
| const QPixmap * | paintCache () const |
| void | invalidatePaintCache () |
Protected Member Functions | |
| QwtPlotCanvas (QwtPlot *) | |
| virtual | ~QwtPlotCanvas () |
| virtual void | hideEvent (QHideEvent *) |
| virtual void | paintEvent (QPaintEvent *) |
| virtual void | drawContents (QPainter *) |
| virtual void | drawFocusIndicator (QPainter *) |
| void | drawCanvas (QPainter *painter=NULL) |
Friends | |
| class | QwtPlot |
Paint attributes.
The default setting enables PaintCached and PaintPacked
Definition at line 56 of file qwt_plot_canvas.h.
Focus indicator.
Definition at line 80 of file qwt_plot_canvas.h.
| QwtPlotCanvas::QwtPlotCanvas | ( | QwtPlot * | ) | [explicit, protected] |
Sets a cross cursor, enables QwtPlotCanvas::PaintCached.
Definition at line 50 of file qwt_plot_canvas.cpp.
References PaintCached, PaintPacked, and setPaintAttribute().
| QwtPlotCanvas::~QwtPlotCanvas | ( | ) | [protected, virtual] |
| void QwtPlotCanvas::setFocusIndicator | ( | FocusIndicator | focusIndicator | ) |
Set the focus indicator
Definition at line 175 of file qwt_plot_canvas.cpp.
| QwtPlotCanvas::FocusIndicator QwtPlotCanvas::focusIndicator | ( | ) | const |
Definition at line 185 of file qwt_plot_canvas.cpp.
Referenced by drawContents().
| void QwtPlotCanvas::setPaintAttribute | ( | PaintAttribute | attribute, | |
| bool | on = true | |||
| ) |
Changing the paint attributes.
| attribute | Paint attribute | |
| on | On/Off |
Definition at line 90 of file qwt_plot_canvas.cpp.
References PaintCached, and PaintPacked.
Referenced by QwtPlotCanvas().
| bool QwtPlotCanvas::testPaintAttribute | ( | PaintAttribute | attribute | ) | const |
Test wether a paint attribute is enabled
| attribute | Paint attribute |
Definition at line 146 of file qwt_plot_canvas.cpp.
Referenced by QwtPlotCurve::draw(), and QwtPlot::replot().
| QPixmap * QwtPlotCanvas::paintCache | ( | ) |
Return the paint cache, might be null.
Definition at line 152 of file qwt_plot_canvas.cpp.
Referenced by QwtPlotCurve::draw().
| const QPixmap * QwtPlotCanvas::paintCache | ( | ) | const |
| void QwtPlotCanvas::invalidatePaintCache | ( | ) |
Invalidate the internal paint cache.
Definition at line 164 of file qwt_plot_canvas.cpp.
Referenced by QwtPlot::replot().
| void QwtPlotCanvas::drawContents | ( | QPainter * | ) | [protected, virtual] |
Redraw the canvas, and focus rect.
Definition at line 228 of file qwt_plot_canvas.cpp.
References QwtPlot::autoReplot(), CanvasFocusIndicator, drawCanvas(), drawFocusIndicator(), focusIndicator(), PaintCached, and QwtPlot::setAutoReplot().
Referenced by paintEvent().
| void QwtPlotCanvas::drawFocusIndicator | ( | QPainter * | ) | [protected, virtual] |
Draw the focus indication.
Definition at line 328 of file qwt_plot_canvas.cpp.
References QwtPainter::drawFocusRect().
Referenced by drawContents().
| void QwtPlotCanvas::drawCanvas | ( | QPainter * | painter = NULL |
) | [protected] |
Draw the the canvas
Paints all plot items to the contentsRect(), using QwtPlot::drawCanvas and updates the paint cache.
Definition at line 259 of file qwt_plot_canvas.cpp.
References PaintCached, and PaintPacked.
Referenced by drawContents().
1.5.2