DistanceSymbolRange Class

  • DistanceSymbolRange
  • class Esri::ArcGISRuntime::DistanceSymbolRange

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

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

    This class was introduced in Esri::ArcGISRuntime 100.0.

    Public Functions

    DistanceSymbolRange(Esri::ArcGISRuntime::Symbol *symbol, double minDistance, double maxDistance, QObject *parent = nullptr)
    DistanceSymbolRange(Esri::ArcGISRuntime::Symbol *symbol, QObject *parent = nullptr)
    DistanceSymbolRange(QObject *parent = nullptr)
    virtual ~DistanceSymbolRange() override
    double maxDistance() const
    double minDistance() const
    void setMaxDistance(double maxDistance)
    void setMinDistance(double minDistance)
    void setSymbol(Esri::ArcGISRuntime::Symbol *symbol)
    Esri::ArcGISRuntime::Symbol *symbol() const

    Detailed Description

    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(Esri::ArcGISRuntime::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 (in meters).
    • maxDistance - The maximum distance (in meters).
    • parent - The parent object (optional).

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

    Constructor that accepts a symbol and an optional parent.

    DistanceSymbolRange::DistanceSymbolRange(QObject *parent = nullptr)

    Default constructor with an optional parent.

    [override virtual] 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 symbol 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 symbol range to minDistance meters.

    See also minDistance().

    void DistanceSymbolRange::setSymbol(Esri::ArcGISRuntime::Symbol *symbol)

    Sets the symbol used with the specified range to symbol.

    See also symbol().

    Esri::ArcGISRuntime::Symbol *DistanceSymbolRange::symbol() const

    Gets the symbol used with the specified range.

    See also setSymbol().

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.