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

Arrow implementation that only used lines, with optionally a filled arrow or only lines. 更多...

#include <qwt_vectorfield_symbol.h>

类 QwtVectorFieldThinArrow 继承关系图:
QwtVectorFieldSymbol

class  PrivateData
 

Public 成员函数

 QwtVectorFieldThinArrow (qreal headWidth=6.0)
 Constructor with head width parameter
 
virtual ~QwtVectorFieldThinArrow () 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 only used lines, with optionally a filled arrow or only lines.

构造及析构函数说明

◆ QwtVectorFieldThinArrow()

QwtVectorFieldThinArrow::QwtVectorFieldThinArrow ( qreal  headWidth = 6.0)

Constructor with head width parameter

Constructor

The length is initialized by headWidth + 4

参数
headWidthWidth of the triangular head
参见
setLength()

成员函数说明

◆ length()

qreal QwtVectorFieldThinArrow::length ( ) const
overridevirtual

Return the length of the arrow

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

实现了 QwtVectorFieldSymbol.

◆ paint()

void QwtVectorFieldThinArrow::paint ( QPainter *  p) const
overridevirtual

Draw the arrow

Draw the arrow using QPainter

参数
[in]pPainter to use for drawing

实现了 QwtVectorFieldSymbol.

◆ setLength()

void QwtVectorFieldThinArrow::setLength ( qreal  length)
overridevirtual

Set the length of the arrow

Adjusts the head width proportionally when length is very small

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

实现了 QwtVectorFieldSymbol.


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