Classes | Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
QwtPlotAbstractCanvas Class Reference

Base class for all type of plot canvases. More...

#include <qwt_plot_abstract_canvas.h>

Inheritance diagram for QwtPlotAbstractCanvas:
Inheritance graph
[legend]

Classes

class  PrivateData
 

Public Types

enum  FocusIndicator { NoFocusIndicator, CanvasFocusIndicator, ItemFocusIndicator }
 Focus indicator The default setting is NoFocusIndicator. More...
 

Public Member Functions

double borderRadius () const
 
FocusIndicator focusIndicator () const
 
QwtPlotplot ()
 Return parent plot widget. More...
 
const QwtPlotplot () const
 
 QwtPlotAbstractCanvas (QWidget *canvasWidget)
 Constructor. More...
 
void setBorderRadius (double)
 
void setFocusIndicator (FocusIndicator)
 
virtual ~QwtPlotAbstractCanvas ()
 Destructor. More...
 

Protected Member Functions

QPainterPath canvasBorderPath (const QRect &rect) const
 
QWidget * canvasWidget ()
 
const QWidget * canvasWidget () const
 
virtual void drawBackground (QPainter *)
 Helper function for the derived plot canvas. More...
 
virtual void drawBorder (QPainter *)
 
void drawCanvas (QPainter *)
 Draw the plot to the canvas. More...
 
virtual void drawFocusIndicator (QPainter *)
 
void drawStyled (QPainter *, bool)
 Helper function for the derived plot canvas. More...
 
void drawUnstyled (QPainter *)
 Helper function for the derived plot canvas. More...
 
void fillBackground (QPainter *)
 Helper function for the derived plot canvas. More...
 
void updateStyleSheetInfo ()
 Update the cached information about the current style sheet. More...
 

Private Attributes

PrivateDatam_data
 

Detailed Description

Base class for all type of plot canvases.

Definition at line 21 of file qwt_plot_abstract_canvas.h.

Member Enumeration Documentation

◆ FocusIndicator

Focus indicator The default setting is NoFocusIndicator.

See also
setFocusIndicator(), focusIndicator(), drawFocusIndicator()
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.

Constructor & Destructor Documentation

◆ QwtPlotAbstractCanvas()

QwtPlotAbstractCanvas::QwtPlotAbstractCanvas ( QWidget *  canvasWidget)
explicit

Constructor.

Parameters
canvasWidgetplot canvas widget

Definition at line 534 of file qwt_plot_abstract_canvas.cpp.

◆ ~QwtPlotAbstractCanvas()

QwtPlotAbstractCanvas::~QwtPlotAbstractCanvas ( )
virtual

Destructor.

Definition at line 546 of file qwt_plot_abstract_canvas.cpp.

Member Function Documentation

◆ borderRadius()

double QwtPlotAbstractCanvas::borderRadius ( ) const
Returns
Radius for the corners of the border frame
See also
setBorderRadius()

Definition at line 613 of file qwt_plot_abstract_canvas.cpp.

◆ canvasBorderPath()

QPainterPath QwtPlotAbstractCanvas::canvasBorderPath ( const QRect &  rect) const
protected
Returns
Path for the canvas border

Definition at line 619 of file qwt_plot_abstract_canvas.cpp.

◆ canvasWidget() [1/2]

const QWidget * QwtPlotAbstractCanvas::canvasWidget ( )
protected
Returns
canvas widget

Definition at line 872 of file qwt_plot_abstract_canvas.cpp.

◆ canvasWidget() [2/2]

const QWidget* QwtPlotAbstractCanvas::canvasWidget ( ) const
protected

◆ drawBackground()

void QwtPlotAbstractCanvas::drawBackground ( QPainter *  painter)
protectedvirtual

Helper function for the derived plot canvas.

Definition at line 690 of file qwt_plot_abstract_canvas.cpp.

◆ drawBorder()

void QwtPlotAbstractCanvas::drawBorder ( QPainter *  painter)
protectedvirtual

Draw the border of the canvas

Parameters
painterPainter

Reimplemented in QwtPlotCanvas.

Definition at line 628 of file qwt_plot_abstract_canvas.cpp.

◆ drawCanvas()

void QwtPlotAbstractCanvas::drawCanvas ( QPainter *  painter)
protected

Draw the plot to the canvas.

Definition at line 803 of file qwt_plot_abstract_canvas.cpp.

◆ drawFocusIndicator()

void QwtPlotAbstractCanvas::drawFocusIndicator ( QPainter *  painter)
protectedvirtual

Draw the focus indication

Parameters
painterPainter

Definition at line 587 of file qwt_plot_abstract_canvas.cpp.

◆ drawStyled()

void QwtPlotAbstractCanvas::drawStyled ( QPainter *  painter,
bool  hackStyledBackground 
)
protected

Helper function for the derived plot canvas.

Definition at line 744 of file qwt_plot_abstract_canvas.cpp.

◆ drawUnstyled()

void QwtPlotAbstractCanvas::drawUnstyled ( QPainter *  painter)
protected

Helper function for the derived plot canvas.

Definition at line 702 of file qwt_plot_abstract_canvas.cpp.

◆ fillBackground()

void QwtPlotAbstractCanvas::fillBackground ( QPainter *  painter)
protected

Helper function for the derived plot canvas.

Definition at line 696 of file qwt_plot_abstract_canvas.cpp.

◆ focusIndicator()

QwtPlotAbstractCanvas::FocusIndicator QwtPlotAbstractCanvas::focusIndicator ( ) const
Returns
Focus indicator
See also
FocusIndicator, setFocusIndicator()

Definition at line 578 of file qwt_plot_abstract_canvas.cpp.

◆ plot() [1/2]

const QwtPlot * QwtPlotAbstractCanvas::plot ( )

Return parent plot widget.

Definition at line 552 of file qwt_plot_abstract_canvas.cpp.

◆ plot() [2/2]

const QwtPlot* QwtPlotAbstractCanvas::plot ( ) const

◆ setBorderRadius()

void QwtPlotAbstractCanvas::setBorderRadius ( double  radius)

Set the radius for the corners of the border frame

Parameters
radiusRadius of a rounded corner
See also
borderRadius()

Definition at line 604 of file qwt_plot_abstract_canvas.cpp.

◆ setFocusIndicator()

void QwtPlotAbstractCanvas::setFocusIndicator ( FocusIndicator  focusIndicator)

Set the focus indicator

See also
FocusIndicator, focusIndicator()

Definition at line 568 of file qwt_plot_abstract_canvas.cpp.

◆ updateStyleSheetInfo()

void QwtPlotAbstractCanvas::updateStyleSheetInfo ( )
protected

Update the cached information about the current style sheet.

Definition at line 835 of file qwt_plot_abstract_canvas.cpp.

Member Data Documentation

◆ m_data

PrivateData* QwtPlotAbstractCanvas::m_data
private

Definition at line 80 of file qwt_plot_abstract_canvas.h.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:29