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

Base class of QwtPlotOpenGLCanvas and QwtPlotGLCanvas 更多...

#include <qwt_plot_abstract_canvas.h>

类 QwtPlotAbstractGLCanvas 继承关系图:
QwtPlotAbstractCanvas QwtPlotGLCanvas QwtPlotOpenGLCanvas

class  PrivateData
 

Public 类型

enum  PaintAttribute { BackingStore = 1 , ImmediatePaint = 8 }
 Paint attributes 更多...
 
- Public 类型 继承自 QwtPlotAbstractCanvas
enum  FocusIndicator { NoFocusIndicator , CanvasFocusIndicator , ItemFocusIndicator }
 Focus indicator 更多...
 

Public 成员函数

 QwtPlotAbstractGLCanvas (QWidget *canvasWidget)
 Paint attributes
 
void setPaintAttribute (PaintAttribute, bool on=true)
 Changing the paint attributes
 
bool testPaintAttribute (PaintAttribute) const
 Test whether a paint attribute is enabled
 
void setFrameStyle (int style)
 Set the frame style
 
int frameStyle () const
 Get the frame style
 
void setFrameShadow (QFrame::Shadow)
 Set the frame shadow
 
QFrame::Shadow frameShadow () const
 Get the frame shadow
 
void setFrameShape (QFrame::Shape)
 Set the frame shape
 
QFrame::Shape frameShape () const
 Get the frame shape
 
void setLineWidth (int)
 Set the frame line width
 
int lineWidth () const
 Get the line width of the frame
 
void setMidLineWidth (int)
 Set the frame mid line width
 
int midLineWidth () const
 Get the midline width of the frame
 
int frameWidth () const
 Get the frame width depending on the style, line width and midline width
 
QRect frameRect () const
 Get the rectangle where the frame is drawn in
 
virtual void invalidateBackingStore ()=0
 Invalidate the internal backing store
 
- Public 成员函数 继承自 QwtPlotAbstractCanvas
 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 成员函数

void replot ()
 Invalidate the paint cache and repaint the canvas
 
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
 

详细描述

Base class of QwtPlotOpenGLCanvas and QwtPlotGLCanvas

成员枚举类型说明

◆ PaintAttribute

Paint attributes

The default setting enables BackingStore and Opaque.

参见
setPaintAttribute(), testPaintAttribute()
枚举值
BackingStore 

Paint double buffered reusing the content of the pixmap buffer when possible

Using a backing store might improve the performance significantly, when working with widget overlays (like rubber bands). Disabling the cache might improve the performance for incremental paints (using QwtPlotDirectPainter).

参见
backingStore(), invalidateBackingStore()
ImmediatePaint 

When ImmediatePaint is set replot() calls repaint() instead of update()

参见
replot(), QWidget::repaint(), QWidget::update()

构造及析构函数说明

◆ QwtPlotAbstractGLCanvas()

QwtPlotAbstractGLCanvas::QwtPlotAbstractGLCanvas ( QWidget *  canvasWidget)
explicit

Paint attributes

Constructor

参数
[in]canvasWidgetplot canvas widget

Destructor

成员函数说明

◆ frameRect()

QRect QwtPlotAbstractGLCanvas::frameRect ( ) const

Get the rectangle where the frame is drawn in

返回
The rectangle where the frame is drawn in

◆ frameShadow()

QFrame::Shadow QwtPlotAbstractGLCanvas::frameShadow ( ) const

Get the frame shadow

返回
Frame shadow
参见
setFrameShadow(), QFrame::setFrameShadow()

◆ frameShape()

QFrame::Shape QwtPlotAbstractGLCanvas::frameShape ( ) const

Get the frame shape

返回
Frame shape
参见
setFrameShape(), QFrame::frameShape()

◆ frameStyle()

int QwtPlotAbstractGLCanvas::frameStyle ( ) const

Get the frame style

返回
The bitwise OR between a frameShape() and a frameShadow()
参见
setFrameStyle(), QFrame::frameStyle()

◆ frameWidth()

int QwtPlotAbstractGLCanvas::frameWidth ( ) const

Get the frame width depending on the style, line width and midline width

返回
Frame width depending on the style, line width and midline width

◆ invalidateBackingStore()

virtual void QwtPlotAbstractGLCanvas::invalidateBackingStore ( )
pure virtual

Invalidate the internal backing store

QwtPlotGLCanvas , 以及 QwtPlotOpenGLCanvas 内被实现.

◆ lineWidth()

int QwtPlotAbstractGLCanvas::lineWidth ( ) const

Get the line width of the frame

返回
Line width of the frame
参见
setLineWidth(), midLineWidth()

◆ midLineWidth()

int QwtPlotAbstractGLCanvas::midLineWidth ( ) const

Get the midline width of the frame

返回
Midline width of the frame
参见
setMidLineWidth(), lineWidth()

◆ replot()

void QwtPlotAbstractGLCanvas::replot ( )
protected

Invalidate the paint cache and repaint the canvas

参见
invalidatePaintCache()

◆ setFrameShadow()

void QwtPlotAbstractGLCanvas::setFrameShadow ( QFrame::Shadow  shadow)

Set the frame shadow

参数
[in]shadowFrame shadow
参见
frameShadow(), setFrameShape(), QFrame::setFrameShadow()

◆ setFrameShape()

void QwtPlotAbstractGLCanvas::setFrameShape ( QFrame::Shape  shape)

Set the frame shape

参数
[in]shapeFrame shape
参见
frameShape(), setFrameShadow(), QFrame::frameShape()

◆ setFrameStyle()

void QwtPlotAbstractGLCanvas::setFrameStyle ( int  style)

Set the frame style

参数
[in]styleThe bitwise OR between a shape and a shadow
参见
frameStyle(), QFrame::setFrameStyle(), setFrameShadow(), setFrameShape()

◆ setLineWidth()

void QwtPlotAbstractGLCanvas::setLineWidth ( int  width)

Set the frame line width

The default line width is 2 pixels.

参数
[in]widthLine width of the frame
参见
lineWidth(), setMidLineWidth()

◆ setMidLineWidth()

void QwtPlotAbstractGLCanvas::setMidLineWidth ( int  width)

Set the frame mid line width

The default midline width is 0 pixels.

参数
[in]widthMidline width of the frame
参见
midLineWidth(), setLineWidth()

◆ setPaintAttribute()

void QwtPlotAbstractGLCanvas::setPaintAttribute ( PaintAttribute  attribute,
bool  on = true 
)

Changing the paint attributes

参数
[in]attributePaint attribute
[in]onOn/Off
参见
testPaintAttribute()

◆ testPaintAttribute()

bool QwtPlotAbstractGLCanvas::testPaintAttribute ( PaintAttribute  attribute) const

Test whether a paint attribute is enabled

参数
[in]attributePaint attribute
返回
true, when attribute is enabled
参见
setPaintAttribute()

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