|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
Arrow implementation that draws a filled arrow with outline, using a triangular head of constant width. 更多...
#include <qwt_vectorfield_symbol.h>
类 | |
| 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 | ( | qreal | headWidth = 6.0, |
| qreal | tailWidth = 1.0 |
||
| ) |
Constructor with head and tail width parameters
Constructor
The length is initialized by headWidth + 4
| headWidth | Width of the triangular head |
| tailWidth | Width of the arrow tail |
|
overridevirtual |
|
overridevirtual |
Draw the arrow
Draw the arrow using QPainter
| [in] | painter | Painter to use for drawing |
实现了 QwtVectorFieldSymbol.
|
overridevirtual |
Set the length of the arrow
| [in] | length | Length of the arrow in pixels |
实现了 QwtVectorFieldSymbol.