QGIS API Documentation 3.99.0-Master (21b3aa880ba)
Loading...
Searching...
No Matches
QgsPlotData Class Reference

Encapsulates one or more plot series. More...

#include <qgsplot.h>

Public Member Functions

 QgsPlotData ()=default
 QgsPlotData (const QgsPlotData &other)
 QgsPlotData (QgsPlotData &&other)
 ~QgsPlotData ()
void addSeries (QgsAbstractPlotSeries *series)
 Adds a series to the plot data.
QStringList categories () const
 Returns the name of the series' categories.
void clearSeries ()
 Clears all series from the plot data.
QgsPlotDataoperator= (const QgsPlotData &other)
QgsPlotDataoperator= (QgsPlotData &&other)
QList< QgsAbstractPlotSeries * > series () const
 Returns the list of series forming the plot data.
void setCategories (const QStringList &categories)
 Sets the name of the series' categories.

Detailed Description

Encapsulates one or more plot series.

Warning
This class is not considered stable API, and may change in future!
Since
QGIS 4.0

Definition at line 299 of file qgsplot.h.

Constructor & Destructor Documentation

◆ QgsPlotData() [1/3]

QgsPlotData::QgsPlotData ( )
default

◆ ~QgsPlotData()

QgsPlotData::~QgsPlotData ( )

Definition at line 1234 of file qgsplot.cpp.

◆ QgsPlotData() [2/3]

QgsPlotData::QgsPlotData ( const QgsPlotData & other)

Definition at line 1239 of file qgsplot.cpp.

◆ QgsPlotData() [3/3]

QgsPlotData::QgsPlotData ( QgsPlotData && other)

Definition at line 1248 of file qgsplot.cpp.

Member Function Documentation

◆ addSeries()

void QgsPlotData::addSeries ( QgsAbstractPlotSeries * series)

Adds a series to the plot data.

Note
the series' ownership is transferred to this object.

Definition at line 1286 of file qgsplot.cpp.

◆ categories()

QStringList QgsPlotData::categories ( ) const

Returns the name of the series' categories.

Definition at line 1300 of file qgsplot.cpp.

◆ clearSeries()

void QgsPlotData::clearSeries ( )

Clears all series from the plot data.

Definition at line 1294 of file qgsplot.cpp.

◆ operator=() [1/2]

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

Definition at line 1254 of file qgsplot.cpp.

◆ operator=() [2/2]

QgsPlotData & QgsPlotData::operator= ( QgsPlotData && other)

Definition at line 1269 of file qgsplot.cpp.

◆ series()

QList< QgsAbstractPlotSeries * > QgsPlotData::series ( ) const

Returns the list of series forming the plot data.

Note
the series' ownership is retained by this object.

Definition at line 1281 of file qgsplot.cpp.

◆ setCategories()

void QgsPlotData::setCategories ( const QStringList & categories)

Sets the name of the series' categories.

Definition at line 1305 of file qgsplot.cpp.


The documentation for this class was generated from the following files: