Skip To Content ArcGIS for Developers Sign In Dashboard

DistanceSymbolRange Class

(Esri::ArcGISRuntime::DistanceSymbolRange)

Contains a symbol distance range at which the symbol is appropriately viewed. More...

Header: #include <DistanceSymbolRange>
Since: Esri::ArcGISRuntime 100.0
Inherits: Object

Public Functions

DistanceSymbolRange(QObject *parent = nullptr)
DistanceSymbolRange(Symbol *symbol, QObject *parent = nullptr)
DistanceSymbolRange(Symbol *symbol, double minDistance, double maxDistance, QObject *parent = nullptr)
~DistanceSymbolRange()
double maxDistance() const
double minDistance() const
void setMaxDistance(double maxDistance)
void setMinDistance(double minDistance)
void setSymbol(Symbol *symbol)
Symbol *symbol() const
  • 31 public functions inherited from QObject

Additional Inherited Members

Detailed Description

Contains a symbol distance range at which the symbol is appropriately viewed.

DistanceSymbolRange is used closely with DistanceCompositeSceneSymbol and DistanceSymbolRangeListModel to manage dynamic symbols based on distance from the Camera.

When not specified in the constructor, the minimum and maximum range values are set to 0.0. When the values are 0.0, the range will not be used.

See also DistanceCompositeSceneSymbol and DistanceSymbolRangeListModel.

Member Function Documentation

DistanceSymbolRange::DistanceSymbolRange(QObject *parent = nullptr)

Default constructor with an optional parent.

DistanceSymbolRange::DistanceSymbolRange(Symbol *symbol, QObject *parent = nullptr)

Constructor that accepts a symbol and an optional parent.

DistanceSymbolRange::DistanceSymbolRange(Symbol *symbol, double minDistance, double maxDistance, QObject *parent = nullptr)

Constructor that accepts a symbol, distance range, and optional parent.

  • symbol - The symbol to use with the given range.
  • minDistance - The minimum distance.
  • maxDistance - The maximum distance.
  • parent - The parent object (optional).

DistanceSymbolRange::~DistanceSymbolRange()

Destructor

double DistanceSymbolRange::maxDistance() const

Gets the maximum value of the distance range in meters.

See also setMaxDistance().

double DistanceSymbolRange::minDistance() const

Gets the minimum value of the distance range in meters.

See also setMinDistance().

void DistanceSymbolRange::setMaxDistance(double maxDistance)

Sets the maximum value of the distance range to maxDistance meters.

See also maxDistance().

void DistanceSymbolRange::setMinDistance(double minDistance)

Sets the minimum value of the distance range to minDistance meters.

See also minDistance().

void DistanceSymbolRange::setSymbol(Symbol *symbol)

Sets the symbol used with the specified range to symbol.

See also symbol().

Symbol *DistanceSymbolRange::symbol() const

Gets the symbol used with the specified range.

See also setSymbol().


Feedback on this topic?