|
QGIS API Documentation 3.99.0-Master (e9821da5c6b)
|
Settings for a color ramp legend node. More...
#include <qgscolorramplegendnodesettings.h>
Public Types | |
| enum | Direction { MinimumToMaximum , MaximumToMinimum } |
| Ramp directions. More... | |
Public Member Functions | |
| QgsColorRampLegendNodeSettings () | |
| QgsColorRampLegendNodeSettings (const QgsColorRampLegendNodeSettings &other) | |
| QgsColorRampLegendNodeSettings (QgsColorRampLegendNodeSettings &&other) | |
| ~QgsColorRampLegendNodeSettings () | |
| QgsColorRampLegendNodeSettings::Direction | direction () const |
| Returns the direction of the ramp. | |
| QString | maximumLabel () const |
| Returns the label for the maximum value on the ramp. | |
| QString | minimumLabel () const |
| Returns the label for the minimum value on the ramp. | |
| const QgsNumericFormat * | numericFormat () const |
| Returns the numeric format used for numbers in the scalebar. | |
| QgsColorRampLegendNodeSettings & | operator= (const QgsColorRampLegendNodeSettings &other) |
| QgsColorRampLegendNodeSettings & | operator= (QgsColorRampLegendNodeSettings &&other) |
| Qt::Orientation | orientation () const |
| Returns the ramp orientation (i.e. | |
| QString | prefix () const |
| Returns the prefix to show before legend text. | |
| void | readXml (const QDomElement &element, const QgsReadWriteContext &context) |
| Reads settings from an XML element. | |
| void | setDirection (QgsColorRampLegendNodeSettings::Direction direction) |
| Sets the direction of the ramp. | |
| void | setMaximumLabel (const QString &label) |
| Sets the label for the maximum value on the ramp. | |
| void | setMinimumLabel (const QString &label) |
| Sets the label for the minimum value on the ramp. | |
| void | setNumericFormat (QgsNumericFormat *format) |
| Sets the numeric format used for numbers in the scalebar. | |
| void | setOrientation (Qt::Orientation orientation) |
| Sets the ramp orientation (i.e. | |
| void | setPrefix (const QString &prefix) |
| Sets the prefix to show before legend text. | |
| void | setSuffix (const QString &suffix) |
| Sets the suffix to show after legend text. | |
| void | setTextFormat (const QgsTextFormat &format) |
| Sets the text format used to render text in the legend item. | |
| void | setUseContinuousLegend (bool useContinuousLegend) |
| Sets the flag to use a continuous gradient legend to useContinuousLegend. | |
| QString | suffix () const |
| Returns the suffix to show after legend text. | |
| QgsTextFormat | textFormat () const |
| Returns the text format used to render text in the legend item. | |
| bool | useContinuousLegend () const |
Returns true if a continuous gradient legend will be used. | |
| void | writeXml (QDomDocument &doc, QDomElement &element, const QgsReadWriteContext &context) const |
| Writes settings to an XML element. | |
Settings for a color ramp legend node.
Definition at line 38 of file qgscolorramplegendnodesettings.h.
Ramp directions.
| Enumerator | |
|---|---|
| MinimumToMaximum | Minimum value on bottom, maximum value on top. |
| MaximumToMinimum | Maximum value on bottom, minimum value on top. |
Definition at line 45 of file qgscolorramplegendnodesettings.h.
| QgsColorRampLegendNodeSettings::QgsColorRampLegendNodeSettings | ( | ) |
Definition at line 28 of file qgscolorramplegendnodesettings.cpp.
|
default |
| QgsColorRampLegendNodeSettings::QgsColorRampLegendNodeSettings | ( | const QgsColorRampLegendNodeSettings & | other | ) |
Definition at line 33 of file qgscolorramplegendnodesettings.cpp.
| QgsColorRampLegendNodeSettings::QgsColorRampLegendNodeSettings | ( | QgsColorRampLegendNodeSettings && | other | ) |
Definition at line 49 of file qgscolorramplegendnodesettings.cpp.
| QgsColorRampLegendNodeSettings::Direction QgsColorRampLegendNodeSettings::direction | ( | ) | const |
Returns the direction of the ramp.
Definition at line 101 of file qgscolorramplegendnodesettings.cpp.
| QString QgsColorRampLegendNodeSettings::maximumLabel | ( | ) | const |
Returns the label for the maximum value on the ramp.
If the returned string is empty than a default value will be generated based on the associated maximum value.
Definition at line 121 of file qgscolorramplegendnodesettings.cpp.
| QString QgsColorRampLegendNodeSettings::minimumLabel | ( | ) | const |
Returns the label for the minimum value on the ramp.
If the returned string is empty than a default value will be generated based on the associated minimum value.
Definition at line 111 of file qgscolorramplegendnodesettings.cpp.
| const QgsNumericFormat * QgsColorRampLegendNodeSettings::numericFormat | ( | ) | const |
Returns the numeric format used for numbers in the scalebar.
Definition at line 131 of file qgscolorramplegendnodesettings.cpp.
| QgsColorRampLegendNodeSettings & QgsColorRampLegendNodeSettings::operator= | ( | const QgsColorRampLegendNodeSettings & | other | ) |
Definition at line 63 of file qgscolorramplegendnodesettings.cpp.
| QgsColorRampLegendNodeSettings & QgsColorRampLegendNodeSettings::operator= | ( | QgsColorRampLegendNodeSettings && | other | ) |
Definition at line 82 of file qgscolorramplegendnodesettings.cpp.
| Qt::Orientation QgsColorRampLegendNodeSettings::orientation | ( | ) | const |
Returns the ramp orientation (i.e.
horizontal or vertical).
Definition at line 226 of file qgscolorramplegendnodesettings.cpp.
| QString QgsColorRampLegendNodeSettings::prefix | ( | ) | const |
Returns the prefix to show before legend text.
Definition at line 196 of file qgscolorramplegendnodesettings.cpp.
| void QgsColorRampLegendNodeSettings::readXml | ( | const QDomElement & | element, |
| const QgsReadWriteContext & | context ) |
Reads settings from an XML element.
Definition at line 165 of file qgscolorramplegendnodesettings.cpp.
| void QgsColorRampLegendNodeSettings::setDirection | ( | QgsColorRampLegendNodeSettings::Direction | direction | ) |
Sets the direction of the ramp.
Definition at line 106 of file qgscolorramplegendnodesettings.cpp.
| void QgsColorRampLegendNodeSettings::setMaximumLabel | ( | const QString & | label | ) |
Sets the label for the maximum value on the ramp.
If the label is empty than a default value will be generated based on the associated maximum value.
Definition at line 126 of file qgscolorramplegendnodesettings.cpp.
| void QgsColorRampLegendNodeSettings::setMinimumLabel | ( | const QString & | label | ) |
Sets the label for the minimum value on the ramp.
If the label is empty than a default value will be generated based on the associated minimum value.
Definition at line 116 of file qgscolorramplegendnodesettings.cpp.
| void QgsColorRampLegendNodeSettings::setNumericFormat | ( | QgsNumericFormat * | format | ) |
Sets the numeric format used for numbers in the scalebar.
Ownership of format is transferred to the scalebar.
Definition at line 136 of file qgscolorramplegendnodesettings.cpp.
| void QgsColorRampLegendNodeSettings::setOrientation | ( | Qt::Orientation | orientation | ) |
Sets the ramp orientation (i.e.
horizontal or vertical).
Definition at line 231 of file qgscolorramplegendnodesettings.cpp.
| void QgsColorRampLegendNodeSettings::setPrefix | ( | const QString & | prefix | ) |
Sets the prefix to show before legend text.
Definition at line 201 of file qgscolorramplegendnodesettings.cpp.
| void QgsColorRampLegendNodeSettings::setSuffix | ( | const QString & | suffix | ) |
Sets the suffix to show after legend text.
Definition at line 211 of file qgscolorramplegendnodesettings.cpp.
| void QgsColorRampLegendNodeSettings::setTextFormat | ( | const QgsTextFormat & | format | ) |
Sets the text format used to render text in the legend item.
Definition at line 221 of file qgscolorramplegendnodesettings.cpp.
| void QgsColorRampLegendNodeSettings::setUseContinuousLegend | ( | bool | useContinuousLegend | ) |
Sets the flag to use a continuous gradient legend to useContinuousLegend.
When this flag is set the legend will be rendered using a continuous color ramp with min and max values, when it is not set the legend will be rendered using separate items for each entry.
Definition at line 241 of file qgscolorramplegendnodesettings.cpp.
| QString QgsColorRampLegendNodeSettings::suffix | ( | ) | const |
Returns the suffix to show after legend text.
Definition at line 206 of file qgscolorramplegendnodesettings.cpp.
| QgsTextFormat QgsColorRampLegendNodeSettings::textFormat | ( | ) | const |
Returns the text format used to render text in the legend item.
Definition at line 216 of file qgscolorramplegendnodesettings.cpp.
| bool QgsColorRampLegendNodeSettings::useContinuousLegend | ( | ) | const |
Returns true if a continuous gradient legend will be used.
Definition at line 236 of file qgscolorramplegendnodesettings.cpp.
| void QgsColorRampLegendNodeSettings::writeXml | ( | QDomDocument & | doc, |
| QDomElement & | element, | ||
| const QgsReadWriteContext & | context ) const |
Writes settings to an XML element.
Definition at line 141 of file qgscolorramplegendnodesettings.cpp.