|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
Arrow implementation that only used lines, with optionally a filled arrow or only lines. 更多...
#include <qwt_vectorfield_symbol.h>
类 | |
| 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 | ( | qreal | headWidth = 6.0 | ) |
Constructor with head width parameter
Constructor
The length is initialized by headWidth + 4
| headWidth | Width of the triangular head |
|
overridevirtual |
|
overridevirtual |
Draw the arrow
Draw the arrow using QPainter
| [in] | p | Painter to use for drawing |
实现了 QwtVectorFieldSymbol.
|
overridevirtual |
Set the length of the arrow
Adjusts the head width proportionally when length is very small
| [in] | length | Length of the arrow in pixels |
实现了 QwtVectorFieldSymbol.