|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
定义箭头绘制例程的抽象接口。 更多...
#include <qwt_vectorfield_symbol.h>
Public 成员函数 | |
| QwtVectorFieldSymbol () | |
| Constructor | |
| virtual | ~QwtVectorFieldSymbol () |
| Destructor | |
| virtual void | setLength (qreal length)=0 |
| Set the length of the symbol/arrow | |
| virtual qreal | length () const =0 |
| Return the length of the symbol/arrow | |
| virtual void | paint (QPainter *) const =0 |
| Draw the symbol/arrow | |
定义箭头绘制例程的抽象接口。
箭头需要水平绘制,箭头尖端在坐标 0,0。 arrowLength() 应返回箭头的整个长度(需要 平移箭头以进行尾部/中心对齐)。 setArrowLength() 以像素为单位定义箭头长度(屏幕坐标)。它可以 被实现为调整其他几何属性,例如 箭头头部的大小和宽度。它 总是 在 paint() 之前被调用。
新的箭头实现可以通过 QwtPlotVectorField::setArrowSymbol() 设置, 所有权将转移到绘图字段。
| QwtVectorFieldSymbol::QwtVectorFieldSymbol | ( | ) |
Constructor
构造函数
|
virtual |
Destructor
析构函数
|
pure virtual |
Return the length of the symbol/arrow
在 QwtVectorFieldArrow , 以及 QwtVectorFieldThinArrow 内被实现.
|
pure virtual |
Draw the symbol/arrow
在 QwtVectorFieldArrow , 以及 QwtVectorFieldThinArrow 内被实现.
|
pure virtual |
Set the length of the symbol/arrow
在 QwtVectorFieldArrow , 以及 QwtVectorFieldThinArrow 内被实现.