|
QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
|
A drawing primitive for displaying an interval like an error bar. More...
#include <qwt_interval_symbol.h>
Classes | |
| class | PrivateData |
Public Types | |
| enum | Style { NoSymbol = -1 , Bar , Box , UserSymbol = 1000 } |
| Symbol style More... | |
Public Member Functions | |
| QwtIntervalSymbol (Style=NoSymbol) | |
| Constructor. | |
| QwtIntervalSymbol (const QwtIntervalSymbol &) | |
| Copy constructor. | |
| virtual | ~QwtIntervalSymbol () |
| Destructor . | |
| QwtIntervalSymbol & | operator= (const QwtIntervalSymbol &) |
| Assignment operator. | |
| bool | operator== (const QwtIntervalSymbol &) const |
| Compare two symbols. | |
| bool | operator!= (const QwtIntervalSymbol &) const |
| Compare two symbols. | |
| void | setWidth (int) |
| Specify the width of the symbol. | |
| int | width () const |
| Get the width of the symbol. | |
| void | setBrush (const QBrush &) |
| Assign a brush. | |
| const QBrush & | brush () const |
| Get the brush. | |
| void | setPen (const QColor &, qreal width=0.0, Qt::PenStyle=Qt::SolidLine) |
| Build and assign a pen. | |
| void | setPen (const QPen &) |
| Assign a pen. | |
| const QPen & | pen () const |
| Get the pen. | |
| void | setStyle (Style) |
| Specify the symbol style. | |
| Style | style () const |
| Get the current symbol style. | |
| virtual void | draw (QPainter *, Qt::Orientation, const QPointF &from, const QPointF &to) const |
| Draw a symbol depending on its style. | |
A drawing primitive for displaying an interval like an error bar.
Symbol style
| Enumerator | |
|---|---|
| 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. |
| QwtIntervalSymbol::QwtIntervalSymbol | ( | const QwtIntervalSymbol & | other | ) |
Copy constructor.
|
virtual |
Destructor .
| const QBrush & QwtIntervalSymbol::brush | ( | ) | const |
Get the brush.
|
virtual |
Draw a symbol depending on its style.
| bool QwtIntervalSymbol::operator!= | ( | const QwtIntervalSymbol & | other | ) | const |
Compare two symbols.
| QwtIntervalSymbol & QwtIntervalSymbol::operator= | ( | const QwtIntervalSymbol & | other | ) |
Assignment operator.
| bool QwtIntervalSymbol::operator== | ( | const QwtIntervalSymbol & | other | ) | const |
Compare two symbols.
| const QPen & QwtIntervalSymbol::pen | ( | ) | const |
Get the pen.
| void QwtIntervalSymbol::setBrush | ( | const QBrush & | brush | ) |
Assign a brush.
| void QwtIntervalSymbol::setPen | ( | const QColor & | color, |
| qreal | width = 0.0, |
||
| Qt::PenStyle | style = Qt::SolidLine |
||
| ) |
Build and assign a pen.
| void QwtIntervalSymbol::setPen | ( | const QPen & | pen | ) |
Assign a pen.
| void QwtIntervalSymbol::setStyle | ( | Style | style | ) |
Specify the symbol style.
| void QwtIntervalSymbol::setWidth | ( | int | width | ) |
Specify the width of the symbol.
| QwtIntervalSymbol::Style QwtIntervalSymbol::style | ( | ) | const |
Get the current symbol style.
| int QwtIntervalSymbol::width | ( | ) | const |
Get the width of the symbol.