Qwt User's Guide 6.3.0
|
Base class for all type of plot canvases. More...
#include <qwt_plot_abstract_canvas.h>
Public Types | |
enum | FocusIndicator { NoFocusIndicator , CanvasFocusIndicator , ItemFocusIndicator } |
Focus indicator The default setting is NoFocusIndicator. More... | |
Public Member Functions | |
QwtPlotAbstractCanvas (QWidget *canvasWidget) | |
Constructor. | |
virtual | ~QwtPlotAbstractCanvas () |
Destructor. | |
QwtPlot * | plot () |
Return parent plot widget. | |
const QwtPlot * | plot () const |
Return parent plot widget. | |
void | setFocusIndicator (FocusIndicator) |
FocusIndicator | focusIndicator () const |
void | setBorderRadius (double) |
double | borderRadius () const |
Protected Member Functions | |
QWidget * | canvasWidget () |
const QWidget * | canvasWidget () const |
virtual void | drawFocusIndicator (QPainter *) |
virtual void | drawBorder (QPainter *) |
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. | |
Base class for all type of plot canvases.
Definition at line 21 of file qwt_plot_abstract_canvas.h.
Focus indicator The default setting is NoFocusIndicator.
Enumerator | |
---|---|
NoFocusIndicator | Don't paint a focus indicator. |
CanvasFocusIndicator | The focus is related to the complete canvas. Paint the focus indicator using drawFocusIndicator() |
ItemFocusIndicator | The focus is related to an item (curve, point, ...) on the canvas. It is up to the application to display a focus indication using f.e. highlighting. |
Definition at line 30 of file qwt_plot_abstract_canvas.h.
|
explicit |
Constructor.
canvasWidget | plot canvas widget |
Definition at line 534 of file qwt_plot_abstract_canvas.cpp.
|
virtual |
Destructor.
Definition at line 546 of file qwt_plot_abstract_canvas.cpp.
double QwtPlotAbstractCanvas::borderRadius | ( | ) | const |
Definition at line 613 of file qwt_plot_abstract_canvas.cpp.
|
protected |
Definition at line 619 of file qwt_plot_abstract_canvas.cpp.
|
protected |
Definition at line 872 of file qwt_plot_abstract_canvas.cpp.
|
protected |
Definition at line 878 of file qwt_plot_abstract_canvas.cpp.
|
protectedvirtual |
Helper function for the derived plot canvas.
Definition at line 690 of file qwt_plot_abstract_canvas.cpp.
|
protectedvirtual |
Draw the border of the canvas
painter | Painter |
Reimplemented in QwtPlotCanvas.
Definition at line 628 of file qwt_plot_abstract_canvas.cpp.
|
protected |
Draw the plot to the canvas.
Definition at line 803 of file qwt_plot_abstract_canvas.cpp.
|
protectedvirtual |
Draw the focus indication
painter | Painter |
Definition at line 587 of file qwt_plot_abstract_canvas.cpp.
|
protected |
Helper function for the derived plot canvas.
Definition at line 744 of file qwt_plot_abstract_canvas.cpp.
|
protected |
Helper function for the derived plot canvas.
Definition at line 702 of file qwt_plot_abstract_canvas.cpp.
|
protected |
Helper function for the derived plot canvas.
Definition at line 696 of file qwt_plot_abstract_canvas.cpp.
QwtPlotAbstractCanvas::FocusIndicator QwtPlotAbstractCanvas::focusIndicator | ( | ) | const |
Definition at line 578 of file qwt_plot_abstract_canvas.cpp.
QwtPlot * QwtPlotAbstractCanvas::plot | ( | ) |
Return parent plot widget.
Definition at line 552 of file qwt_plot_abstract_canvas.cpp.
const QwtPlot * QwtPlotAbstractCanvas::plot | ( | ) | const |
Return parent plot widget.
Definition at line 558 of file qwt_plot_abstract_canvas.cpp.
void QwtPlotAbstractCanvas::setBorderRadius | ( | double | radius | ) |
Set the radius for the corners of the border frame
radius | Radius of a rounded corner |
Definition at line 604 of file qwt_plot_abstract_canvas.cpp.
void QwtPlotAbstractCanvas::setFocusIndicator | ( | FocusIndicator | focusIndicator | ) |
Set the focus indicator
Definition at line 568 of file qwt_plot_abstract_canvas.cpp.
|
protected |
Update the cached information about the current style sheet.
Definition at line 835 of file qwt_plot_abstract_canvas.cpp.