;

GraphicFenceParameters Class

  • GraphicFenceParameters
  • class Esri::ArcGISRuntime::GraphicFenceParameters

    Geotrigger fence parameters data created from graphics. More...

    Header: #include <GraphicFenceParameters>
    Since: Esri::ArcGISRuntime 100.12
    Inherits: Esri::ArcGISRuntime::FenceParameters

    This class was introduced in Esri::ArcGISRuntime 100.12.

    Public Functions

    GraphicFenceParameters(const QList<Esri::ArcGISRuntime::Graphic *> &graphics, QObject *parent = nullptr)
    GraphicFenceParameters(const QList<Esri::ArcGISRuntime::Graphic *> &graphics, double bufferDistance, QObject *parent = nullptr)
    GraphicFenceParameters(double bufferDistance, QObject *parent = nullptr)
    virtual ~GraphicFenceParameters() override
    Esri::ArcGISRuntime::GraphicListModel *graphics() const

    Detailed Description

    The graphics used to create a GraphicFenceParameters provide a set of geometries and attributes that define targets for a FenceGeotrigger condition. For example, if the condition is "notify me when my position comes within 50 meters of one of my areas of interest", the fence data is "my areas of interest" and each Graphic is one area of interest.

    A GraphicFenceParameters allows you to track a specific set of Graphic objects: these can be a selection of the graphics from a GraphicsOverlay or graphics that are not displayed on a GeoView. If you wish to track all of the graphics displayed in a GraphicsOverlay, use a GraphicsOverlayFenceParameters.

    A GraphicFenceParameters is created using a list of Graphic objects. The graphics can have point, line, or polygon geometry. A FenceParameters::bufferDistance must be supplied for points or lines.

    Member Function Documentation

    GraphicFenceParameters::GraphicFenceParameters(const QList<Esri::ArcGISRuntime::Graphic *> &graphics, QObject *parent = nullptr)

    Creates a GraphicFenceParameters that will apply a buffer distance to the supplied graphics.

    • graphics - A set of graphics that should be used as fences.
    • parent - The optional parent QObject.

    GraphicFenceParameters::GraphicFenceParameters(const QList<Esri::ArcGISRuntime::Graphic *> &graphics, double bufferDistance, QObject *parent = nullptr)

    Creates a GraphicFenceParameters that will apply a buffer distance to any graphics that are added to graphics.

    • graphics - A set of graphics that should be used as fences.
    • bufferDistance - A buffer distance in meters to apply to the graphics when checking if a Geotrigger condition is met.
    • parent - The optional parent QObject.

    GraphicFenceParameters::GraphicFenceParameters(double bufferDistance, QObject *parent = nullptr)

    Creates a GraphicFenceParameters that will apply a buffer distance to any graphics that are added to graphics.

    • bufferDistance - A buffer distance in meters to apply to the graphics when checking if a Geotrigger condition is met.
    • parent - The optional parent QObject.

    [override virtual] GraphicFenceParameters::~GraphicFenceParameters()

    Destructor.

    Esri::ArcGISRuntime::GraphicListModel *GraphicFenceParameters::graphics() const

    Returns the graphics to use in the GraphicFenceParameters.

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