QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
| Public 类型 | Public 成员函数 | Protected 成员函数 | 所有成员列表
QwtPlotAbstractCanvas类 参考

Base class for all type of plot canvases 更多...

#include <qwt_plot_abstract_canvas.h>

类 QwtPlotAbstractCanvas 继承关系图:
QwtPlotAbstractGLCanvas QwtPlotCanvas QwtPlotTransparentCanvas QwtPlotGLCanvas QwtPlotOpenGLCanvas

class  PrivateData
 

Public 类型

enum  FocusIndicator { NoFocusIndicator , CanvasFocusIndicator , ItemFocusIndicator }
 Focus indicator 更多...
 

Public 成员函数

 QwtPlotAbstractCanvas (QWidget *canvasWidget)
 Constructor
 
QwtPlotplot ()
 Return parent plot widget
 
const QwtPlotplot () const
 Return parent plot widget
 
void setFocusIndicator (FocusIndicator)
 Set the focus indicator
 
FocusIndicator focusIndicator () const
 Get the focus indicator
 
void setBorderRadius (double)
 Set the radius for the corners of the border frame
 
double borderRadius () const
 Get the radius for the corners of the border frame
 

Protected 成员函数

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
 

详细描述

Base class for all type of plot canvases

成员枚举类型说明

◆ FocusIndicator

Focus indicator

The default setting is NoFocusIndicator

参见
setFocusIndicator(), focusIndicator(), drawFocusIndicator()
枚举值
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 e.g. highlighting.

构造及析构函数说明

◆ QwtPlotAbstractCanvas()

QwtPlotAbstractCanvas::QwtPlotAbstractCanvas ( QWidget *  canvasWidget)
explicit

Constructor

参数
[in]canvasWidgetplot canvas widget

Destructor

成员函数说明

◆ borderRadius()

double QwtPlotAbstractCanvas::borderRadius ( ) const

Get the radius for the corners of the border frame

返回
Radius for the corners of the border frame
参见
setBorderRadius()

◆ canvasBorderPath()

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

◆ canvasWidget() [1/2]

QWidget * QwtPlotAbstractCanvas::canvasWidget ( )
protected
返回
canvas widget

◆ canvasWidget() [2/2]

const QWidget * QwtPlotAbstractCanvas::canvasWidget ( ) const
protected
返回
canvas widget

◆ drawBorder()

void QwtPlotAbstractCanvas::drawBorder ( QPainter *  painter)
protectedvirtual

Draw the border of the canvas

参数
painterPainter

QwtPlotCanvas , 以及 QwtPlotTransparentCanvas 重载.

◆ drawFocusIndicator()

void QwtPlotAbstractCanvas::drawFocusIndicator ( QPainter *  painter)
protectedvirtual

Draw the focus indication

参数
painterPainter

◆ focusIndicator()

QwtPlotAbstractCanvas::FocusIndicator QwtPlotAbstractCanvas::focusIndicator ( ) const

Get the focus indicator

返回
Focus indicator
参见
FocusIndicator, setFocusIndicator()

◆ plot() [1/2]

QwtPlot * QwtPlotAbstractCanvas::plot ( )

Return parent plot widget

返回
Parent plot widget

◆ plot() [2/2]

const QwtPlot * QwtPlotAbstractCanvas::plot ( ) const

Return parent plot widget

返回
Parent plot widget

◆ setBorderRadius()

void QwtPlotAbstractCanvas::setBorderRadius ( double  radius)

Set the radius for the corners of the border frame

参数
[in]radiusRadius of a rounded corner
参见
borderRadius()

◆ setFocusIndicator()

void QwtPlotAbstractCanvas::setFocusIndicator ( FocusIndicator  focusIndicator)

Set the focus indicator

参数
[in]focusIndicatorFocus indicator type
参见
FocusIndicator, focusIndicator()

该类的文档由以下文件生成: