Skip To Content ArcGIS for Developers Sign In Dashboard

ClassBreak Class

(Esri::ArcGISRuntime::ClassBreak)

A class break definition for use with a class breaks renderer. More...

Header: #include <ClassBreak>
Since: Esri::ArcGISRuntime 100.0
Inherits: Object and JsonSerializable

Public Functions

ClassBreak(QObject *parent = nullptr)
ClassBreak(const QString &label, const QString &description, double minValue, double maxValue, Symbol *symbol, QObject *parent = nullptr)
~ClassBreak()
ClassBreak *clone(QObject *parent = nullptr) const
QString description() const
QString label() const
double maxValue() const
double minValue() const
void setDescription(const QString &description)
void setLabel(const QString &label)
void setMaxValue(double maxValue)
void setMinValue(double minValue)
void setSymbol(Symbol *symbol)
Symbol *symbol() const
bool operator==(const ClassBreak *other) const

Reimplemented Public Functions

virtual QString toJson() const
virtual QJsonObject unknownJson() const
virtual QJsonObject unsupportedJson() const

Static Public Members

ClassBreak *fromJson(const QString &json, QObject *parent = nullptr)
  • 10 static public members inherited from QObject

Additional Inherited Members

Detailed Description

A class break definition for use with a class breaks renderer.

A class break corresponds to a range of values for an attribute field. A list of class break instances are maintained in the ClassBreakListModel. When the class breaks renderer is used to display a layer, the symbol used for a feature is determined by the value in a selected attribute. When the value falls within a class break, the corresponding symbol and label display.

Class breaks contain this information: Value, range, name, and description, as well as the label and symbol to display for features that contain attribute values within this class break.

See also ClassBreaksRenderer.

Member Function Documentation

ClassBreak::ClassBreak(QObject *parent = nullptr)

Default constructor with an optional parent.

ClassBreak::ClassBreak(const QString &label, const QString &description, double minValue, double maxValue, Symbol *symbol, QObject *parent = nullptr)

Constructor that takes a label, description, minValue, maxValue, and symbol, with an optional parent.

ClassBreak::~ClassBreak()

Destructor.

ClassBreak *ClassBreak::clone(QObject *parent = nullptr) const

Clones the class break to a new instance with an optional parent.

Returns a new instance of the class break.

QString ClassBreak::description() const

Returns the description of this class break.

See also setDescription().

[static] 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() const

Returns the label used to display this class break.

See also setLabel().

double ClassBreak::maxValue() const

Returns the maximum value of this class break.

See also setMaxValue().

double ClassBreak::minValue() const

Returns the minimum value of this class break.

See also setMinValue().

void ClassBreak::setDescription(const QString &description)

Sets the description of this class break.

See also description().

void ClassBreak::setLabel(const QString &label)

Sets the label used to display this class break.

See also label().

void ClassBreak::setMaxValue(double maxValue)

Sets the maxValue of this class break.

See also maxValue().

void ClassBreak::setMinValue(double minValue)

Sets the minValue of this class break.

See also minValue().

void ClassBreak::setSymbol(Symbol *symbol)

Sets the symbol used to display this class break.

See also symbol().

Symbol *ClassBreak::symbol() const

Returns the symbol used to display this class break.

See also setSymbol().

[virtual] QString ClassBreak::toJson() const

Reimplemented from JsonSerializable::toJson().

Returns this class break as a JSON representation.

See also JsonSerializable.

[virtual] QJsonObject ClassBreak::unknownJson() const

Reimplemented from JsonSerializable::unknownJson().

Gets the unknown JSON of this object.

See also JsonSerializable.

[virtual] QJsonObject ClassBreak::unsupportedJson() const

Reimplemented from JsonSerializable::unsupportedJson().

Gets the unsupported JSON of this object.

See also JsonSerializable.

bool ClassBreak::operator==(const ClassBreak *other) const

Equivalency operator

Returns true if this object and other equal.


Feedback on this topic?