GeometryEditorGeometry Class

  • GeometryEditorGeometry
  • class Esri::ArcGISRuntime::GeometryEditorGeometry

    The element in a GeometryEditor representing the entire GeometryEditor::geometry. More...

    Header: #include <GeometryEditorGeometry.h>
    Since: Esri::ArcGISRuntime 200.1
    Inherits: Esri::ArcGISRuntime::GeometryEditorElement

    Public Functions

    virtual ~GeometryEditorGeometry() override
    Esri::ArcGISRuntime::Geometry geometry() const

    Detailed Description

    A GeometryEditorGeometry represents the entire geometry in a GeometryEditor - it displays the existing location and shape of the geometry, and allows you to select and move the entire geometry in interactive workflows. For more information about selecting and working with selections, see GeometryEditor.

    When an entire geometry is selected (displayed with a selection halo), a GeometryEditorGeometry is returned from GeometryEditor::selectedElement, except if the GeometryEditor::geometry is a Point, in which case a GeometryEditorVertex is returned instead.

    Select the entire geometry programmatically using GeometryEditor::selectGeometry. To prevent whole geometries from being selected interactively while still allowing programmatic selection, set InteractionConfiguration::setAllowGeometrySelection to false.

    Use GeometryEditorStyle::lineSymbol and GeometryEditorStyle::fillSymbol to change the appearance of polygons and polylines displayed by a GeometryEditor. You may also wish to control the appearance of a geometry during interactive edits by using GeometryEditorStyle::feedbackLineSymbol and GeometryEditorStyle::feedbackVertexSymbol.

    Member Function Documentation

    [override virtual] GeometryEditorGeometry::~GeometryEditorGeometry()

    Destructor.

    Esri::ArcGISRuntime::Geometry GeometryEditorGeometry::geometry() const

    Returns the entire geometry in the SpatialReference of the associated MapView, if one is set.

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