QwtPlotCanvas(3) | Qwt User's Guide | QwtPlotCanvas(3) |
QwtPlotCanvas -
#include <qwt_plot_canvas.h>
enum FocusIndicator { NoFocusIndicator,
CanvasFocusIndicator, ItemFocusIndicator }
enum PaintAttribute { PaintCached = 1, PaintPacked = 2 }
QwtPlotCanvas (QwtPlot *)
virtual ~QwtPlotCanvas ()
FocusIndicator focusIndicator () const
void invalidatePaintCache ()
QPixmap * paintCache ()
const QPixmap * paintCache () const
QwtPlot * plot ()
const QwtPlot * plot () const
void replot ()
void setFocusIndicator (FocusIndicator)
void setPaintAttribute (PaintAttribute, bool on=true)
bool testPaintAttribute (PaintAttribute) const
void drawCanvas (QPainter *painter=NULL)
virtual void drawContents (QPainter *)
virtual void drawFocusIndicator (QPainter *)
virtual void hideEvent (QHideEvent *)
virtual void paintEvent (QPaintEvent *)
Canvas of a QwtPlot.
See also:
Focus indicator. .IP "•" 2 NoFocusIndicator
Don't paint a focus indicator
See also:
Paint attributes. .IP "•" 2 PaintCached
Paint double buffered and reuse the content of the pixmap buffer for some
spontaneous repaints that happen when a plot gets unhidden, deiconified or
changes the focus. Disabling the cache will improve the performance for
incremental paints (using QwtPlotCurve::draw).
The default setting enables PaintCached and PaintPacked
See also:
Draw the the canvas
Paints all plot items to the contentsRect(), using QwtPlot::drawCanvas and updates the paint cache.
Parameters:
See also:
Redraw the canvas, and focus rect
Parameters:
Draw the focus indication
Parameters:
Returns:
See also:
Hide event
Parameters:
Paint event
Parameters:
Invalidate the paint cache and repaint the canvas
See also:
Set the focus indicator
See also:
Changing the paint attributes. Parameters:
The default setting enables PaintCached and PaintPacked
See also:
Test wether a paint attribute is enabled
Parameters:
Returns:
See also:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 | Version 5.2.3 |