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

所有类型绘图画布的基类 更多...

#include <qwt_plot_abstract_canvas.h>

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

class  PrivateData
 

Public 类型

enum  FocusIndicator { NoFocusIndicator , CanvasFocusIndicator , ItemFocusIndicator }
 焦点指示器 更多...
 

Public 成员函数

 QwtPlotAbstractCanvas (QWidget *canvasWidget)
 构造函数
 
virtual ~QwtPlotAbstractCanvas ()
 析构函数
 
QwtPlotplot ()
 返回父绘图部件
 
const QwtPlotplot () const
 返回父绘图部件
 
void setFocusIndicator (FocusIndicator)
 设置焦点指示器
 
FocusIndicator focusIndicator () const
 获取焦点指示器
 
void setBorderRadius (double)
 设置边框框架角落的半径
 
double borderRadius () const
 获取边框框架角落的半径
 

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
 

详细描述

所有类型绘图画布的基类

成员枚举类型说明

◆ FocusIndicator

焦点指示器

枚举值
NoFocusIndicator 

不绘制焦点指示器

CanvasFocusIndicator 

焦点与整个画布相关。 使用 drawFocusIndicator() 绘制焦点指示器

ItemFocusIndicator 

焦点与画布上的项目(曲线、点等)相关。 由应用程序决定如何显示焦点指示,例如通过高亮。

构造及析构函数说明

◆ QwtPlotAbstractCanvas()

QwtPlotAbstractCanvas::QwtPlotAbstractCanvas ( QWidget *  canvasWidget)
explicit

构造函数

◆ ~QwtPlotAbstractCanvas()

QwtPlotAbstractCanvas::~QwtPlotAbstractCanvas ( )
virtual

析构函数

成员函数说明

◆ borderRadius()

double QwtPlotAbstractCanvas::borderRadius ( ) const

获取边框框架角落的半径

◆ 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

获取焦点指示器

◆ plot() [1/2]

QwtPlot * QwtPlotAbstractCanvas::plot ( )

返回父绘图部件

◆ plot() [2/2]

const QwtPlot * QwtPlotAbstractCanvas::plot ( ) const

返回父绘图部件

◆ setBorderRadius()

void QwtPlotAbstractCanvas::setBorderRadius ( double  radius)

设置边框框架角落的半径

◆ setFocusIndicator()

void QwtPlotAbstractCanvas::setFocusIndicator ( FocusIndicator  focusIndicator)

设置焦点指示器


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