|
QGIS API Documentation 3.99.0-Master (2fe06baccd8)
|
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 24 of file qgscolorramplegendnodesettings.cpp.
|
default |
| QgsColorRampLegendNodeSettings::QgsColorRampLegendNodeSettings | ( | const QgsColorRampLegendNodeSettings & | other | ) |
Definition at line 29 of file qgscolorramplegendnodesettings.cpp.
| QgsColorRampLegendNodeSettings::QgsColorRampLegendNodeSettings | ( | QgsColorRampLegendNodeSettings && | other | ) |
Definition at line 45 of file qgscolorramplegendnodesettings.cpp.
| QgsColorRampLegendNodeSettings::Direction QgsColorRampLegendNodeSettings::direction | ( | ) | const |
Returns the direction of the ramp.
Definition at line 97 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 117 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 107 of file qgscolorramplegendnodesettings.cpp.
| const QgsNumericFormat * QgsColorRampLegendNodeSettings::numericFormat | ( | ) | const |
Returns the numeric format used for numbers in the scalebar.
Definition at line 127 of file qgscolorramplegendnodesettings.cpp.
| QgsColorRampLegendNodeSettings & QgsColorRampLegendNodeSettings::operator= | ( | const QgsColorRampLegendNodeSettings & | other | ) |
Definition at line 59 of file qgscolorramplegendnodesettings.cpp.
| QgsColorRampLegendNodeSettings & QgsColorRampLegendNodeSettings::operator= | ( | QgsColorRampLegendNodeSettings && | other | ) |
Definition at line 78 of file qgscolorramplegendnodesettings.cpp.
| Qt::Orientation QgsColorRampLegendNodeSettings::orientation | ( | ) | const |
Returns the ramp orientation (i.e.
horizontal or vertical).
Definition at line 222 of file qgscolorramplegendnodesettings.cpp.
| QString QgsColorRampLegendNodeSettings::prefix | ( | ) | const |
Returns the prefix to show before legend text.
Definition at line 192 of file qgscolorramplegendnodesettings.cpp.
| void QgsColorRampLegendNodeSettings::readXml | ( | const QDomElement & | element, |
| const QgsReadWriteContext & | context ) |
Reads settings from an XML element.
Definition at line 161 of file qgscolorramplegendnodesettings.cpp.
| void QgsColorRampLegendNodeSettings::setDirection | ( | QgsColorRampLegendNodeSettings::Direction | direction | ) |
Sets the direction of the ramp.
Definition at line 102 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 122 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 112 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 132 of file qgscolorramplegendnodesettings.cpp.
| void QgsColorRampLegendNodeSettings::setOrientation | ( | Qt::Orientation | orientation | ) |
Sets the ramp orientation (i.e.
horizontal or vertical).
Definition at line 227 of file qgscolorramplegendnodesettings.cpp.
| void QgsColorRampLegendNodeSettings::setPrefix | ( | const QString & | prefix | ) |
Sets the prefix to show before legend text.
Definition at line 197 of file qgscolorramplegendnodesettings.cpp.
| void QgsColorRampLegendNodeSettings::setSuffix | ( | const QString & | suffix | ) |
Sets the suffix to show after legend text.
Definition at line 207 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 217 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 237 of file qgscolorramplegendnodesettings.cpp.
| QString QgsColorRampLegendNodeSettings::suffix | ( | ) | const |
Returns the suffix to show after legend text.
Definition at line 202 of file qgscolorramplegendnodesettings.cpp.
| QgsTextFormat QgsColorRampLegendNodeSettings::textFormat | ( | ) | const |
Returns the text format used to render text in the legend item.
Definition at line 212 of file qgscolorramplegendnodesettings.cpp.
| bool QgsColorRampLegendNodeSettings::useContinuousLegend | ( | ) | const |
Returns true if a continuous gradient legend will be used.
Definition at line 232 of file qgscolorramplegendnodesettings.cpp.
| void QgsColorRampLegendNodeSettings::writeXml | ( | QDomDocument & | doc, |
| QDomElement & | element, | ||
| const QgsReadWriteContext & | context ) const |
Writes settings to an XML element.
Definition at line 137 of file qgscolorramplegendnodesettings.cpp.