|
Qwt User's Guide
6.0.2
|
#include <qwt_interval_symbol.h>
Public Types | |
| enum | Style { NoSymbol = -1, Bar, Box, UserSymbol = 1000 } |
Public Member Functions | |
| QwtIntervalSymbol (Style=NoSymbol) | |
| QwtIntervalSymbol (const QwtIntervalSymbol &) | |
| virtual | ~QwtIntervalSymbol () |
| const QBrush & | brush () const |
| virtual void | draw (QPainter *, Qt::Orientation, const QPointF &from, const QPointF &to) const |
| bool | operator!= (const QwtIntervalSymbol &) const |
| QwtIntervalSymbol & | operator= (const QwtIntervalSymbol &) |
| bool | operator== (const QwtIntervalSymbol &) const |
| const QPen & | pen () const |
| void | setBrush (const QBrush &b) |
| void | setPen (const QPen &) |
| void | setStyle (Style) |
| void | setWidth (int) |
| Style | style () const |
| int | width () const |
A drawing primitive for displaying an interval like an error bar.
Symbol style.
| NoSymbol |
No Style. The symbol cannot be drawn. |
| Bar |
The symbol displays a line with caps at the beginning/end. The size of the caps depends on the symbol width(). |
| Box |
The symbol displays a plain rectangle using pen() and brush(). The size of the rectangle depends on the translated interval and the width(), |
| UserSymbol |
Styles >= UserSymbol are reserved for derived classes of QwtIntervalSymbol that overload draw() with additional application specific symbol types. |
| const QBrush & QwtIntervalSymbol::brush | ( | ) | const |
|
virtual |
Draw a symbol depending on its style
| painter | Painter |
| orientation | Orientation |
| from | Start point of the interval in target device coordinates |
| to | End point of the interval in target device coordinates |
| void QwtIntervalSymbol::setBrush | ( | const QBrush & | brush | ) |
| void QwtIntervalSymbol::setPen | ( | const QPen & | pen | ) |
| void QwtIntervalSymbol::setStyle | ( | Style | style | ) |
| void QwtIntervalSymbol::setWidth | ( | int | width | ) |
Specify the width of the symbol It is used depending on the style.
| width | Width |
| QwtIntervalSymbol::Style QwtIntervalSymbol::style | ( | ) | const |
| int QwtIntervalSymbol::width | ( | ) | const |
1.8.1