QwtPlotIntervalCurve(3) | Qwt User's Guide | QwtPlotIntervalCurve(3) |
QwtPlotIntervalCurve - QwtPlotIntervalCurve represents a series of samples, where each value is associated with an interval ( $[y1,y2] = f(x)$ ).
#include <qwt_plot_intervalcurve.h>
Inherits QwtPlotSeriesItem, and QwtSeriesStore< QwtIntervalSample >.
enum CurveStyle { NoCurve, Tube,
UserCurve = 100 }
Curve styles. The default setting is QwtPlotIntervalCurve::Tube. enum
PaintAttribute { ClipPolygons = 0x01, ClipSymbol = 0x02
}
typedef QFlags< PaintAttribute > PaintAttributes
Paint attributes.
QwtPlotIntervalCurve (const QString
&title=QString())
QwtPlotIntervalCurve (const QwtText &title)
virtual ~QwtPlotIntervalCurve ()
Destructor. virtual int rtti () const
void setPaintAttribute (PaintAttribute, bool on=true)
bool testPaintAttribute (PaintAttribute) const
void setSamples (const QVector< QwtIntervalSample > &)
void setSamples (QwtSeriesData< QwtIntervalSample >
*)
void setPen (const QColor &, qreal width=0.0,
Qt::PenStyle=Qt::SolidLine)
void setPen (const QPen &)
Assign a pen. const QPen & pen () const
void setBrush (const QBrush &)
const QBrush & brush () const
void setStyle (CurveStyle style)
CurveStyle style () const
void setSymbol (const QwtIntervalSymbol *)
const QwtIntervalSymbol * symbol () const
virtual void drawSeries (QPainter *, const QwtScaleMap
&xMap, const QwtScaleMap &yMap, const QRectF &canvasRect,
int from, int to) const
virtual QRectF boundingRect () const
virtual QwtGraphic legendIcon (int index, const QSizeF &)
const
void init ()
Initialize internal members. virtual void drawTube (QPainter *, const
QwtScaleMap &xMap, const QwtScaleMap &yMap, const
QRectF &canvasRect, int from, int to) const
virtual void drawSymbols (QPainter *, const QwtIntervalSymbol
&, const QwtScaleMap &xMap, const QwtScaleMap
&yMap, const QRectF &canvasRect, int from, int to) const
QwtPlotIntervalCurve represents a series of samples, where each value is associated with an interval ( $[y1,y2] = f(x)$ ).
The representation depends on the style() and an optional symbol() that is displayed for each interval. QwtPlotIntervalCurve might be used to display error bars or the area between 2 curves.
Curve styles. The default setting is QwtPlotIntervalCurve::Tube.
See also:
Enumerator
Attributes to modify the drawing algorithm.
See also:
Enumerator
Constructor
Parameters:
Constructor
Parameters:
Returns:
Reimplemented from QwtPlotSeriesItem.
Returns:
See also:
Draw a subset of the samples
Parameters:
See also:
Implements QwtPlotSeriesItem.
Draw symbols for a subset of the samples
Parameters:
See also:
Draw a tube
Builds 2 curves from the upper and lower limits of the intervals and draws them with the pen(). The area between the curves is filled with the brush().
Parameters:
See also:
Returns:
In case of Tube style() the icon is a plain rectangle filled with the brush(). If a symbol is assigned it is scaled to size.
Parameters:
See also:
Reimplemented from QwtPlotItem.
Returns:
See also:
Returns:
Reimplemented from QwtPlotItem.
Assign a brush.
The brush is used to fill the area in Tube style().
Parameters:
See also:
Specify an attribute how to draw the curve
Parameters:
See also:
Build and assign a pen
In Qt5 the default pen width is 1.0 ( 0.0 in Qt4 ) what makes it non cosmetic ( see QPen::isCosmetic() ). This method has been introduced to hide this incompatibility.
Parameters:
See also:
Assign a pen.
Parameters:
See also:
Initialize data with an array of samples.
Parameters:
Assign a series of samples
setSamples() is just a wrapper for setData() without any additional value - beside that it is easier to find for the developer.
Parameters:
Warning:
Set the curve's drawing style
Parameters:
See also:
Assign a symbol.
Parameters:
See also:
Returns:
See also:
Returns:
See also:
Returns:
See also:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |