Definition at line 29 of file qwt_plot_canvas.h.
Public Types | |
| enum | FocusIndicator { NoFocusIndicator, CanvasFocusIndicator, ItemFocusIndicator } |
Signals | |
| void | mousePressed (const QMouseEvent &e) |
| void | mouseReleased (const QMouseEvent &e) |
| void | mouseMoved (const QMouseEvent &e) |
Public Member Functions | |
| void | setFocusIndicator (FocusIndicator) |
| FocusIndicator | focusIndicator () const |
| void | setCacheMode (bool on) |
| bool | cacheMode () const |
| const QPixmap * | cache () const |
| void | invalidateCache () |
| void | enableOutline (bool tf) |
| bool | outlineEnabled () const |
| void | setOutlinePen (const QPen &p) |
| const QPen & | outlinePen () const |
| void | setOutlineStyle (Qwt::Shape os) |
| Qwt::Shape | outlineStyle () const |
Protected Member Functions | |
| QwtPlotCanvas (QwtPlot *) | |
| virtual | ~QwtPlotCanvas () |
| QPixmap * | cache () |
| virtual void | frameChanged () |
| virtual void | drawContents (QPainter *) |
| virtual void | drawFocusIndicator (QPainter *, const QRect &) |
| void | drawCanvas (QPainter *painter=NULL) |
| virtual void | mousePressEvent (QMouseEvent *) |
| virtual void | mouseReleaseEvent (QMouseEvent *) |
| virtual void | mouseMoveEvent (QMouseEvent *) |
|
|
Focus indicator.
Referenced by focusIndicator(). |
|
|
Sets a cross cursor, and an invisible red outline. Definition at line 25 of file qwt_plot_canvas.cpp. |
|
|
Destructor. Definition at line 42 of file qwt_plot_canvas.cpp. |
|
|
Return the paint cache, might be null. Definition at line 89 of file qwt_plot_canvas.cpp. |
|
|
Return the paint cache, might be null. Definition at line 95 of file qwt_plot_canvas.cpp. Referenced by QwtPlot::drawCurve(). |
|
|
Referenced by drawCanvas(), drawContents(), and QwtPlot::drawCurve(). |
|
|
Draw the the canvas Paints all plot items to the contentsRect(), using QwtPlot::drawCanvas and updates the cache.
References QwtPaintBuffer::buffer(), cacheMode(), QwtPaintBuffer::isEnabled(), and QwtPaintBuffer::painter(). Referenced by drawContents(). |
|
|
Redraw the canvas, and focus rect. Definition at line 139 of file qwt_plot_canvas.cpp. References cacheMode(), drawCanvas(), drawFocusIndicator(), and focusIndicator(). |
|
||||||||||||
|
Draw the focus indication. Definition at line 221 of file qwt_plot_canvas.cpp. Referenced by drawContents(). |
|
|
Enables or disables outline drawing.
Referenced by QwtPlot::enableOutline(). |
|
|
References FocusIndicator. Referenced by drawContents(). |
|
|
Requires layout updates of the parent plot. Definition at line 128 of file qwt_plot_canvas.cpp. |
|
|
Invalidate the internal paint cache. Definition at line 101 of file qwt_plot_canvas.cpp. Referenced by QwtPlot::replot(). |
|
|
A signal which is emitted when the mouse is moved in the canvas.
Referenced by mouseMoveEvent(). |
|
|
Mouse event handler. Definition at line 284 of file qwt_plot_canvas.cpp. References mouseMoved(). |
|
|
A signal which is emitted when the mouse is pressed in the canvas.
Referenced by mousePressEvent(). |
|
|
Mouse event handler. Definition at line 234 of file qwt_plot_canvas.cpp. References mousePressed(). |
|
|
A signal which is emitted when a mouse button has been released in the canvas.
Referenced by mouseReleaseEvent(). |
|
|
Mouse event handler. Definition at line 266 of file qwt_plot_canvas.cpp. References mouseReleased(). |
|
|
Referenced by QwtPlot::outlineEnabled(). |
|
|
Referenced by QwtPlot::outlinePen(). |
|
|
Referenced by QwtPlot::outlineStyle(). |
|
|
En/Disable caching. When cache mode is enabled the canvas contents are copied to a pixmap that is used for trivial repaints. Such repaints happen when a plot gets unhidden, deiconified or changes the focus. The win of caching depends on the costs of QwtPlot::drawCanvas. In case of plots with huge data it might be significant. The price of caching is wasting memory for the cache, what is a pixmap in size of contentsRect(). In case of QwtPaintBuffer::isEnabled() updating the cache produces no performance overhead as it reuses the temporary paintbuffer of the double buffering. Otherwise canvas updates have to painted twice to widget and cache.
|
|
|
Set the focus indicator
|
|
|
Specify a pen for the outline.
Referenced by QwtPlot::setOutlinePen(). |
|
|
Specify the style of the outline.
Referenced by QwtPlot::setOutlineStyle(). |
1.3.8