|
QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
|
A flat color legend. More...
#include <qwt3d_colorlegend.h>
Classes | |
| class | PrivateData |
Public Member Functions | |
| void | draw (const Qwt3DRenderContext &ctx) override |
| Draws the color legend using VBO + polygon/line shaders. | |
| void | setRelPosition (Tuple relMin, Tuple relMax) |
| void | setPosition (Position pos) |
| void | setAbsolutePosition (const QRectF &pixelRect) |
| Position | position () const |
| QRectF | absolutePosition () const |
| 返回绝对像素位置 | |
| bool | useAbsolutePosition () const |
| 返回是否使用绝对定位 | |
| ORIENTATION | orientation () const |
| 返回图例方向 | |
| SCALEPOSITION | scalePosition () const |
| 返回刻度位置 | |
| bool | drawScale () const |
| 返回是否绘制刻度 | |
| void | limits (double &start, double &stop) const |
| 返回刻度范围 | |
| int | majors () const |
| 返回主刻度数 | |
| int | minors () const |
| 返回次刻度数 | |
| QString | titleString () const |
| 返回图例标题文本 | |
| void | setOrientation (ORIENTATION, SCALEPOSITION) |
| void | setLimits (double start, double stop) |
| void | setMajors (int) |
| void | setMinors (int) |
| void | drawScale (bool val) |
| void | drawNumbers (bool val) |
| void | setAutoScale (bool val) |
| void | setScale (Qwt3DScale *scale) |
| void | setScale (SCALETYPE) |
| void | setTitleString (QString const &s) |
| void | setTitleFont (QString const &family, int pointSize, int weight=QFont::Normal, bool italic=false) |
Public Member Functions inherited from Qwt3DDrawable | |
| void | attach (Qwt3DDrawable *) |
| void | detach (Qwt3DDrawable *) |
| void | detachAll () |
| virtual void | setColor (double r, double g, double b, double a=1) |
| virtual void | setColor (RGBA rgba) |
| RGBA | color () const |
| Returns the drawable's color. | |
Public Attributes | |
| ColorVector | colors |
Additional Inherited Members | |
Protected Member Functions inherited from Qwt3DDrawable | |
| Qwt3DDrawable (Qwt3DDrawable &&other) noexcept | |
| Qwt3DDrawable & | operator= (Qwt3DDrawable &&other) noexcept |
Protected Attributes inherited from Qwt3DDrawable | |
| RGBA | m_color |
A flat color legend.
The class visualizes a ColorVector together with a scale (axis) and a caption. ColorLegends are vertical or horizontal.
| QRectF Qwt3DColorLegend::absolutePosition | ( | ) | const |
返回绝对像素位置
|
overridevirtual |
Draws the color legend using VBO + polygon/line shaders.
| ctx | Render context providing shaders, matrices, and coordinate conversion |
Renders the color bar as a set of quads using VBO + polygon shader, the border outline using VBO + line shader, then delegates axis and caption drawing to their respective draw() methods.
Reimplemented from Qwt3DDrawable.
| bool Qwt3DColorLegend::drawScale | ( | ) | const |
返回是否绘制刻度
| void Qwt3DColorLegend::limits | ( | double & | start, |
| double & | stop | ||
| ) | const |
返回刻度范围
| [out] | start | 起始值 |
| [out] | stop | 终止值 |
| int Qwt3DColorLegend::majors | ( | ) | const |
返回主刻度数
| int Qwt3DColorLegend::minors | ( | ) | const |
返回次刻度数
| Qwt3DColorLegend::ORIENTATION Qwt3DColorLegend::orientation | ( | ) | const |
返回图例方向
| Qwt3DColorLegend::SCALEPOSITION Qwt3DColorLegend::scalePosition | ( | ) | const |
返回刻度位置
| QString Qwt3DColorLegend::titleString | ( | ) | const |
返回图例标题文本
| bool Qwt3DColorLegend::useAbsolutePosition | ( | ) | const |
返回是否使用绝对定位