|
QWT 7.0.1
|
A plot item, that represents a series of points. More...
#include <qwt_plot_curve.h>
Classes | |
| class | PrivateData |
Public Member Functions | |
| QwtPlotCurve (const QString &title=QString()) | |
| Constructor. | |
| QwtPlotCurve (const QwtText &title) | |
| Constructor. | |
| virtual | ~QwtPlotCurve () |
| Destructor. | |
| virtual int | rtti () const QWT_OVERRIDE |
| void | setPaintAttribute (PaintAttribute, bool on=true) |
| Specify an attribute how to draw the curve. | |
| bool | testPaintAttribute (PaintAttribute) const |
| void | setLegendAttribute (LegendAttribute, bool on=true) |
| Specify an attribute how to draw the legend icon. | |
| bool | testLegendAttribute (LegendAttribute) const |
| void | setLegendAttributes (LegendAttributes) |
| Specify the attributes how to draw the legend icon. | |
| LegendAttributes | legendAttributes () const |
| void | setRawSamples (const double *xData, const double *yData, int size) |
| Initialize the data by pointing to memory blocks which are not managed by QwtPlotCurve. | |
| void | setRawSamples (const float *xData, const float *yData, int size) |
| Initialize the data by pointing to memory blocks which are not managed by QwtPlotCurve. | |
| void | setRawSamples (const double *yData, int size) |
| Initialize the data by pointing to a memory block which is not managed by QwtPlotCurve. | |
| void | setRawSamples (const float *yData, int size) |
| Initialize the data by pointing to memory blocks which are not managed by QwtPlotCurve. | |
| void | setSamples (const double *xData, const double *yData, int size) |
| Set data by copying x- and y-values from specified memory blocks. | |
| void | setSamples (const float *xData, const float *yData, int size) |
| Set data by copying x- and y-values from specified memory blocks. | |
| void | setSamples (const double *yData, int size) |
| Set data by copying y-values from a specified memory block. | |
| void | setSamples (const float *yData, int size) |
| Set data by copying y-values from a specified memory block. | |
| void | setSamples (const QVector< double > &yData) |
| Initialize data with an array of y values (explicitly shared) | |
| void | setSamples (const QVector< float > &yData) |
| Initialize data with an array of y values (explicitly shared) | |
| void | setSamples (const QVector< double > &xData, const QVector< double > &yData) |
| Initialize data with x- and y-arrays (explicitly shared) | |
| void | setSamples (const QVector< float > &xData, const QVector< float > &yData) |
| Initialize data with x- and y-arrays (explicitly shared) | |
| void | setSamples (QVector< double > &&xData, QVector< double > &&yData) |
| Initialize data with x- and y-arrays (explicitly shared) | |
| void | setSamples (QVector< float > &&xData, QVector< float > &&yData) |
| Initialize data with x- and y-arrays (explicitly shared) | |
| void | setSamples (QVector< QPointF > &&) |
| Initialize data with an array of points. | |
| void | setSamples (const QVector< QPointF > &) |
| Initialize data with an array of points. | |
| void | setSamples (QwtSeriesData< QPointF > *) |
| Assign a series of points. | |
| virtual int | closestPoint (const QPointF &pos, double *dist=NULL) const |
| Find the closest curve point for a specific position. | |
| double | minXValue () const |
| boundingRect().left() | |
| double | maxXValue () const |
| boundingRect().right() | |
| double | minYValue () const |
| boundingRect().top() | |
| double | maxYValue () const |
| boundingRect().bottom() | |
| void | setCurveAttribute (CurveAttribute, bool on=true) |
| Specify an attribute for drawing the curve. | |
| bool | testCurveAttribute (CurveAttribute) const |
| 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 |
| void | setBrush (const QBrush &) |
| Assign a brush. | |
| const QBrush & | brush () const |
| void | setBaseline (double) |
| Set the value of the baseline. | |
| double | baseline () const |
| void | setStyle (CurveStyle style) |
| Set the curve's drawing style. | |
| CurveStyle | style () const |
| void | setSymbol (QwtSymbol *) |
| Assign a symbol. | |
| const QwtSymbol * | symbol () const |
| void | setCurveFitter (QwtCurveFitter *) |
| Assign a curve fitter. | |
| QwtCurveFitter * | curveFitter () const |
| Get the curve fitter. | |
| virtual void | drawSeries (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const QWT_OVERRIDE |
| Draw an interval of the curve. | |
| virtual QwtGraphic | legendIcon (int index, const QSizeF &) const QWT_OVERRIDE |
Public Member Functions inherited from QwtPlotSeriesItem | |
| QwtPlotSeriesItem (const QString &title=QString()) | |
| Constructor. | |
| QwtPlotSeriesItem (const QwtText &title) | |
| Constructor. | |
| virtual | ~QwtPlotSeriesItem () |
| Destructor. | |
| void | setOrientation (Qt::Orientation) |
| Set the orientation of the item. | |
| Qt::Orientation | orientation () const |
| virtual void | draw (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const QWT_OVERRIDE |
| Draw the complete series. | |
| virtual QRectF | boundingRect () const QWT_OVERRIDE |
| virtual void | updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &) QWT_OVERRIDE |
| Update the item to changes of the axes scale division. | |
Public Member Functions inherited from QwtPlotItem | |
| QwtPlotItem () | |
| Constructor. | |
| QwtPlotItem (const QString &title) | |
| Constructor. | |
| QwtPlotItem (const QwtText &title) | |
| Constructor. | |
| virtual | ~QwtPlotItem () |
| Destroy the QwtPlotItem. | |
| void | attach (QwtPlot *plot) |
| Attach the item to a plot. | |
| void | detach () |
| This method detaches a QwtPlotItem from any QwtPlot it has been associated with. | |
| QwtPlot * | plot () const |
| Return attached plot. | |
| void | setTitle (const QString &title) |
| Set a new title. | |
| void | setTitle (const QwtText &title) |
| Set a new title. | |
| const QwtText & | title () const |
| void | setItemAttribute (ItemAttribute, bool on=true) |
| Toggle an item attribute. | |
| bool | testItemAttribute (ItemAttribute) const |
| Test an item attribute. | |
| void | setItemInterest (ItemInterest, bool on=true) |
| Toggle an item interest. | |
| bool | testItemInterest (ItemInterest) const |
| Test an item interest. | |
| void | setRenderHint (RenderHint, bool on=true) |
| Toggle an render hint. | |
| bool | testRenderHint (RenderHint) const |
| Test a render hint. | |
| void | setRenderThreadCount (uint numThreads) |
| On multi core systems rendering of certain plot item ( f.e QwtPlotRasterItem ) can be done in parallel in several threads. | |
| uint | renderThreadCount () const |
| void | setLegendIconSize (const QSize &) |
| Set the size of the legend icon. | |
| QSize | legendIconSize () const |
| double | z () const |
| Plot items are painted in increasing z-order. | |
| void | setZ (double z) |
| Set the z value. | |
| void | show () |
| Show the item. | |
| void | hide () |
| Hide the item. | |
| virtual void | setVisible (bool) |
| Show/Hide the item. | |
| bool | isVisible () const |
| void | setAxes (QwtAxisId xAxis, QwtAxisId yAxis) |
| Set X and Y axis. | |
| void | setXAxis (QwtAxisId) |
| Set the X axis. | |
| QwtAxisId | xAxis () const |
| Return xAxis. | |
| void | setYAxis (QwtAxisId) |
| Set the Y axis. | |
| QwtAxisId | yAxis () const |
| Return yAxis. | |
| virtual void | itemChanged () |
| Update the legend and call QwtPlot::autoRefresh() for the parent plot. | |
| virtual void | legendChanged () |
| Update the legend of the parent plot. | |
| virtual void | getCanvasMarginHint (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, double &left, double &top, double &right, double &bottom) const |
| Calculate a hint for the canvas margin. | |
| virtual void | updateLegend (const QwtPlotItem *, const QList< QwtLegendData > &) |
| Update the item to changes of the legend info. | |
| QRectF | scaleRect (const QwtScaleMap &, const QwtScaleMap &) const |
| Calculate the bounding scale rectangle of 2 maps. | |
| QRectF | paintRect (const QwtScaleMap &, const QwtScaleMap &) const |
| Calculate the bounding paint rectangle of 2 maps. | |
| virtual QList< QwtLegendData > | legendData () const |
| Return all information, that is needed to represent the item on the legend. | |
Public Member Functions inherited from QwtAbstractSeriesStore | |
| virtual | ~QwtAbstractSeriesStore () |
| Destructor. | |
Public Member Functions inherited from QwtSeriesStore< QPointF > | |
| QwtSeriesStore () | |
| Constructor The store contains no series. | |
| ~QwtSeriesStore () | |
| Destructor. | |
| void | setData (QwtSeriesData< QPointF > *series) |
| Assign a series of samples. | |
| QwtSeriesData< QPointF > * | data () |
| const QwtSeriesData< QPointF > * | data () const |
| QPointF | sample (size_t index) const |
| virtual size_t | dataSize () const QWT_OVERRIDE |
| virtual QRectF | dataRect () const QWT_OVERRIDE |
| virtual void | setRectOfInterest (const QRectF &rect) QWT_OVERRIDE |
| Set a the "rect of interest" for the series. | |
| QwtSeriesData< QPointF > * | swapData (QwtSeriesData< QPointF > *series) |
| Replace a series without deleting the previous one. | |
Protected Member Functions | |
| void | init () |
| Initialize internal members. | |
| virtual void | drawCurve (QPainter *, int style, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const |
| Draw the line part (without symbols) of a curve interval. | |
| virtual void | drawSymbols (QPainter *, const QwtSymbol &, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const |
| Draw symbols. | |
| virtual void | drawLines (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const |
| Draw lines. | |
| virtual void | drawSticks (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const |
| Draw sticks. | |
| virtual void | drawDots (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const |
| Draw dots. | |
| virtual void | drawSteps (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const |
| Draw step function. | |
| virtual void | fillCurve (QPainter *, const QwtScaleMap &, const QwtScaleMap &, const QRectF &canvasRect, QPolygonF &) const |
| Fill the area between the curve and the baseline with the curve brush. | |
| void | closePolyline (QPainter *, const QwtScaleMap &, const QwtScaleMap &, QPolygonF &) const |
| Complete a polygon to be a closed polygon including the area between the original polygon and the baseline. | |
Protected Member Functions inherited from QwtPlotSeriesItem | |
| virtual void | dataChanged () QWT_OVERRIDE |
| dataChanged() indicates, that the series has been changed. | |
Protected Member Functions inherited from QwtPlotItem | |
| QwtGraphic | defaultIcon (const QBrush &, const QSizeF &) const |
| Return a default icon from a brush. | |
A plot item, that represents a series of points.
A curve is the representation of a series of points in the x-y plane. It supports different display styles, interpolation ( f.e. spline ) and symbols.
Attribute for drawing the curve.
| Enumerator | |
|---|---|
| Inverted | For QwtPlotCurve::Steps only. Draws a step function from the right to the left. |
| Fitted | Only in combination with QwtPlotCurve::Lines A QwtCurveFitter tries to interpolate/smooth the curve, before it is painted.
|
Curve styles.
| Enumerator | |
|---|---|
| NoCurve | Don't draw a curve. Note: This doesn't affect the symbols. |
| Lines | Connect the points with straight lines. The lines might be interpolated depending on the 'Fitted' attribute. Curve fitting can be configured using setCurveFitter(). |
| Sticks | Draw vertical or horizontal sticks ( depending on the orientation() ) from a baseline which is defined by setBaseline(). |
| Steps | Connect the points with a step function. The step function is drawn from the left to the right or vice versa, depending on the QwtPlotCurve::Inverted attribute. |
| Dots | Draw dots at the locations of the data points. Note: This is different from a dotted line (see setPen()), and faster as a curve in QwtPlotCurve::NoStyle style and a symbol painting a point. |
| UserCurve | Styles >= QwtPlotCurve::UserCurve are reserved for derived classes of QwtPlotCurve that overload drawCurve() with additional application specific curve types. |
Attributes how to represent the curve on the legend.
| Enumerator | |
|---|---|
| LegendNoAttribute | QwtPlotCurve tries to find a color representing the curve and paints a rectangle with it. |
| LegendShowLine | If the style() is not QwtPlotCurve::NoCurve a line is painted with the curve pen(). |
| LegendShowSymbol | If the curve has a valid symbol it is painted. |
| LegendShowBrush | If the curve has a brush a rectangle filled with the curve brush() is painted. |
Attributes to modify the drawing algorithm.
The default setting enables ClipPolygons | FilterPoints
| Enumerator | |
|---|---|
| ClipPolygons | Clip polygons before painting them. In situations, where points are far outside the visible area (f.e when zooming deep) this might be a substantial improvement for the painting performance |
| FilterPoints | Tries to reduce the data that has to be painted, by sorting out duplicates, or paintings outside the visible area. Might have a notable impact on curves with many close points. Only a couple of very basic filtering algorithms are implemented. |
| MinimizeMemory | Minimize memory usage that is temporarily needed for the translated points, before they get painted. This might slow down the performance of painting |
| ImageBuffer | Render the points to a temporary image and paint the image. This is a very special optimization for Dots style, when having a huge amount of points. With a reasonable number of points QPainter::drawPoints() will be faster. |
| FilterPointsAggressive | More aggressive point filtering trying to filter out intermediate points, accepting minor visual differences. Has only an effect, when drawing the curve to a paint device in integer coordinates ( f.e. all widgets on screen ) using the fact, that consecutive points are often mapped to the same x or y coordinate. Each chunk of samples mapped to the same coordinate can be reduced to 4 points ( first, min, max last ). In the worst case the polygon to be rendered will be 4 times the width of the plot canvas. The algorithm is very fast and effective for huge datasets, and can be used inside a replot cycle.
|
|
explicit |
Constructor.
| title | Title of the curve |
|
explicit |
Constructor.
| title | Title of the curve |
| double QwtPlotCurve::baseline | ( | ) | const |
| const QBrush & QwtPlotCurve::brush | ( | ) | const |
|
protected |
Complete a polygon to be a closed polygon including the area between the original polygon and the baseline.
| painter | Painter |
| xMap | X map |
| yMap | Y map |
| polygon | Polygon to be completed |
|
virtual |
Find the closest curve point for a specific position.
| pos | Position, where to look for the closest curve point |
| dist | If dist != NULL, closestPoint() returns the distance between the position and the closest curve point |
| QwtCurveFitter * QwtPlotCurve::curveFitter | ( | ) | const |
Get the curve fitter.
If curve fitting is disabled NULL is returned.
|
protectedvirtual |
Draw the line part (without symbols) of a curve interval.
| painter | Painter |
| style | curve style, see QwtPlotCurve::CurveStyle |
| xMap | x map |
| yMap | y map |
| canvasRect | Contents rectangle of the canvas |
| from | index of the first point to be painted |
| to | index of the last point to be painted |
|
protectedvirtual |
Draw dots.
| painter | Painter |
| xMap | x map |
| yMap | y map |
| canvasRect | Contents rectangle of the canvas |
| from | index of the first point to be painted |
| to | index of the last point to be painted |
|
protectedvirtual |
Draw lines.
If the CurveAttribute Fitted is enabled a QwtCurveFitter tries to interpolate/smooth the curve, before it is painted.
| painter | Painter |
| xMap | x map |
| yMap | y map |
| canvasRect | Contents rectangle of the canvas |
| from | index of the first point to be painted |
| to | index of the last point to be painted |
|
virtual |
Draw an interval of the curve.
| painter | Painter |
| xMap | Maps x-values into pixel coordinates. |
| yMap | Maps y-values into pixel coordinates. |
| canvasRect | Contents rectangle of the canvas |
| from | Index of the first point to be painted |
| to | Index of the last point to be painted. If to < 0 the curve will be painted to its last point. |
Implements QwtPlotSeriesItem.
|
protectedvirtual |
Draw step function.
The direction of the steps depends on Inverted attribute.
| painter | Painter |
| xMap | x map |
| yMap | y map |
| canvasRect | Contents rectangle of the canvas |
| from | index of the first point to be painted |
| to | index of the last point to be painted |
|
protectedvirtual |
Draw sticks.
| painter | Painter |
| xMap | x map |
| yMap | y map |
| canvasRect | Contents rectangle of the canvas |
| from | index of the first point to be painted |
| to | index of the last point to be painted |
|
protectedvirtual |
Draw symbols.
| painter | Painter |
| symbol | Curve symbol |
| xMap | x map |
| yMap | y map |
| canvasRect | Contents rectangle of the canvas |
| from | Index of the first point to be painted |
| to | Index of the last point to be painted |
|
protectedvirtual |
Fill the area between the curve and the baseline with the curve brush.
| painter | Painter |
| xMap | x map |
| yMap | y map |
| canvasRect | Contents rectangle of the canvas |
| polygon | Polygon - will be modified ! |
| QwtPlotCurve::LegendAttributes QwtPlotCurve::legendAttributes | ( | ) | const |
|
virtual |
| index | Index of the legend entry ( ignored as there is only one ) |
| size | Icon size |
Reimplemented from QwtPlotItem.
| const QPen & QwtPlotCurve::pen | ( | ) | const |
|
virtual |
Reimplemented from QwtPlotItem.
| void QwtPlotCurve::setBaseline | ( | double | value | ) |
Set the value of the baseline.
The baseline is needed for filling the curve with a brush or the Sticks drawing style.
The interpretation of the baseline depends on the orientation(). With Qt::Vertical, the baseline is interpreted as a horizontal line at y = baseline(), with Qt::Horizontal, it is interpreted as a vertical line at x = baseline().
The default value is 0.0.
| value | Value of the baseline |
| void QwtPlotCurve::setBrush | ( | const QBrush & | brush | ) |
Assign a brush.
In case of brush.style() != QBrush::NoBrush and style() != QwtPlotCurve::Sticks the area between the curve and the baseline will be filled.
In case !brush.color().isValid() the area will be filled by pen.color(). The fill algorithm simply connects the first and the last curve point to the baseline. So the curve data has to be sorted (ascending or descending).
| brush | New brush |
| void QwtPlotCurve::setCurveAttribute | ( | CurveAttribute | attribute, |
| bool | on = true |
||
| ) |
Specify an attribute for drawing the curve.
| attribute | Curve attribute |
| on | On/Off |
| void QwtPlotCurve::setCurveFitter | ( | QwtCurveFitter * | curveFitter | ) |
Assign a curve fitter.
The curve fitter "smooths" the curve points, when the Fitted CurveAttribute is set. setCurveFitter(NULL) also disables curve fitting.
The curve fitter operates on the translated points ( = widget coordinates) to be functional for logarithmic scales. Obviously this is less performant for fitting algorithms, that reduce the number of points.
For situations, where curve fitting is used to improve the performance of painting huge series of points it might be better to execute the fitter on the curve points once and to cache the result in the QwtSeriesData object.
| curveFitter() | Curve fitter |
| void QwtPlotCurve::setLegendAttribute | ( | LegendAttribute | attribute, |
| bool | on = true |
||
| ) |
Specify an attribute how to draw the legend icon.
| attribute | Attribute |
| on | On/Off /sa testLegendAttribute(). legendIcon() |
| void QwtPlotCurve::setLegendAttributes | ( | LegendAttributes | attributes | ) |
Specify the attributes how to draw the legend icon.
| attributes | Attributes /sa setLegendAttribute(). legendIcon() |
| void QwtPlotCurve::setPaintAttribute | ( | PaintAttribute | attribute, |
| bool | on = true |
||
| ) |
Specify an attribute how to draw the curve.
| attribute | Paint attribute |
| on | On/Off |
| void QwtPlotCurve::setPen | ( | const QColor & | color, |
| qreal | width = 0.0, |
||
| Qt::PenStyle | style = Qt::SolidLine |
||
| ) |
| void QwtPlotCurve::setPen | ( | const QPen & | pen | ) |
| void QwtPlotCurve::setRawSamples | ( | const double * | xData, |
| const double * | yData, | ||
| int | size | ||
| ) |
Initialize the data by pointing to memory blocks which are not managed by QwtPlotCurve.
setRawSamples is provided for efficiency. It is important to keep the pointers during the lifetime of the underlying QwtCPointerData class.
| xData | pointer to x data |
| yData | pointer to y data |
| size | size of x and y |
| void QwtPlotCurve::setRawSamples | ( | const double * | yData, |
| int | size | ||
| ) |
Initialize the data by pointing to a memory block which is not managed by QwtPlotCurve.
The memory contains the y coordinates, while the index is interpreted as x coordinate.
setRawSamples() is provided for efficiency. It is important to keep the pointers during the lifetime of the underlying QwtCPointerValueData class.
| yData | pointer to y data |
| size | size of x and y |
| void QwtPlotCurve::setRawSamples | ( | const float * | xData, |
| const float * | yData, | ||
| int | size | ||
| ) |
Initialize the data by pointing to memory blocks which are not managed by QwtPlotCurve.
setRawSamples is provided for efficiency. It is important to keep the pointers during the lifetime of the underlying QwtCPointerData class.
| xData | pointer to x data |
| yData | pointer to y data |
| size | size of x and y |
| void QwtPlotCurve::setRawSamples | ( | const float * | yData, |
| int | size | ||
| ) |
Initialize the data by pointing to memory blocks which are not managed by QwtPlotCurve.
The memory contains the y coordinates, while the index is interpreted as x coordinate.
setRawSamples() is provided for efficiency. It is important to keep the pointers during the lifetime of the underlying QwtCPointerValueData class.
| yData | pointer to y data |
| size | size of x and y |
| void QwtPlotCurve::setSamples | ( | const double * | xData, |
| const double * | yData, | ||
| int | size | ||
| ) |
Set data by copying x- and y-values from specified memory blocks.
Contrary to setRawSamples(), this function makes a 'deep copy' of the data.
| xData | pointer to x values |
| yData | pointer to y values |
| size | size of xData and yData |
| void QwtPlotCurve::setSamples | ( | const double * | yData, |
| int | size | ||
| ) |
Set data by copying y-values from a specified memory block.
The memory contains the y coordinates, while the index is interpreted as x coordinate.
| yData | y data |
| size | size of yData |
| void QwtPlotCurve::setSamples | ( | const float * | xData, |
| const float * | yData, | ||
| int | size | ||
| ) |
Set data by copying x- and y-values from specified memory blocks.
Contrary to setRawSamples(), this function makes a 'deep copy' of the data.
| xData | pointer to x values |
| yData | pointer to y values |
| size | size of xData and yData |
| void QwtPlotCurve::setSamples | ( | const float * | yData, |
| int | size | ||
| ) |
Set data by copying y-values from a specified memory block.
The vector contains the y coordinates, while the index is interpreted as x coordinate.
| yData | y data |
| size | size of yData |
Initialize data with x- and y-arrays (explicitly shared)
| xData | x data |
| yData | y data |
| void QwtPlotCurve::setSamples | ( | const QVector< double > & | yData | ) |
Initialize data with an array of y values (explicitly shared)
The vector contains the y coordinates, while the index is the x coordinate.
| yData | y data |
Initialize data with x- and y-arrays (explicitly shared)
| xData | x data |
| yData | y data |
| void QwtPlotCurve::setSamples | ( | const QVector< float > & | yData | ) |
Initialize data with an array of y values (explicitly shared)
The vector contains the y coordinates, while the index is the x coordinate.
| yData | y data |
| void QwtPlotCurve::setSamples | ( | const QVector< QPointF > & | samples | ) |
Initialize data with an array of points.
| samples | Vector of points |
Initialize data with x- and y-arrays (explicitly shared)
| xData | x data |
| yData | y data |
Initialize data with x- and y-arrays (explicitly shared)
| xData | x data |
| yData | y data |
| void QwtPlotCurve::setSamples | ( | QVector< QPointF > && | samples | ) |
Initialize data with an array of points.
| samples | Vector of points |
| void QwtPlotCurve::setSamples | ( | QwtSeriesData< QPointF > * | data | ) |
Assign a series of points.
setSamples() is just a wrapper for setData() without any additional value - beside that it is easier to find for the developer.
| data | Data |
| void QwtPlotCurve::setStyle | ( | CurveStyle | style | ) |
| void QwtPlotCurve::setSymbol | ( | QwtSymbol * | symbol | ) |
Assign a symbol.
The curve will take the ownership of the symbol, hence the previously set symbol will be delete by setting a new one. If symbol is NULL no symbol will be drawn.
| symbol | Symbol |
| QwtPlotCurve::CurveStyle QwtPlotCurve::style | ( | ) | const |
| const QwtSymbol * QwtPlotCurve::symbol | ( | ) | const |
| bool QwtPlotCurve::testCurveAttribute | ( | CurveAttribute | attribute | ) | const |
| bool QwtPlotCurve::testLegendAttribute | ( | LegendAttribute | attribute | ) | const |
| bool QwtPlotCurve::testPaintAttribute | ( | PaintAttribute | attribute | ) | const |