Geotrigger fence parameters data created from graphics. More...
Header: | #include <GraphicFenceParameters.h> |
Since: | Esri::ArcGISRuntime 100.12 |
Inherits: | Esri::ArcGISRuntime::FenceParameters |
Public Functions
GraphicFenceParameters(double bufferDistance, QObject *parent = nullptr) | |
GraphicFenceParameters(const QList<Esri::ArcGISRuntime::Graphic *> &graphics, double bufferDistance, QObject *parent = nullptr) | |
GraphicFenceParameters(const QList<Esri::ArcGISRuntime::Graphic *> &graphics, 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 target areas", the fence data is "my target areas" and each Graphic is one target area.
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
[explicit]
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.
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.
[explicit]
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.
[override virtual]
GraphicFenceParameters::~GraphicFenceParameters ()
Destructor.
Esri::ArcGISRuntime::GraphicListModel *GraphicFenceParameters::graphics() const
Returns the graphics to use in the GraphicFenceParameters.