QwtIntervalSymbol Class Reference
A drawing primitive for displaying an interval like an error bar.
More...
#include <qwt_interval_symbol.h>
List of all members.
Detailed Description
A drawing primitive for displaying an interval like an error bar.
- See also:
- QwtPlotIntervalCurve
Member Enumeration Documentation
- 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.
- See also:
- setStyle(), style()
Constructor & Destructor Documentation
QwtIntervalSymbol::QwtIntervalSymbol |
( |
Style |
style = NoSymbol |
) |
|
QwtIntervalSymbol::~QwtIntervalSymbol |
( |
|
) |
[virtual] |
Member Function Documentation
const QBrush & QwtIntervalSymbol::brush |
( |
|
) |
const |
void QwtIntervalSymbol::draw |
( |
QPainter * |
painter, |
|
|
Qt::Orientation |
orientation, |
|
|
const QPointF & |
from, |
|
|
const QPointF & |
to | |
|
) |
| | const [virtual] |
Draw a symbol depending on its style
- Parameters:
-
| painter | Painter |
| from | Start point of the interval in target device coordinates |
| to | End point of the interval in target device coordinates |
- See also:
- setStyle()
const QPen & QwtIntervalSymbol::pen |
( |
|
) |
const |
void QwtIntervalSymbol::setBrush |
( |
const QBrush & |
brush |
) |
|
Assign a brush.
The brush is used for the Box style.
- Parameters:
-
- See also:
- brush()
void QwtIntervalSymbol::setPen |
( |
const QPen & |
pen |
) |
|
void QwtIntervalSymbol::setStyle |
( |
Style |
style |
) |
|
Specify the symbol style
- Parameters:
-
- See also:
- style(), Style
void QwtIntervalSymbol::setWidth |
( |
int |
width |
) |
|
Specify the width of the symbol It is used depending on the style.
- Parameters:
-
- See also:
- width(), setStyle()
int QwtIntervalSymbol::width |
( |
|
) |
const |