|
QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
|
An item, that represents a series of points. More...
#include <qwt_polar_curve.h>
Classes | |
| class | PrivateData |
Public Types | |
| enum | CurveStyle { NoCurve , Lines , UserCurve = 100 } |
| Curve styles. More... | |
| enum | LegendAttribute { LegendShowLine = 0x01 , LegendShowSymbol = 0x02 } |
| Attributes how to represent the curve on the legend. More... | |
Public Types inherited from QwtPolarItem | |
| enum | RttiValues { Rtti_PolarItem = 0 , Rtti_PolarGrid , Rtti_PolarMarker , Rtti_PolarCurve , Rtti_PolarSpectrogram , Rtti_PolarUserItem = 1000 } |
| enum | ItemAttribute { Legend = 0x01 , AutoScale = 0x02 } |
| enum | RenderHint { RenderAntialiased = 0x01 } |
Public Member Functions | |
| QwtPolarCurve () | |
| Constructor. | |
| QwtPolarCurve (const QwtText &title) | |
| Constructor with title. | |
| QwtPolarCurve (const QString &title) | |
| Constructor with title string. | |
| virtual | ~QwtPolarCurve () |
| Destructor. | |
| virtual int | rtti () const override |
| Get the runtime type information. | |
| void | setLegendAttribute (LegendAttribute, bool on=true) |
| Set a legend attribute. | |
| bool | testLegendAttribute (LegendAttribute) const |
| Test a legend attribute. | |
| void | setData (QwtSeriesData< QwtPointPolar > *data) |
| Set the data. | |
| const QwtSeriesData< QwtPointPolar > * | data () const |
| Get the data. | |
| size_t | dataSize () const |
| Get the data size. | |
| QwtPointPolar | sample (int i) const |
| Get a sample. | |
| void | setPen (const QPen &) |
| Set the pen. | |
| const QPen & | pen () const |
| Get the pen. | |
| void | setStyle (CurveStyle style) |
| Set the curve style. | |
| CurveStyle | style () const |
| Get the curve style. | |
| void | setSymbol (QwtSymbol *) |
| Set the symbol. | |
| const QwtSymbol * | symbol () const |
| Get the symbol. | |
| void | setCurveFitter (QwtCurveFitter *) |
| Set the curve fitter. | |
| QwtCurveFitter * | curveFitter () const |
| Get the curve fitter. | |
| virtual void | draw (QPainter *p, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, double radius, const QRectF &canvasRect) const override |
| Draw the curve. | |
| virtual void | draw (QPainter *p, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, int from, int to) const |
| Draw the curve from index to index. | |
| virtual QwtInterval | boundingInterval (int scaleId) const override |
| Get the bounding interval for a scale. | |
| virtual QwtGraphic | legendIcon (int index, const QSizeF &) const override |
| Get the legend icon. | |
Public Member Functions inherited from QwtPolarItem | |
| QwtPolarItem (const QwtText &title=QwtText()) | |
| Constructor. | |
| virtual | ~QwtPolarItem () |
| Destructor. | |
| void | attach (QwtPolarPlot *plot) |
| Attach the item to a plot. | |
| void | detach () |
| Detach the item from its plot. | |
| QwtPolarPlot * | plot () const |
| Get the attached plot. | |
| void | setTitle (const QString &title) |
| Set the title from a QString. | |
| void | setTitle (const QwtText &title) |
| Set the title from a QwtText. | |
| const QwtText & | title () const |
| Get the title. | |
| void | setItemAttribute (ItemAttribute, bool on=true) |
| Set an item attribute. | |
| bool | testItemAttribute (ItemAttribute) const |
| Test an item attribute. | |
| void | setRenderHint (RenderHint, bool on=true) |
| Set a render hint. | |
| bool | testRenderHint (RenderHint) const |
| Test a render hint. | |
| void | setRenderThreadCount (uint numThreads) |
| Set the number of render threads. | |
| uint | renderThreadCount () const |
| Get the number of render threads. | |
| double | z () const |
| Get the z value. | |
| void | setZ (double z) |
| Set the z value. | |
| void | show () |
| Show the item. | |
| void | hide () |
| Hide the item. | |
| virtual void | setVisible (bool) |
| Set the visibility. | |
| bool | isVisible () const |
| Get the visibility. | |
| virtual void | itemChanged () |
| Update the item and trigger autoRefresh. | |
| virtual void | legendChanged () |
| Update the legend. | |
| virtual void | updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &, const QwtInterval &) |
| Update the scale division. | |
| virtual int | marginHint () const |
| Get the margin hint. | |
| void | setLegendIconSize (const QSize &) |
| Set the legend icon size. | |
| QSize | legendIconSize () const |
| Get the legend icon size. | |
| virtual QList< QwtLegendData > | legendData () const |
| Get the legend data. | |
Protected Member Functions | |
| void | init () |
| Initialize the curve. | |
| virtual void | drawCurve (QPainter *, int style, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, int from, int to) const |
| Draw the curve. | |
| virtual void | drawSymbols (QPainter *, const QwtSymbol &, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, int from, int to) const |
| Draw the symbols. | |
| void | drawLines (QPainter *, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, int from, int to) const |
| Draw the lines. | |
An item, that represents a series of points.
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(). |
| UserCurve | Values > 100 are reserved for user specific curve styles. |
|
explicit |
Constructor.
Constructor
.
|
explicit |
Constructor with title.
|
explicit |
Constructor with title string.
|
virtual |
Destructor.
Destructor
.
|
overridevirtual |
Get the bounding interval for a scale.
Get the bounding interval necessary to display the item.
Reimplemented from QwtPolarItem.
| QwtCurveFitter * QwtPolarCurve::curveFitter | ( | ) | const |
Get the curve fitter.
|
inline |
Get the data.
| size_t QwtPolarCurve::dataSize | ( | ) | const |
Get the data size.
Get the number of data points.
|
overridevirtual |
Draw the curve.
Implements QwtPolarItem.
|
virtual |
Draw the curve from index to index.
Draw an interval of the curve.
|
protectedvirtual |
Draw the curve.
Draw the line part (without symbols) of a curve interval.
| painter | Painter |
| style | Curve style, see QwtPolarCurve::CurveStyle |
| azimuthMap | Maps azimuth values to values related to 0.0, M_2PI |
| radialMap | Maps radius values into painter coordinates. |
| pole | Position of the pole in painter coordinates |
| from | index of the first point to be painted |
| to | index of the last point to be painted. |
|
protected |
Draw the lines.
Draw lines.
| painter | Painter |
| azimuthMap | Maps azimuth values to values related to 0.0, M_2PI |
| radialMap | Maps radius values into painter coordinates. |
| pole | Position of the pole in painter coordinates |
| from | index of the first point to be painted |
| to | index of the last point to be painted. |
|
protectedvirtual |
Draw the symbols.
Draw symbols.
| painter | Painter |
| symbol | Curve symbol |
| azimuthMap | Maps azimuth values to values related to 0.0, M_2PI |
| radialMap | Maps radius values into painter coordinates. |
| pole | Position of the pole in painter coordinates |
| from | index of the first point to be painted |
| to | index of the last point to be painted. |
|
protected |
Initialize the curve.
Initialize data members.
|
overridevirtual |
Get the legend icon.
Get the icon representing the curve on the legend.
Reimplemented from QwtPolarItem.
| const QPen & QwtPolarCurve::pen | ( | ) | const |
Get the pen.
Get the pen used to draw the lines.
|
overridevirtual |
Get the runtime type information.
Reimplemented from QwtPolarItem.
|
inline |
Get a sample.
| i | index |
| void QwtPolarCurve::setCurveFitter | ( | QwtCurveFitter * | curveFitter | ) |
Set the curve fitter.
Insert a curve fitter.
| void QwtPolarCurve::setData | ( | QwtSeriesData< QwtPointPolar > * | data | ) |
Set the data.
Initialize data with a pointer to QwtSeriesData<QwtPointPolar>
| void QwtPolarCurve::setLegendAttribute | ( | LegendAttribute | attribute, |
| bool | on = true |
||
| ) |
Set a legend attribute.
Specify an attribute for how to draw the legend identifier.
| void QwtPolarCurve::setPen | ( | const QPen & | pen | ) |
Set the pen.
Assign a pen.
| void QwtPolarCurve::setStyle | ( | CurveStyle | style | ) |
Set the curve style.
Set the curve's drawing style.
| void QwtPolarCurve::setSymbol | ( | QwtSymbol * | symbol | ) |
Set the symbol.
Assign a symbol.
| QwtPolarCurve::CurveStyle QwtPolarCurve::style | ( | ) | const |
Get the curve style.
Get the current style.
| const QwtSymbol * QwtPolarCurve::symbol | ( | ) | const |
Get the symbol.
Get the current symbol.
| bool QwtPolarCurve::testLegendAttribute | ( | LegendAttribute | attribute | ) | const |
Test a legend attribute.
Test if a legend attribute is enabled.