Definition at line 221 of file qwt_plot_canvas.cpp.
Referenced by drawContents().
void QwtPlotCanvas::enableOutline (bool tf)
Enables or disables outline drawing.
Warning:
Outlining functionality is obsolete: use QwtPlotPicker or QwtPlotZoomer.
When the outline feature is enabled, a shape will be drawn in the plotting region when the user presses or drags the mouse. It can be used to implement crosshairs, mark a selected region, etc.
Parameters:
tf TRUE (enabled) or FALSE (disabled)
Warning:
An outline style has to be specified.
See also:
QwtPlotCanvas::setOutlineStyle()
Definition at line 315 of file qwt_plot_canvas.cpp.
Definition at line 266 of file qwt_plot_canvas.cpp.
References mouseReleased().
bool QwtPlotCanvas::outlineEnabled () const
Returns:
TRUE if the outline feature is enabled
Warning:
Outlining functionality is obsolete: use QwtPlotPicker or QwtPlotZoomer.
See also:
QwtPlotCanvas::enableOutline
Definition at line 340 of file qwt_plot_canvas.cpp.
Referenced by QwtPlot::outlineEnabled().
const QPen & QwtPlotCanvas::outlinePen () const
Returns:
the pen used to draw outlines
Warning:
Outlining functionality is obsolete: use QwtPlotPicker or QwtPlotZoomer.
See also:
QwtPlotCanvas::setOutlinePen
Definition at line 433 of file qwt_plot_canvas.cpp.
Referenced by QwtPlot::outlinePen().
Qwt::Shape QwtPlotCanvas::outlineStyle () const
Returns:
the outline style
Warning:
Outlining functionality is obsolete: use QwtPlotPicker or QwtPlotZoomer.
See also:
QwtPlotCanvas::setOutlineStyle()
Definition at line 404 of file qwt_plot_canvas.cpp.
Referenced by QwtPlot::outlineStyle().
void QwtPlotCanvas::setCacheMode (bool on)
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.
Outlining functionality is obsolete: use QwtPlotPicker or QwtPlotZoomer.
The outline style determines which kind of shape is drawn in the plotting region when the user presses a mouse button or drags the mouse. Valid Styles are:
Cross hairs are drawn across the plotting area when the user presses a mouse button. The lines intersect at the point where the mouse was pressed and move with the mouse pointer.
Qwt::HLine, Qwt::VLine
A horizontal or vertical line appears when the user presses a mouse button. This is useful for moving line markers.
Qwt::Rect
A rectangle is displayed when the user drags the mouse. One corner is fixed at the point where the mouse was pressed, and the opposite corner moves with the mouse pointer. This can be used for selecting regions.
Qwt::Ellipse
Similar to Qwt::Rect, but with an ellipse inside a bounding rectangle.