QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
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 302 of file qgsplot.h.

Constructor & Destructor Documentation

◆ QgsPlotData() [1/3]

QgsPlotData::QgsPlotData ( )
default

◆ ~QgsPlotData()

QgsPlotData::~QgsPlotData ( )

Definition at line 1453 of file qgsplot.cpp.

◆ QgsPlotData() [2/3]

QgsPlotData::QgsPlotData ( const QgsPlotData & other)

Definition at line 1458 of file qgsplot.cpp.

◆ QgsPlotData() [3/3]

QgsPlotData::QgsPlotData ( QgsPlotData && other)

Definition at line 1467 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 1504 of file qgsplot.cpp.

◆ categories()

QStringList QgsPlotData::categories ( ) const

Returns the name of the series' categories.

Definition at line 1518 of file qgsplot.cpp.

◆ clearSeries()

void QgsPlotData::clearSeries ( )

Clears all series from the plot data.

Definition at line 1512 of file qgsplot.cpp.

◆ operator=() [1/2]

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

Definition at line 1472 of file qgsplot.cpp.

◆ operator=() [2/2]

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

Definition at line 1487 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 1499 of file qgsplot.cpp.

◆ setCategories()

void QgsPlotData::setCategories ( const QStringList & categories)

Sets the name of the series' categories.

Definition at line 1523 of file qgsplot.cpp.


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