A class break object used to categorize a group of values that fall within a range of values. More...
Member Function Documentation[explicit]
ClassBreak::ClassBreak(QObject *parent = nullptr)
Default constructor with an optional parent.
ClassBreak::ClassBreak(const QString &label, const QString &description, double minValue, double maxValue, Esri::ArcGISRuntime::Symbol *symbol, QObject *parent = nullptr)Constructor that takes a label, description, minValue, maxValue, and symbol, with an optional parent.
[since Esri::ArcGISRuntime 100.13]
ClassBreak::ClassBreak(const QString &label, const QString &description, double minValue, double maxValue, Esri::ArcGISRuntime::Symbol *symbol, const QList<Esri::ArcGISRuntime::Symbol *> &alternateSymbols, QObject *parent = nullptr)
Creates a new class break object with alternate symbols.
A class break can have alternate symbols to the primary symbol. Alternate symbols allow you to tailor the visualization of class break at different scales by selecting different symbols for different scales. Alternate symbols are supported only when a class break's primary symbol and other symbols in the alternate symbol list are of type MultilayerSymbol and have SymbolReferenceProperties defining valid min and max scales at which the symbol becomes visible. The renderer will pick only one symbol at a given map scale. If the primary symbol's scale range falls within the map's scale, the primary symbol is used. If not, then symbols in the alternate symbols list are iterated through and the first symbol matching the current map scale is picked for rendering. A symbol becomes visible if the map scale is less than or equal to the symbol's minimum scale and greater than the symbol's maximum scale. For more information about Scale-based symbol classes and alternate symbols, see Use scale-based symbol classes.
This function was introduced in Esri::ArcGISRuntime 100.13.
[override virtual noexcept]
ClassBreak::~ClassBreak()
Destructor.
[since Esri::ArcGISRuntime 100.13]
Esri::ArcGISRuntime::SymbolListModel *ClassBreak::alternateSymbols() const
Returns the alternate symbols for the class break's primary symbol.
Symbols in this list should be of type MultilayerSymbol and must have SymbolReferenceProperties set with valid minimum and maximum scale at which the symbol becomes visible. The renderer will pick only one symbol at a given map scale. If the primary symbol's scale range falls within the map's scale, the primary symbol is used. If not, then symbols in the alternate symbols list are iterated through and the first symbol matching the current map scale is picked for rendering. A symbol becomes visible if the map scale is less than or equal to the symbol's minimum scale and greater than symbol's maximum scale.
This function was introduced in Esri::ArcGISRuntime 100.13.
Esri::ArcGISRuntime::ClassBreak *ClassBreak::clone(QObject *parent = nullptr) constClones and returns the ClassBreak with an optional parent.
Returns a new instance of the class break.
QString ClassBreak::description() constReturns the description of the class break.
"Cities with a population under 100,000", for example.
See also setDescription().
[static]
Esri::ArcGISRuntime::ClassBreak *ClassBreak::fromJson(const QString &json, QObject *parent = nullptr)
Creates and returns a new class break from the provided json, with an optional parent.
See also JsonSerializable.
QString ClassBreak::label() constReturns the label for the class break.
"0 - 100000", for example.
See also setLabel().
double ClassBreak::maxValue() constReturns the maximum value of the range that defines the break.
See also setMaxValue().
double ClassBreak::minValue() constReturns the minimum value of the range that defines the break.
See also setMinValue().
void ClassBreak::setDescription(const QString &description)Sets the description of the class break.
"Cities with a population under 100,000", for example.
See also description().
void ClassBreak::setLabel(const QString &label)Sets the label for the class break.
"0 - 100000", for example.
See also label().
void ClassBreak::setMaxValue(double maxValue)Sets the maxValue of the range that defines the break.
See also maxValue().
void ClassBreak::setMinValue(double minValue)Sets the minValue of the range that defines the break.
See also minValue().
void ClassBreak::setSymbol(Esri::ArcGISRuntime::Symbol *symbol)Sets the symbol used to represent elements in the class break.
See also symbol().
Esri::ArcGISRuntime::Symbol *ClassBreak::symbol() constReturns the symbol used to represent elements in the class break.
See also setSymbol().
[override virtual]
QString ClassBreak::toJson() const
Reimplements: JsonSerializable::toJson() const.
Returns this class break as a JSON representation.
See also JsonSerializable.
[since Esri::ArcGISRuntime 200.2]
bool ClassBreak::operator!=(const Esri::ArcGISRuntime::ClassBreak *other) const
Inequality operator.
Returns true
if this object and other are not equal.
This function was introduced in Esri::ArcGISRuntime 200.2.
See also ClassBreak::operator==.
bool ClassBreak::operator==(const Esri::ArcGISRuntime::ClassBreak *other) constTests and returns true
if this object is equal to a second ClassBreak object.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4