|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
柱的绘图基元 更多...
#include <qwt_column_symbol.h>
类 | |
| class | PrivateData |
Public 类型 | |
| enum | Style { NoStyle = -1 , Box , UserStyle = 1000 } |
| enum | FrameStyle { NoFrame , Plain , Raised } |
Public 成员函数 | |
| QwtColumnSymbol (Style=NoStyle) | |
| Constructor with style parameter | |
| virtual | ~QwtColumnSymbol () |
| Destructor | |
| void | setFrameStyle (FrameStyle) |
| Set the frame style | |
| FrameStyle | frameStyle () const |
| Return the frame style | |
| void | setLineWidth (int width) |
| Set the line width for the frame | |
| int | lineWidth () const |
| Return the line width | |
| void | setStyle (Style) |
| Set the column style | |
| Style | style () const |
| Return the column style | |
| void | setPen (const QPen &pen) |
| Set the outline pen | |
| QPen | pen () const |
| Return the outline pen | |
| void | setBrush (const QBrush &b) |
| Set the fill brush | |
| QBrush | brush () const |
| Return the fill brush | |
| virtual void | draw (QPainter *, const QwtColumnRect &) const |
| Draw the column symbol | |
Protected 成员函数 | |
| void | drawBox (QPainter *, const QwtColumnRect &) const |
柱的绘图基元
Box 样式中使用的框架样式
| 枚举值 | |
|---|---|
| NoFrame | 无框架 |
| Plain | 普通框架样式 |
| Raised | 凸起框架样式 |
样式
| 枚举值 | |
|---|---|
| NoStyle | 无样式,符号不绘制任何内容 |
| Box | 柱根据 frameStyle() 和 lineWidth() 使用 palette() 绘制一个框架。 |
| UserStyle | 样式 >= QwtColumnSymbol::UserStyle 保留给 QwtColumnSymbol 的派生类, 这些类重载 draw() 以添加特定于应用程序的符号类型。 |
Constructor with style parameter
构造函数
|
virtual |
Destructor
析构函数
| QBrush QwtColumnSymbol::brush | ( | ) | const |
Return the fill brush
返回填充画刷
|
virtual |
Draw the column symbol
根据样式绘制符号
| QwtColumnSymbol::FrameStyle QwtColumnSymbol::frameStyle | ( | ) | const |
Return the frame style
返回 Box 样式使用的当前框架样式
| int QwtColumnSymbol::lineWidth | ( | ) | const |
Return the line width
返回 Box 样式使用的框架线宽
| QPen QwtColumnSymbol::pen | ( | ) | const |
Return the outline pen
返回轮廓画笔
| void QwtColumnSymbol::setBrush | ( | const QBrush & | b | ) |
Set the fill brush
指定填充画刷
| void QwtColumnSymbol::setFrameStyle | ( | FrameStyle | frameStyle | ) |
Set the frame style
设置 Box 样式使用的框架样式
| void QwtColumnSymbol::setLineWidth | ( | int | width | ) |
Set the line width for the frame
设置 Box 样式使用的框架线宽
| void QwtColumnSymbol::setPen | ( | const QPen & | pen | ) |
Set the outline pen
指定轮廓画笔
| void QwtColumnSymbol::setStyle | ( | Style | style | ) |
Set the column style
指定符号样式
| QwtColumnSymbol::Style QwtColumnSymbol::style | ( | ) | const |
Return the column style
返回当前符号样式