Base class of QwtPlotOpenGLCanvas and QwtPlotGLCanvas
更多...
#include <qwt_plot_abstract_canvas.h>
|
| void | replot () |
| | Invalidate the paint cache and repaint the canvas
|
| |
|
void | draw (QPainter *) |
| | Helper function for the derived plot canvas
|
| |
| QWidget * | canvasWidget () |
| |
| const QWidget * | canvasWidget () const |
| |
| virtual void | drawFocusIndicator (QPainter *) |
| | Draw the focus indication
|
| |
| virtual void | drawBorder (QPainter *) |
| | Draw the border of the canvas
|
| |
|
virtual void | drawBackground (QPainter *) |
| | Helper function for the derived plot canvas
|
| |
|
void | fillBackground (QPainter *) |
| | Helper function for the derived plot canvas
|
| |
|
void | drawCanvas (QPainter *) |
| | Draw the plot to the canvas
|
| |
|
void | drawStyled (QPainter *, bool) |
| | Helper function for the derived plot canvas
|
| |
|
void | drawUnstyled (QPainter *) |
| | Helper function for the derived plot canvas
|
| |
| QPainterPath | canvasBorderPath (const QRect &rect) const |
| |
|
void | updateStyleSheetInfo () |
| | Update the cached information about the current style sheet
|
| |
◆ PaintAttribute
Paint attributes
The default setting enables BackingStore and Opaque.
- 参见
- setPaintAttribute(), testPaintAttribute()
| 枚举值 |
|---|
| BackingStore | Paint double buffered reusing the content of the pixmap buffer when possible
Using a backing store might improve the performance significantly, when working with widget overlays (like rubber bands). Disabling the cache might improve the performance for incremental paints (using QwtPlotDirectPainter). - 参见
- backingStore(), invalidateBackingStore()
|
| ImmediatePaint | When ImmediatePaint is set replot() calls repaint() instead of update()
- 参见
- replot(), QWidget::repaint(), QWidget::update()
|
◆ QwtPlotAbstractGLCanvas()
| QwtPlotAbstractGLCanvas::QwtPlotAbstractGLCanvas |
( |
QWidget * |
canvasWidget | ) |
|
|
explicit |
Paint attributes
Constructor
- 参数
-
| [in] | canvasWidget | plot canvas widget |
Destructor
◆ frameRect()
| QRect QwtPlotAbstractGLCanvas::frameRect |
( |
| ) |
const |
Get the rectangle where the frame is drawn in
- 返回
- The rectangle where the frame is drawn in
◆ frameShadow()
| QFrame::Shadow QwtPlotAbstractGLCanvas::frameShadow |
( |
| ) |
const |
Get the frame shadow
- 返回
- Frame shadow
- 参见
- setFrameShadow(), QFrame::setFrameShadow()
◆ frameShape()
| QFrame::Shape QwtPlotAbstractGLCanvas::frameShape |
( |
| ) |
const |
◆ frameStyle()
| int QwtPlotAbstractGLCanvas::frameStyle |
( |
| ) |
const |
◆ frameWidth()
| int QwtPlotAbstractGLCanvas::frameWidth |
( |
| ) |
const |
Get the frame width depending on the style, line width and midline width
- 返回
- Frame width depending on the style, line width and midline width
◆ invalidateBackingStore()
| virtual void QwtPlotAbstractGLCanvas::invalidateBackingStore |
( |
| ) |
|
|
pure virtual |
◆ lineWidth()
| int QwtPlotAbstractGLCanvas::lineWidth |
( |
| ) |
const |
◆ midLineWidth()
| int QwtPlotAbstractGLCanvas::midLineWidth |
( |
| ) |
const |
◆ replot()
| void QwtPlotAbstractGLCanvas::replot |
( |
| ) |
|
|
protected |
Invalidate the paint cache and repaint the canvas
- 参见
- invalidatePaintCache()
◆ setFrameShadow()
| void QwtPlotAbstractGLCanvas::setFrameShadow |
( |
QFrame::Shadow |
shadow | ) |
|
◆ setFrameShape()
| void QwtPlotAbstractGLCanvas::setFrameShape |
( |
QFrame::Shape |
shape | ) |
|
◆ setFrameStyle()
| void QwtPlotAbstractGLCanvas::setFrameStyle |
( |
int |
style | ) |
|
◆ setLineWidth()
| void QwtPlotAbstractGLCanvas::setLineWidth |
( |
int |
width | ) |
|
◆ setMidLineWidth()
| void QwtPlotAbstractGLCanvas::setMidLineWidth |
( |
int |
width | ) |
|
◆ setPaintAttribute()
| void QwtPlotAbstractGLCanvas::setPaintAttribute |
( |
PaintAttribute |
attribute, |
|
|
bool |
on = true |
|
) |
| |
◆ testPaintAttribute()
| bool QwtPlotAbstractGLCanvas::testPaintAttribute |
( |
PaintAttribute |
attribute | ) |
const |
Test whether a paint attribute is enabled
- 参数
-
| [in] | attribute | Paint attribute |
- 返回
- true, when attribute is enabled
- 参见
- setPaintAttribute()
该类的文档由以下文件生成: