Geotrigger fence parameters data created from a GraphicsOverlay. More...
Header: | #include <GraphicsOverlayFenceParameters.h> |
Since: | Esri::ArcGISRuntime 100.12 |
Inherits: | Esri::ArcGISRuntime::FenceParameters |
Public Functions
GraphicsOverlayFenceParameters(Esri::ArcGISRuntime::GraphicsOverlay *graphicsOverlay, QObject *parent = nullptr) | |
GraphicsOverlayFenceParameters(Esri::ArcGISRuntime::GraphicsOverlay *graphicsOverlay, double bufferDistance, QObject *parent = nullptr) | |
virtual | ~GraphicsOverlayFenceParameters() override |
Esri::ArcGISRuntime::GraphicsOverlay * | graphicsOverlay() const |
Detailed Description
The GraphicsOverlay used to create a GraphicsOverlayFenceParameters provides a dynamic set of graphics 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", "my target areas" are the graphics in the overlay. Changes to the GraphicsOverlay will be reflected in the fences tracked by the Geotrigger.
A GraphicsOverlayFenceParameters allows you to track all of the graphics displayed on the GeoView in a GraphicsOverlay. This allows you to track new target areas as they are added to the view and to stop tracking areas that are removed. If you wish to track a subset of the graphics displayed in a GraphicsOverlay, or graphics which are not displayed in a GeoView, use a GraphicFenceParameters.
The graphics can have point, line, or polygon geometry. A FenceParameters::bufferDistance must be supplied for points or lines.
Member Function Documentation
[explicit]
GraphicsOverlayFenceParameters::GraphicsOverlayFenceParameters (Esri::ArcGISRuntime::GraphicsOverlay *graphicsOverlay , QObject *parent = nullptr)
Creates a GraphicsOverlayFenceParameters using all of the graphics in the GraphicsOverlay.
- graphicsOverlay - The GraphicsOverlay, to use as the source of graphics for the GraphicFenceParameters.
- parent - The optional parent QObject.
Note that the GraphicsOverlayFenceParameters will respect any changes made to the supplied graphics overlay - for example, if a Graphic is removed or added to the original GraphicsOverlay, it will be added or removed as a fence.
GraphicsOverlayFenceParameters::GraphicsOverlayFenceParameters (Esri::ArcGISRuntime::GraphicsOverlay *graphicsOverlay , double bufferDistance , QObject *parent = nullptr)
Creates a GraphicsOverlayFenceParameters using all of the graphics in the GraphicsOverlay buffered by the buffer distance.
- graphicsOverlay - The GraphicsOverlay, to use as the source of graphics for the GraphicFenceParameters.
- bufferDistance - A buffer distance in meters to apply to the graphics when checking if a Geotrigger condition is met.
- parent - The optional parent QObject.
Note that the GraphicsOverlayFenceParameters will respect any changes made to the supplied graphics overlay - for example, if a Graphic is removed or added to the original GraphicsOverlay, it will be added or removed as a fence.
[override virtual]
GraphicsOverlayFenceParameters::~GraphicsOverlayFenceParameters ()
Destructor.
Esri::ArcGISRuntime::GraphicsOverlay *GraphicsOverlayFenceParameters::graphicsOverlay () const
Returns the GraphicsOverlay to use in the GraphicsOverlayFenceParameters.
Changes to the GraphicsOverlay will be reflected in the fences tracked by the Geotrigger.