GeometryEditorVertex Class

  • GeometryEditorVertex
  • class Esri::ArcGISRuntime::GeometryEditorVertex

    A vertex element in a GeometryEditor. More...

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

    Public Functions

    virtual ~GeometryEditorVertex() override
    int partIndex() const
    Esri::ArcGISRuntime::Point point() const
    int vertexIndex() const

    Detailed Description

    Vertices represent points in a GeometryEditor::geometry. They display the existing location of the point, and are used in interactive workflows to allow you to select and move those points. For more information about selecting and working with selections, see GeometryEditor.

    When a vertex is selected (displayed with a selection halo), a GeometryEditorVertex is returned from GeometryEditor::selectedElement.

    Select a vertex programmatically using GeometryEditor::selectVertex(int, int), or move it programmatically using GeometryEditor::moveSelectedElement(const Esri::ArcGISRuntime::Point&).

    Use GeometryEditorStyle::vertexSymbol and GeometryEditorStyle::selectedVertexSymbol to change the appearance of the vertex when unselected and selected, or set to nullptr to prevent them from being displayed entirely.

    To prevent vertices from being selected interactively while still allowing programmatic selection, set InteractionConfiguration::isAllowVertexSelection to false.

    See also GeometryEditor, InteractionConfiguration, and GeometryEditorMidVertex.

    Member Function Documentation

    [override virtual] GeometryEditorVertex::~GeometryEditorVertex()

    Destructor.

    int GeometryEditorVertex::partIndex() const

    Returns the index position of the part which contains the vertex.

    Esri::ArcGISRuntime::Point GeometryEditorVertex::point() const

    Returns the position of the vertex in the SpatialReference of the associated MapView.

    int GeometryEditorVertex::vertexIndex() const

    Returns the index position of the vertex within a part.

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