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

QwtPlot 的替代画布,派生自 QOpenGLWidget 更多...

#include <qwt_plot_opengl_canvas.h>

类 QwtPlotOpenGLCanvas 继承关系图:
QwtPlotAbstractGLCanvas QwtPlotAbstractCanvas

class  PrivateData
 

Public 槽

void replot ()
 重绘画布
 

Public 成员函数

 QwtPlotOpenGLCanvas (QwtPlot *=nullptr)
 构造函数
 
 QwtPlotOpenGLCanvas (const QSurfaceFormat &, QwtPlot *=nullptr)
 构造函数(带表面格式)
 
virtual ~QwtPlotOpenGLCanvas ()
 析构函数
 
virtual Q_INVOKABLE void invalidateBackingStore () override
 使后备存储失效
 
Q_INVOKABLE QPainterPath borderPath (const QRect &) const
 获取边界路径
 
virtual bool event (QEvent *) override
 处理事件
 
- Public 成员函数 继承自 QwtPlotAbstractGLCanvas
 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
 获取绘制框架的矩形区域
 
- Public 成员函数 继承自 QwtPlotAbstractCanvas
 QwtPlotAbstractCanvas (QWidget *canvasWidget)
 构造函数
 
virtual ~QwtPlotAbstractCanvas ()
 析构函数
 
QwtPlotplot ()
 返回父绘图部件
 
const QwtPlotplot () const
 返回父绘图部件
 
void setFocusIndicator (FocusIndicator)
 设置焦点指示器
 
FocusIndicator focusIndicator () const
 获取焦点指示器
 
void setBorderRadius (double)
 设置边框框架角落的半径
 
double borderRadius () const
 获取边框框架角落的半径
 

Protected 成员函数

virtual void paintEvent (QPaintEvent *) override
 Paint event
 
virtual void initializeGL () override
 No operation - reserved for some potential use in the future
 
virtual void paintGL () override
 Paint the plot
 
virtual void resizeGL (int width, int height) override
 No operation - reserved for some potential use in the future
 
- Protected 成员函数 继承自 QwtPlotAbstractGLCanvas
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
 

属性

QFrame::Shadow frameShadow
 
QFrame::Shape frameShape
 
int lineWidth
 
int midLineWidth
 
int frameWidth
 
QRect frameRect
 
double borderRadius
 

额外继承的成员函数

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

详细描述

QwtPlot 的替代画布,派生自 QOpenGLWidget

构造及析构函数说明

◆ QwtPlotOpenGLCanvas() [1/2]

QwtPlotOpenGLCanvas::QwtPlotOpenGLCanvas ( QwtPlot plot = nullptr)
explicit

构造函数

构造函数

◆ QwtPlotOpenGLCanvas() [2/2]

QwtPlotOpenGLCanvas::QwtPlotOpenGLCanvas ( const QSurfaceFormat &  format,
QwtPlot plot = nullptr 
)
explicit

构造函数(带表面格式)

构造函数

◆ ~QwtPlotOpenGLCanvas()

QwtPlotOpenGLCanvas::~QwtPlotOpenGLCanvas ( )
virtual

析构函数

析构函数

成员函数说明

◆ borderPath()

QPainterPath QwtPlotOpenGLCanvas::borderPath ( const QRect &  rect) const

获取边界路径

计算样式化或圆角边界的绘制路径

◆ event()

bool QwtPlotOpenGLCanvas::event ( QEvent *  event)
overridevirtual

处理事件

Qt 事件处理器,处理 QEvent::PolishRequest 和 QEvent::StyleChange

◆ initializeGL()

void QwtPlotOpenGLCanvas::initializeGL ( )
overrideprotectedvirtual

No operation - reserved for some potential use in the future

◆ invalidateBackingStore()

void QwtPlotOpenGLCanvas::invalidateBackingStore ( )
overridevirtual

使后备存储失效

使内部后备存储失效

实现了 QwtPlotAbstractGLCanvas.

◆ paintEvent()

void QwtPlotOpenGLCanvas::paintEvent ( QPaintEvent *  event)
overrideprotectedvirtual

Paint event

参数
eventPaint event
参见
QwtPlot::drawCanvas()

◆ paintGL()

void QwtPlotOpenGLCanvas::paintGL ( )
overrideprotectedvirtual

Paint the plot

◆ replot

void QwtPlotOpenGLCanvas::replot ( )
slot

重绘画布

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

◆ resizeGL()

void QwtPlotOpenGLCanvas::resizeGL ( int  width,
int  height 
)
overrideprotectedvirtual

No operation - reserved for some potential use in the future


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