QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
Loading...
Searching...
No Matches
qgsplot.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsplot.h
3 ---------------
4 begin : March 2022
5 copyright : (C) 2022 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17#ifndef QGSPLOT_H
18#define QGSPLOT_H
19
20#include <memory>
21
22#include "qgis_core.h"
23#include "qgis_sip.h"
24#include "qgsmargins.h"
26#include "qgstextformat.h"
27
28#include <QSizeF>
29
30class QgsColorRamp;
31class QgsMarkerSymbol;
32class QgsLineSymbol;
33class QgsFillSymbol;
35class QgsSymbol;
37
47class CORE_EXPORT QgsPlot
48{
49 //SIP_TYPEHEADER_INCLUDE( "qgsbarchartplot.h" );
50 //SIP_TYPEHEADER_INCLUDE( "qgslinechartplot.h" );
51 //SIP_TYPEHEADER_INCLUDE( "qgspiechartplot.h" );
52
53#ifdef SIP_RUN
55 if ( QgsPlot *item = dynamic_cast< QgsPlot * >( sipCpp ) )
56 {
57 if ( dynamic_cast<QgsBarChartPlot *>( item ) != NULL )
58 {
59 sipType = sipType_QgsBarChartPlot;
60 }
61 else if ( dynamic_cast<QgsLineChartPlot *>( item ) != NULL )
62 {
63 sipType = sipType_QgsLineChartPlot;
64 }
65 else if ( dynamic_cast<QgsPieChartPlot *>( item ) != NULL )
66 {
67 sipType = sipType_QgsPieChartPlot;
68 }
69 else if ( dynamic_cast<Qgs2DXyPlot *>( item ) != NULL )
70 {
71 sipType = sipType_Qgs2DXyPlot;
72 }
73 else if ( dynamic_cast<Qgs2DPlot *>( item ) != NULL )
74 {
75 sipType = sipType_Qgs2DPlot;
76 }
77 else
78 {
79 sipType = sipType_QgsPlot;
80 }
81 }
82 else
83 {
84 sipType = NULL;
85 }
87#endif
88
89 public:
90
96 {
97 MarginLeft,
98 MarginTop,
99 MarginRight,
100 MarginBottom,
101 XAxisMajorInterval,
102 XAxisMinorInterval,
103 XAxisLabelInterval,
104 YAxisMajorInterval,
105 YAxisMinorInterval,
106 YAxisLabelInterval,
107 XAxisMinimum,
108 XAxisMaximum,
109 YAxisMinimum,
110 YAxisMaximum,
111 };
112
113 QgsPlot() = default;
114
115 virtual ~QgsPlot();
116
121 virtual QString type() const { return QString(); }
122
129 void setDataDefinedProperty( DataDefinedProperty key, const QgsProperty &property ) { mDataDefinedProperties.setProperty( key, property ); }
130
137
144
152
156 virtual bool writeXml( QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context ) const;
157
161 virtual bool readXml( const QDomElement &element, const QgsReadWriteContext &context );
162
168 virtual void initFromPlot( const QgsPlot *plot );
169
173 static const QgsPropertiesDefinition &propertyDefinitions();
174
175 protected:
177
178 private:
179 static void initPropertyDefinitions();
180 static QgsPropertiesDefinition sPropertyDefinitions;
181};
182
183
190class CORE_EXPORT QgsPlotRenderContext
191{
192 public:
198};
199
200
209class CORE_EXPORT QgsAbstractPlotSeries
210{
211#ifdef SIP_RUN
213 if ( QgsAbstractPlotSeries *item = dynamic_cast< QgsAbstractPlotSeries * >( sipCpp ) )
214 {
215 if ( dynamic_cast<QgsXyPlotSeries *>( item ) != NULL )
216 {
217 sipType = sipType_QgsXyPlotSeries;
218 }
219 else
220 {
221 sipType = sipType_QgsAbstractPlotSeries;
222 }
223 }
224 else
225 {
226 sipType = NULL;
227 }
228 SIP_END
229#endif
230 public:
231
233 virtual ~QgsAbstractPlotSeries() = default;
234
238 QString name() const;
239
243 void setName( const QString &name );
244
249
250 private:
251 QString mName;
252};
253
262class CORE_EXPORT QgsXyPlotSeries : public QgsAbstractPlotSeries
263{
264 public:
265 QgsXyPlotSeries() = default;
266 ~QgsXyPlotSeries() override = default;
267
271 QList<std::pair<double, double>> data() const;
272
276 void setData( const QList<std::pair<double, double>> &data );
277
281 void append( double x, double y );
282
286 void clear();
287
288 QgsAbstractPlotSeries *clone() const override SIP_FACTORY;
289
290 private:
291 QList<std::pair<double, double>> mData;
292};
293
302class CORE_EXPORT QgsPlotData
303{
304 public:
305 QgsPlotData() = default;
306 ~QgsPlotData();
307
308 QgsPlotData( const QgsPlotData &other );
310 QgsPlotData &operator=( const QgsPlotData &other );
312
317 QList<QgsAbstractPlotSeries *> series() const;
318
324
328 void clearSeries();
329
333 QStringList categories() const;
334
338 void setCategories( const QStringList &categories );
339
340 private:
341 QList<QgsAbstractPlotSeries *> mSeries;
342 QStringList mCategories;
343};
344
353class CORE_EXPORT QgsPlotAxis
354{
355 public:
356 QgsPlotAxis();
358
359 QgsPlotAxis( const QgsPlotAxis &other ) = delete;
360 QgsPlotAxis &operator=( const QgsPlotAxis &other ) = delete;
361
365 bool writeXml( QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context ) const;
366
370 bool readXml( const QDomElement &element, const QgsReadWriteContext &context );
371
376 Qgis::PlotAxisType type() const;
377
383
389 double gridIntervalMinor() const { return mGridIntervalMinor; }
390
396 void setGridIntervalMinor( double interval ) { mGridIntervalMinor = interval; }
397
403 double gridIntervalMajor() const { return mGridIntervalMajor; }
404
410 void setGridIntervalMajor( double interval ) { mGridIntervalMajor = interval; }
411
417 double labelInterval() const { return mLabelInterval; }
418
424 void setLabelInterval( double interval ) { mLabelInterval = interval; }
425
431 QgsLineSymbol *gridMajorSymbol();
432
440 const QgsLineSymbol *gridMajorSymbol() const SIP_SKIP;
441
449 void setGridMajorSymbol( QgsLineSymbol *symbol SIP_TRANSFER );
450
456 QgsLineSymbol *gridMinorSymbol();
457
465 const QgsLineSymbol *gridMinorSymbol() const SIP_SKIP;
466
474 void setGridMinorSymbol( QgsLineSymbol *symbol SIP_TRANSFER );
475
481 QgsTextFormat textFormat() const;
482
488 void setTextFormat( const QgsTextFormat &format );
489
495 QgsNumericFormat *numericFormat() const;
496
504 void setNumericFormat( QgsNumericFormat *format SIP_TRANSFER );
505
514 QString labelSuffix() const;
515
524 void setLabelSuffix( const QString &suffix );
525
534 Qgis::PlotAxisSuffixPlacement labelSuffixPlacement() const;
535
544 void setLabelSuffixPlacement( Qgis::PlotAxisSuffixPlacement placement );
545
551 static void copyProperties( const QgsPlotAxis &source, QgsPlotAxis &destination );
552
553 private:
554#ifdef SIP_RUN
555 QgsPlotAxis( const QgsPlotAxis &other );
556#endif
557
559
560 double mGridIntervalMinor = 1;
561 double mGridIntervalMajor = 5;
562
563 double mLabelInterval = 1;
564
565 QString mLabelSuffix;
567
568 std::unique_ptr< QgsNumericFormat > mNumericFormat;
569
570 std::unique_ptr< QgsLineSymbol > mGridMajorSymbol;
571 std::unique_ptr< QgsLineSymbol > mGridMinorSymbol;
572
573 QgsTextFormat mLabelTextFormat;
574};
575
584class CORE_EXPORT Qgs2DPlot : public QgsPlot
585{
586 public:
590 Qgs2DPlot();
591
592 ~Qgs2DPlot() override;
593
594 Qgs2DPlot( const Qgs2DPlot &other ) = delete;
595 Qgs2DPlot &operator=( const Qgs2DPlot &other ) = delete;
596
597 bool writeXml( QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context ) const override;
598 bool readXml( const QDomElement &element, const QgsReadWriteContext &context ) override;
599
603 virtual void render( QgsRenderContext &context, QgsPlotRenderContext &plotContext, const QgsPlotData &plotData = QgsPlotData() );
604
616 virtual void renderContent( QgsRenderContext &context, QgsPlotRenderContext &plotContext, const QRectF &plotArea, const QgsPlotData &plotData = QgsPlotData() );
617
623 QSizeF size() const;
624
630 void setSize( QSizeF size );
631
638 virtual QRectF interiorPlotArea( QgsRenderContext &context, QgsPlotRenderContext &plotContext, const QgsPlotData &plotData = QgsPlotData() ) const;
639
645 const QgsMargins &margins() const;
646
652 void setMargins( const QgsMargins &margins );
653
658 void copyCommonProperties( const Qgs2DPlot *other );
659
660 protected:
663
664 private:
665#ifdef SIP_RUN
666 Qgs2DPlot( const Qgs2DPlot &other );
667#endif
668
669 QSizeF mSize;
670 QgsMargins mMargins;
671
672 friend class Qgs2DXyPlot;
673};
674
686class CORE_EXPORT Qgs2DXyPlot : public Qgs2DPlot
687{
688 public:
692 Qgs2DXyPlot();
693
694 ~Qgs2DXyPlot() override;
695
696 Qgs2DXyPlot( const Qgs2DXyPlot &other ) = delete;
697 Qgs2DXyPlot &operator=( const Qgs2DXyPlot &other ) = delete;
698
699 bool writeXml( QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context ) const override;
700 bool readXml( const QDomElement &element, const QgsReadWriteContext &context ) override;
701
705 void render( QgsRenderContext &context, QgsPlotRenderContext &plotContext, const QgsPlotData &plotData = QgsPlotData() ) override;
706
711 QRectF interiorPlotArea( QgsRenderContext &context, QgsPlotRenderContext &plotContext, const QgsPlotData &plotData = QgsPlotData() ) const override;
712
721
727 double xMinimum() const { return mMinX; }
728
734 void setXMinimum( double minimum ) { mMinX = minimum; }
735
741 double yMinimum() const { return mMinY; }
742
748 void setYMinimum( double minimum ) { mMinY = minimum; }
749
755 double xMaximum() const { return mMaxX; }
756
762 void setXMaximum( double maximum ) { mMaxX = maximum; }
763
769 double yMaximum() const { return mMaxY; }
770
776 void setYMaximum( double maximum ) { mMaxY = maximum; }
777
783 QgsPlotAxis &xAxis() { return mXAxis; }
784
790 const QgsPlotAxis &xAxis() const SIP_SKIP { return mXAxis; }
791
797 QgsPlotAxis &yAxis() { return mYAxis; }
798
804 const QgsPlotAxis &yAxis() const SIP_SKIP { return mYAxis; }
805
811 QgsFillSymbol *chartBackgroundSymbol();
812
818 const QgsFillSymbol *chartBackgroundSymbol() const SIP_SKIP;
819
827 void setChartBackgroundSymbol( QgsFillSymbol *symbol SIP_TRANSFER );
828
834 QgsFillSymbol *chartBorderSymbol();
835
842 const QgsFillSymbol *chartBorderSymbol() const SIP_SKIP;
843
851 void setChartBorderSymbol( QgsFillSymbol *symbol SIP_TRANSFER );
852
856 bool flipAxes() const { return mFlipAxes; }
857
861 void setFlipAxes( bool flipAxes );
862
868 void copyCommonProperties( const Qgs2DXyPlot *other );
869
870 protected:
872 void applyDataDefinedProperties(
873 QgsRenderContext &context,
874 double &minX,
875 double &maxX,
876 double &minY,
877 double &maxY,
878 double &majorIntervalX,
879 double &minorIntervalX,
880 double &labelIntervalX,
881 double &majorIntervalY,
882 double &minorIntervalY,
883 double &labelIntervalY
884 ) const;
885
886 private:
887#ifdef SIP_RUN
888 Qgs2DXyPlot( const Qgs2DXyPlot &other );
889#endif
890
891 double mMinX = 0;
892 double mMinY = 0;
893 double mMaxX = 10;
894 double mMaxY = 10;
895
896 std::unique_ptr< QgsFillSymbol > mChartBackgroundSymbol;
897 std::unique_ptr< QgsFillSymbol > mChartBorderSymbol;
898
899 QgsPlotAxis mXAxis;
900 QgsPlotAxis mYAxis;
901
902 bool mFlipAxes = false;
903};
904
989
990#endif // QGSPLOT_H
Provides global constants and enumerations for use throughout the application.
Definition qgis.h:62
PlotAxisSuffixPlacement
Placement options for suffixes in the labels for axis of plots.
Definition qgis.h:3432
@ EveryLabel
Place suffix after every value label.
Definition qgis.h:3434
PlotAxisType
Plots axis types.
Definition qgis.h:3448
@ Interval
The axis represents a range of values.
Definition qgis.h:3449
Base class for 2-dimensional plot/chart/graphs.
Definition qgsplot.h:585
bool writeXml(QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const override
Writes the plot's properties into an XML element.
Definition qgsplot.cpp:281
virtual QRectF interiorPlotArea(QgsRenderContext &context, QgsPlotRenderContext &plotContext, const QgsPlotData &plotData=QgsPlotData()) const
Returns the area of the plot which corresponds to the actual plot content (excluding all titles and o...
Definition qgsplot.cpp:325
void applyDataDefinedProperties(QgsRenderContext &context, QgsMargins &margins) const
Applies 2D plot data-defined properties.
Definition qgsplot.cpp:348
virtual void renderContent(QgsRenderContext &context, QgsPlotRenderContext &plotContext, const QRectF &plotArea, const QgsPlotData &plotData=QgsPlotData())
Renders the plot content.
Definition qgsplot.cpp:310
void setSize(QSizeF size)
Sets the overall size of the plot (including titles and over components which sit outside the plot ar...
Definition qgsplot.cpp:320
const QgsMargins & margins() const
Returns the margins of the plot area (in millimeters).
Definition qgsplot.cpp:338
Qgs2DPlot & operator=(const Qgs2DPlot &other)=delete
~Qgs2DPlot() override
void copyCommonProperties(const Qgs2DPlot *other)
Copies all Qgs2DPlot-level properties (size, margins, data-defined properties) from other to this plo...
Definition qgsplot.cpp:397
friend class Qgs2DXyPlot
Definition qgsplot.h:672
Qgs2DPlot()
Constructor for Qgs2DPlot.
Definition qgsplot.cpp:277
Qgs2DPlot(const Qgs2DPlot &other)=delete
bool readXml(const QDomElement &element, const QgsReadWriteContext &context) override
Reads the plot's properties from an XML element.
Definition qgsplot.cpp:290
virtual void render(QgsRenderContext &context, QgsPlotRenderContext &plotContext, const QgsPlotData &plotData=QgsPlotData())
Renders the plot.
Definition qgsplot.cpp:299
QSizeF size() const
Returns the overall size of the plot (in millimeters) (including titles and other components which si...
Definition qgsplot.cpp:315
void setMargins(const QgsMargins &margins)
Sets the margins of the plot area (in millimeters).
Definition qgsplot.cpp:343
Base class for 2-dimensional plot/chart/graphs with an X and Y axes.
Definition qgsplot.h:687
void setXMaximum(double maximum)
Sets the maximum value of the x axis.
Definition qgsplot.h:762
double yMaximum() const
Returns the maximum value of the y axis.
Definition qgsplot.h:769
void setYMinimum(double minimum)
Sets the minimum value of the y axis.
Definition qgsplot.h:748
double xMinimum() const
Returns the minimum value of the x axis.
Definition qgsplot.h:727
bool readXml(const QDomElement &element, const QgsReadWriteContext &context) override
Reads the plot's properties from an XML element.
Definition qgsplot.cpp:450
Qgs2DXyPlot(const Qgs2DXyPlot &other)=delete
Qgs2DXyPlot & operator=(const Qgs2DXyPlot &other)=delete
QgsPlotAxis & yAxis()
Returns a reference to the plot's y axis.
Definition qgsplot.h:797
bool flipAxes() const
Returns whether the X and Y axes are flipped.
Definition qgsplot.h:856
~Qgs2DXyPlot() override
void render(QgsRenderContext &context, QgsPlotRenderContext &plotContext, const QgsPlotData &plotData=QgsPlotData()) override
Renders the plot.
Definition qgsplot.cpp:474
void setXMinimum(double minimum)
Sets the minimum value of the x axis.
Definition qgsplot.h:734
void calculateOptimisedIntervals(QgsRenderContext &context, QgsPlotRenderContext &plotContext)
Automatically sets the grid and label intervals to optimal values for display in the given render con...
Definition qgsplot.cpp:1042
const QgsPlotAxis & yAxis() const
Returns a reference to the plot's y axis.
Definition qgsplot.h:804
QgsPlotAxis & xAxis()
Returns a reference to the plot's x axis.
Definition qgsplot.h:783
Qgs2DXyPlot()
Constructor for Qgs2DXyPlot.
Definition qgsplot.cpp:414
const QgsPlotAxis & xAxis() const
Returns a reference to the plot's x axis.
Definition qgsplot.h:790
double yMinimum() const
Returns the minimum value of the y axis.
Definition qgsplot.h:741
QRectF interiorPlotArea(QgsRenderContext &context, QgsPlotRenderContext &plotContext, const QgsPlotData &plotData=QgsPlotData()) const override
Returns the area of the plot which corresponds to the actual plot content (excluding all titles and o...
Definition qgsplot.cpp:871
void setYMaximum(double maximum)
Sets the maximum value of the y axis.
Definition qgsplot.h:776
bool writeXml(QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const override
Writes the plot's properties into an XML element.
Definition qgsplot.cpp:422
double xMaximum() const
Returns the maximum value of the x axis.
Definition qgsplot.h:755
An abstract class used to encapsulate the data for a plot series.
Definition qgsplot.h:210
void setName(const QString &name)
Sets the series' name.
Definition qgsplot.cpp:1537
virtual ~QgsAbstractPlotSeries()=default
QString name() const
Returns the series' name.
Definition qgsplot.cpp:1532
QgsAbstractPlotSeries()=default
virtual QgsAbstractPlotSeries * clone() const =0
Clones the series.
A simple bar chart class.
Abstract base class for color ramps.
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
A simple line chart class.
A line symbol type, for rendering LineString and MultiLineString geometries.
Defines the four margins of a rectangle.
Definition qgsmargins.h:40
A marker symbol type, for rendering Point and MultiPoint geometries.
Abstract base class for numeric formatters, which allow for formatting a numeric value for display.
A simple pie chart class.
Encapsulates the properties of a plot axis.
Definition qgsplot.h:354
bool readXml(const QDomElement &element, const QgsReadWriteContext &context)
Reads the axis' properties from an XML element.
Definition qgsplot.cpp:161
double gridIntervalMinor() const
Returns the interval of minor grid lines for the axis.
Definition qgsplot.h:389
double gridIntervalMajor() const
Returns the interval of major grid lines for the axis.
Definition qgsplot.h:403
void setType(Qgis::PlotAxisType type)
Sets the axis type.
Definition qgsplot.cpp:129
void setGridIntervalMajor(double interval)
Sets the interval of major grid lines for the axis.
Definition qgsplot.h:410
void setGridIntervalMinor(double interval)
Sets the interval of minor grid lines for the axis.
Definition qgsplot.h:396
void setLabelInterval(double interval)
Sets the interval of labels for the axis.
Definition qgsplot.h:424
Qgis::PlotAxisType type() const
Returns the axis type.
Definition qgsplot.cpp:124
double labelInterval() const
Returns the interval of labels for the axis.
Definition qgsplot.h:417
QgsPlotAxis & operator=(const QgsPlotAxis &other)=delete
bool writeXml(QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const
Writes the axis' properties into an XML element.
Definition qgsplot.cpp:134
QgsPlotAxis(const QgsPlotAxis &other)=delete
Encapsulates one or more plot series.
Definition qgsplot.h:303
QgsPlotData()=default
QStringList categories() const
Returns the name of the series' categories.
Definition qgsplot.cpp:1518
QgsPlotData & operator=(const QgsPlotData &other)
Definition qgsplot.cpp:1472
void clearSeries()
Clears all series from the plot data.
Definition qgsplot.cpp:1512
QList< QgsAbstractPlotSeries * > series() const
Returns the list of series forming the plot data.
Definition qgsplot.cpp:1499
void setCategories(const QStringList &categories)
Sets the name of the series' categories.
Definition qgsplot.cpp:1523
void addSeries(QgsAbstractPlotSeries *series)
Adds a series to the plot data.
Definition qgsplot.cpp:1504
Manages default settings for plot objects.
Definition qgsplot.h:914
static QgsFillSymbol * chartBorderSymbol()
Returns the default fill symbol to use for the chart area border.
Definition qgsplot.cpp:1407
static QgsNumericFormat * pieChartNumericFormat()
Returns the default color ramp to use for pie charts.
Definition qgsplot.cpp:1444
static QgsNumericFormat * axisLabelNumericFormat()
Returns the default numeric format to use for plot axis labels.
Definition qgsplot.cpp:1382
static QgsColorRamp * pieChartColorRamp()
Returns the default color ramp to use for pie charts.
Definition qgsplot.cpp:1437
static QgsFillSymbol * barChartFillSymbol()
Returns the default fill symbol to use for bar charts.
Definition qgsplot.cpp:1425
static QgsLineSymbol * lineChartLineSymbol()
Returns the default line symbol to use for line charts.
Definition qgsplot.cpp:1419
static QgsLineSymbol * axisGridMinorSymbol()
Returns the default line symbol to use for axis minor grid lines.
Definition qgsplot.cpp:1394
static QgsFillSymbol * pieChartFillSymbol()
Returns the default fill symbol to use for pie charts.
Definition qgsplot.cpp:1431
static QgsMarkerSymbol * lineChartMarkerSymbol()
Returns the default marker symbol to use for line charts.
Definition qgsplot.cpp:1413
static QgsFillSymbol * chartBackgroundSymbol()
Returns the default fill symbol to use for the chart area background fill.
Definition qgsplot.cpp:1401
static QgsLineSymbol * axisGridMajorSymbol()
Returns the default line symbol to use for axis major grid lines.
Definition qgsplot.cpp:1387
Contains information about the context of a plot rendering operation.
Definition qgsplot.h:191
~QgsPlotRenderContext()=default
QgsPlotRenderContext()=default
Constructor for QgsPlotRenderContext.
Base class for plot/chart/graphs.
Definition qgsplot.h:48
QgsPlot()=default
void setDataDefinedProperties(const QgsPropertyCollection &collection)
Sets the plot's property collection, used for data defined overrides.
Definition qgsplot.h:151
const QgsPropertyCollection & dataDefinedProperties() const
Returns a reference to the plot's property collection, used for data defined overrides.
Definition qgsplot.h:143
virtual ~QgsPlot()
QgsPropertyCollection & dataDefinedProperties()
Returns a reference to the plot's property collection, used for data defined overrides.
Definition qgsplot.h:136
virtual QString type() const
Returns the plot's type.
Definition qgsplot.h:121
QgsPropertyCollection mDataDefinedProperties
Definition qgsplot.h:176
void setDataDefinedProperty(DataDefinedProperty key, const QgsProperty &property)
Sets a data defined property for the plot.
Definition qgsplot.h:129
DataDefinedProperty
Data defined properties for different plot types.
Definition qgsplot.h:96
A grouped map of multiple QgsProperty objects, each referenced by an integer key value.
A store for object properties.
A container for the context for various read/write operations on objects.
Contains information about the context of a rendering operation.
Abstract base class for all rendered symbols.
Definition qgssymbol.h:227
Container for all settings relating to text rendering.
Encapsulates the data for an XY plot series.
Definition qgsplot.h:263
void setData(const QList< std::pair< double, double > > &data)
Sets the series' list of XY pairs of double.
Definition qgsplot.cpp:1551
QgsAbstractPlotSeries * clone() const override
Clones the series.
Definition qgsplot.cpp:1566
QgsXyPlotSeries()=default
void append(double x, double y)
Appends a pair of X/Y double values to the series.
Definition qgsplot.cpp:1556
void clear()
Clears the series' data.
Definition qgsplot.cpp:1561
QList< std::pair< double, double > > data() const
Returns the series' list of XY pairs of double.
Definition qgsplot.cpp:1546
~QgsXyPlotSeries() override=default
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Definition qgis_sip.h:198
#define SIP_SKIP
Definition qgis_sip.h:133
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
Definition qgis_sip.h:267
#define SIP_TRANSFER
Definition qgis_sip.h:35
#define SIP_FACTORY
Definition qgis_sip.h:83
#define SIP_END
Definition qgis_sip.h:215
QMap< int, QgsPropertyDefinition > QgsPropertiesDefinition
Definition of available properties.