Ubuntu Manpages

QwtIntervalSymbol

A drawing primitive for displaying an interval like an error bar.

#include <qwt_interval_symbol.h>


enum Style { NoSymbol = -1, Bar, Box, UserSymbol = 1000 }


QwtIntervalSymbol (Style=NoSymbol)
QwtIntervalSymbol (const QwtIntervalSymbol &)
virtual ~QwtIntervalSymbol ()
QwtIntervalSymbol & operator= (const QwtIntervalSymbol &)
bool operator== (const QwtIntervalSymbol &) const
bool operator!= (const QwtIntervalSymbol &) const
void setWidth (int)
int width () const
void setBrush (const QBrush &b)
const QBrush & brush () const
void setPen (const QPen &)
const QPen & pen () const
void setStyle (Style)
Style style () const
virtual void draw (QPainter *, Qt::Orientation, const QPointF &from, const QPointF &to) const

A drawing primitive for displaying an interval like an error bar.

See also:

QwtPlotIntervalCurve

Symbol style.

Enumerator:

No Style. The symbol cannot be drawn.
The symbol displays a line with caps at the beginning/end. The size of the caps depends on the symbol width().
The symbol displays a plain rectangle using pen() and brush(). The size of the rectangle depends on the translated interval and the width(),
Styles >= UserSymbol are reserved for derived classes of QwtIntervalSymbol that overload draw() with additional application specific symbol types.

Parameters:

style Style of the symbol

See also:

setStyle(), style(), Style

Copy constructor.

Destructor.

Brush

See also:

setBrush()

Parameters:

painter Painter
orientation Orientation
from Start point of the interval in target device coordinates
to End point of the interval in target device coordinates

See also:

setStyle()

Compare two symbols.

QwtIntervalSymbol & QwtIntervalSymbol::operator= (const QwtIntervalSymbol &other)

Assignment operator.

Compare two symbols.

Pen

See also:

setPen(), brush()

Assign a brush. The brush is used for the Box style.

Parameters:

brush Brush

See also:

brush()

Parameters:

pen Pen

See also:

pen(), setBrush()

Parameters:

style Style

See also:

style(), Style

Parameters:

width Width

See also:

width(), setStyle()

QwtIntervalSymbol::Style QwtIntervalSymbol::style () const Returns:

Current symbol style

See also:

setStyle()

Width of the symbol.

See also:

setWidth(), setStyle()

Generated automatically by Doxygen for Qwt User's Guide from the source code.