|
QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Encapsulates the properties of a plot axis. More...
#include <qgsplot.h>
Public Member Functions | |
| QgsPlotAxis () | |
| QgsPlotAxis (const QgsPlotAxis &other)=delete | |
| QgsPlotAxis cannot be copied. More... | |
| ~QgsPlotAxis () | |
| double | gridIntervalMajor () const |
| Returns the interval of major grid lines for the axis. More... | |
| double | gridIntervalMinor () const |
| Returns the interval of minor grid lines for the axis. More... | |
| QgsLineSymbol * | gridMajorSymbol () |
| Returns the line symbol used to render the major lines in the axis grid. More... | |
| QgsLineSymbol * | gridMinorSymbol () |
| Returns the line symbol used to render the minor lines in the axis grid. More... | |
| double | labelInterval () const |
| Returns the interval of labels for the axis. More... | |
| QgsNumericFormat * | numericFormat () const |
| Returns the numeric format used for the axis labels. More... | |
| QgsPlotAxis & | operator= (const QgsPlotAxis &other)=delete |
| QgsPlotAxis cannot be copied. More... | |
| bool | readXml (const QDomElement &element, QgsReadWriteContext &context) |
| Reads the axis' properties from an XML element. More... | |
| void | setGridIntervalMajor (double interval) |
| Sets the interval of major grid lines for the axis. More... | |
| void | setGridIntervalMinor (double interval) |
| Sets the interval of minor grid lines for the axis. More... | |
| void | setGridMajorSymbol (QgsLineSymbol *symbol) |
| Sets the symbol used to render the major lines in the axis grid. More... | |
| void | setGridMinorSymbol (QgsLineSymbol *symbol) |
| Sets the symbol used to render the minor lines in the axis grid. More... | |
| void | setLabelInterval (double interval) |
| Sets the interval of labels for the axis. More... | |
| void | setNumericFormat (QgsNumericFormat *format) |
| Sets the numeric format used for the axis labels. More... | |
| void | setTextFormat (const QgsTextFormat &format) |
| Sets the text format used for the axis labels. More... | |
| QgsTextFormat | textFormat () const |
| Returns the text format used for the axis labels. More... | |
| bool | writeXml (QDomElement &element, QDomDocument &document, QgsReadWriteContext &context) const |
| Writes the axis' properties into an XML element. More... | |
Encapsulates the properties of a plot axis.
| QgsPlotAxis::QgsPlotAxis | ( | ) |
Definition at line 45 of file qgsplot.cpp.
|
default |
|
delete |
QgsPlotAxis cannot be copied.
|
inline |
Returns the interval of major grid lines for the axis.
|
inline |
Returns the interval of minor grid lines for the axis.
| QgsLineSymbol * QgsPlotAxis::gridMajorSymbol | ( | ) |
Returns the line symbol used to render the major lines in the axis grid.
Definition at line 116 of file qgsplot.cpp.
| QgsLineSymbol * QgsPlotAxis::gridMinorSymbol | ( | ) |
Returns the line symbol used to render the minor lines in the axis grid.
Definition at line 126 of file qgsplot.cpp.
|
inline |
Returns the interval of labels for the axis.
| QgsNumericFormat * QgsPlotAxis::numericFormat | ( | ) | const |
Returns the numeric format used for the axis labels.
Definition at line 106 of file qgsplot.cpp.
|
delete |
QgsPlotAxis cannot be copied.
| bool QgsPlotAxis::readXml | ( | const QDomElement & | element, |
| QgsReadWriteContext & | context | ||
| ) |
Reads the axis' properties from an XML element.
Definition at line 86 of file qgsplot.cpp.
|
inline |
Sets the interval of major grid lines for the axis.
|
inline |
Sets the interval of minor grid lines for the axis.
| void QgsPlotAxis::setGridMajorSymbol | ( | QgsLineSymbol * | symbol | ) |
Sets the symbol used to render the major lines in the axis grid.
Ownership of symbol is transferred to the plot.
Definition at line 121 of file qgsplot.cpp.
| void QgsPlotAxis::setGridMinorSymbol | ( | QgsLineSymbol * | symbol | ) |
Sets the symbol used to render the minor lines in the axis grid.
Ownership of symbol is transferred to the plot.
Definition at line 131 of file qgsplot.cpp.
|
inline |
Sets the interval of labels for the axis.
| void QgsPlotAxis::setNumericFormat | ( | QgsNumericFormat * | format | ) |
Sets the numeric format used for the axis labels.
Ownership of format is transferred to the plot.
Definition at line 111 of file qgsplot.cpp.
| void QgsPlotAxis::setTextFormat | ( | const QgsTextFormat & | format | ) |
Sets the text format used for the axis labels.
Definition at line 141 of file qgsplot.cpp.
| QgsTextFormat QgsPlotAxis::textFormat | ( | ) | const |
Returns the text format used for the axis labels.
Definition at line 136 of file qgsplot.cpp.
| bool QgsPlotAxis::writeXml | ( | QDomElement & | element, |
| QDomDocument & | document, | ||
| QgsReadWriteContext & | context | ||
| ) | const |
Writes the axis' properties into an XML element.
Definition at line 62 of file qgsplot.cpp.
1.8.17