Specifies how to calculate the angular position and layout direction for labels on or around point feature symbols. More...
|  Header |  #include <Label | 
|  Since |  Esri | 
|  Inherits |  Esri | 
This class was introduced in Esri::ArcGISRuntime 100.11.
Public Functions
| Label | |
| Label | |
| virtual | ~ | 
|  Esri | angle | 
|  Esri | rotation | 
| void | set | 
| void | set | 
Reimplemented Public Functions
| virtual QString | to | 
|  virtual QJson | unknown | 
|  virtual QJson | unsupported | 
Static Public Members
|  Esri | from | 
Detailed Description
The angular position may be different for each feature (driven by one or more feature attributes) or constant for all features (specified by a fixed number).
Member Function Documentation
LabelAngle::LabelAngle (Esri::ArcGISRuntime::ArcadeExpression     *arcadeExpression , Esri::ArcGISRuntime::LabelAngleRotationType       rotationType , QObject *parent = nullptr)  
Creates a LabelAngle with the specified ArcadeExpression and LabelAngleRotationType.
- arcadeExpression - The Arcade expression script. The expression is expected to be a complete, self-contained Arcade expression that calculates an angle in degrees.
 - rotationType - Whether the angle should be interpreted as arithmetic or geographic.
 - parent - The optional parent QObject.
 
LabelAngle::LabelAngle (Esri::ArcGISRuntime::ArcadeExpression     *arcadeExpression , QObject *parent = nullptr)  
Creates a LabelAngle with the specified ArcadeExpression.
- arcadeExpression - The Arcade expression script. The expression is expected to be a complete, self-contained Arcade expression that calculates an angle in degrees.
 - parent - The optional parent QObject.
 
The rotationType will be defaulted to LabelAngleRotationType::Automatic.
[override virtual] LabelAngle::~LabelAngle  ()  
Destructor.
Esri::ArcGISRuntime::ArcadeExpression     *LabelAngle::angleExpression () const   
Return specifies how the angle (in degrees) is calculated from the feature attributes, using an Arcade expression.
The calculation may use attributes, fixed numbers, or a combination of both. The default value is an ArcadeExpression containing an empty expression string, which will produce a zero angle when evaluated.
See also setAngleExpression().
[static] Esri::ArcGISRuntime::LabelAngle     *LabelAngle::fromJson (const QString &json, QObject *parent = nullptr)   
Creates a new LabelAngle from json with an optional parent.
See also JsonSerializable.
Esri::ArcGISRuntime::LabelAngleRotationType       LabelAngle::rotationType () const  
Returns whether the angle should be interpreted as arithmetic or geographic.
The default value is LabelAngleRotationType::Automatic (which will be interpreted as LabelAngleRotationType::Arithmetic).
See also setRotationType().
void LabelAngle::setAngleExpression  (Esri::ArcGISRuntime::ArcadeExpression     *angleExpression )  
Sets the angleExpression to angleExpression.
See also angleExpression.
void LabelAngle::setRotationType  (Esri::ArcGISRuntime::LabelAngleRotationType       rotationType )  
Sets the rotationType to rotationType.
See also rotationType.
[override virtual] QString LabelAngle::toJson () const  
Reimplements: JsonSerializable::toJson() const.
Gets the json string representation of this object.
See also JsonSerializable.
[override virtual] QJsonObject  LabelAngle::unknownJson () const  
Reimplements: JsonSerializable::unknownJson() const.
Gets the unknown JSON of this object.
See also JsonSerializable.
[override virtual] QJsonObject  LabelAngle::unsupportedJson () const  
Reimplements: JsonSerializable::unsupportedJson() const.
Gets the unsupported JSON data of this object.
See also JsonSerializable.