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

QwtPlotOpenGLCanvasQwtPlotGLCanvas 的基类 更多...

#include <qwt_plot_abstract_canvas.h>

类 QwtPlotAbstractGLCanvas 继承关系图:
QwtPlotAbstractCanvas QwtPlotGLCanvas QwtPlotOpenGLCanvas

class  PrivateData
 

Public 类型

enum  PaintAttribute { BackingStore = 1 , ImmediatePaint = 8 }
 绘制属性 更多...
 
- Public 类型 继承自 QwtPlotAbstractCanvas
enum  FocusIndicator { NoFocusIndicator , CanvasFocusIndicator , ItemFocusIndicator }
 焦点指示器 更多...
 

Public 成员函数

 QwtPlotAbstractGLCanvas (QWidget *canvasWidget)
 Paint attributes
 
virtual ~QwtPlotAbstractGLCanvas ()
 析构函数
 
void setPaintAttribute (PaintAttribute, bool on=true)
 更改绘制属性
 
bool testPaintAttribute (PaintAttribute) const
 测试绘制属性是否启用
 
void setFrameStyle (int style)
 设置框架样式
 
int frameStyle () const
 获取框架样式
 
void setFrameShadow (QFrame::Shadow)
 设置框架阴影
 
QFrame::Shadow frameShadow () const
 获取框架阴影
 
void setFrameShape (QFrame::Shape)
 设置框架形状
 
QFrame::Shape frameShape () const
 获取框架形状
 
void setLineWidth (int)
 设置框架线宽度
 
int lineWidth () const
 获取框架的线宽度
 
void setMidLineWidth (int)
 设置框架中线宽度
 
int midLineWidth () const
 获取框架的中线宽度
 
int frameWidth () const
 获取框架宽度,取决于样式、线宽和中线宽度
 
QRect frameRect () const
 获取绘制框架的矩形区域
 
virtual void invalidateBackingStore ()=0
 Invalidate the internal backing store
 
- Public 成员函数 继承自 QwtPlotAbstractCanvas
 QwtPlotAbstractCanvas (QWidget *canvasWidget)
 构造函数
 
virtual ~QwtPlotAbstractCanvas ()
 析构函数
 
QwtPlotplot ()
 返回父绘图部件
 
const QwtPlotplot () const
 返回父绘图部件
 
void setFocusIndicator (FocusIndicator)
 设置焦点指示器
 
FocusIndicator focusIndicator () const
 获取焦点指示器
 
void setBorderRadius (double)
 设置边框框架角落的半径
 
double borderRadius () const
 获取边框框架角落的半径
 

Protected 成员函数

void replot ()
 使绘制缓存失效并重绘画布
 
void draw (QPainter *)
 Helper function for the derived plot canvas
 
- Protected 成员函数 继承自 QwtPlotAbstractCanvas
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
 

详细描述

QwtPlotOpenGLCanvasQwtPlotGLCanvas 的基类

成员枚举类型说明

◆ PaintAttribute

绘制属性

枚举值
BackingStore 

尽可能重用像素映射缓冲区内容进行双缓冲绘制

ImmediatePaint 

当设置 ImmediatePaint 时,replot() 调用 repaint() 而不是 update()

构造及析构函数说明

◆ QwtPlotAbstractGLCanvas()

QwtPlotAbstractGLCanvas::QwtPlotAbstractGLCanvas ( QWidget *  canvasWidget)
explicit

Paint attributes

构造函数

◆ ~QwtPlotAbstractGLCanvas()

QwtPlotAbstractGLCanvas::~QwtPlotAbstractGLCanvas ( )
virtual

析构函数

成员函数说明

◆ frameRect()

QRect QwtPlotAbstractGLCanvas::frameRect ( ) const

获取绘制框架的矩形区域

◆ frameShadow()

QFrame::Shadow QwtPlotAbstractGLCanvas::frameShadow ( ) const

获取框架阴影

◆ frameShape()

QFrame::Shape QwtPlotAbstractGLCanvas::frameShape ( ) const

获取框架形状

◆ frameStyle()

int QwtPlotAbstractGLCanvas::frameStyle ( ) const

获取框架样式

◆ frameWidth()

int QwtPlotAbstractGLCanvas::frameWidth ( ) const

获取框架宽度,取决于样式、线宽和中线宽度

◆ invalidateBackingStore()

virtual void QwtPlotAbstractGLCanvas::invalidateBackingStore ( )
pure virtual

Invalidate the internal backing store

QwtPlotGLCanvas , 以及 QwtPlotOpenGLCanvas 内被实现.

◆ lineWidth()

int QwtPlotAbstractGLCanvas::lineWidth ( ) const

获取框架的线宽度

◆ midLineWidth()

int QwtPlotAbstractGLCanvas::midLineWidth ( ) const

获取框架的中线宽度

◆ replot()

void QwtPlotAbstractGLCanvas::replot ( )
protected

使绘制缓存失效并重绘画布

◆ 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

测试绘制属性是否启用


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