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

Arrow implementation that draws a filled arrow with outline, using a triangular head of constant width. 更多...

#include <qwt_vectorfield_symbol.h>

类 QwtVectorFieldArrow 继承关系图:
QwtVectorFieldSymbol

class  PrivateData
 

Public 成员函数

 QwtVectorFieldArrow (qreal headWidth=6.0, qreal tailWidth=1.0)
 Constructor with head and tail width parameters
 
virtual ~QwtVectorFieldArrow () override
 Destructor
 
virtual void setLength (qreal length) override
 Set the length of the arrow
 
virtual qreal length () const override
 Return the length of the arrow
 
virtual void paint (QPainter *) const override
 Draw the arrow
 
- Public 成员函数 继承自 QwtVectorFieldSymbol
 QwtVectorFieldSymbol ()
 Constructor
 
virtual ~QwtVectorFieldSymbol ()
 Destructor
 

详细描述

Arrow implementation that draws a filled arrow with outline, using a triangular head of constant width.

构造及析构函数说明

◆ QwtVectorFieldArrow()

QwtVectorFieldArrow::QwtVectorFieldArrow ( qreal  headWidth = 6.0,
qreal  tailWidth = 1.0 
)

Constructor with head and tail width parameters

Constructor

The length is initialized by headWidth + 4

参数
headWidthWidth of the triangular head
tailWidthWidth of the arrow tail
参见
setLength()

成员函数说明

◆ length()

qreal QwtVectorFieldArrow::length ( ) const
overridevirtual

Return the length of the arrow

返回
Length of the arrow in pixels
参见
setLength()

实现了 QwtVectorFieldSymbol.

◆ paint()

void QwtVectorFieldArrow::paint ( QPainter *  painter) const
overridevirtual

Draw the arrow

Draw the arrow using QPainter

参数
[in]painterPainter to use for drawing

实现了 QwtVectorFieldSymbol.

◆ setLength()

void QwtVectorFieldArrow::setLength ( qreal  length)
overridevirtual

Set the length of the arrow

参数
[in]lengthLength of the arrow in pixels
参见
length()

实现了 QwtVectorFieldSymbol.


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