GeometryEditorPart Class

ImmutablePart element in a GeometryEditor editing a Multipart geometry."> GeometryEditorPart Class | ArcGISQtCpp
  • GeometryEditorPart
  • class Esri::ArcGISRuntime::GeometryEditorPart

    An ImmutablePart element in a GeometryEditor editing a Multipart geometry. More...

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

    Public Functions

    virtual ~GeometryEditorPart() override
    Esri::ArcGISRuntime::ImmutablePart part() const
    int partIndex() const

    Detailed Description

    Polygons and polylines are Multipart geometries that can consist of one or more ImmutablePart objects. A GeometryEditorPart represents a part of the geometry in a GeometryEditor - it displays the existing location and shape of the part, and allows you to select and move the part in interactive workflows. For more information about selecting and working with selections, see GeometryEditor.

    When a part is selected (displayed with a selection halo), a GeometryEditorPart is returned from GeometryEditor::selectedElement. If the GeometryEditor::geometry is a polygon or polyline with only one part, then a GeometryEditorGeometry is returned instead.

    Select a part programmatically using GeometryEditor::selectPart(int). To prevent parts from being selected interactively while still allowing programmatic selection, set InteractionConfiguration::setAllowPartSelection to false.

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

    See also GeometryEditor, InteractionConfiguration, GeometryEditorGeometry, and GeometryEditor::moveSelectedElement(Point).

    Member Function Documentation

    [override virtual] GeometryEditorPart::~GeometryEditorPart()

    Destructor.

    Esri::ArcGISRuntime::ImmutablePart GeometryEditorPart::part() const

    Returns the part in the SpatialReference of the associated MapView.

    int GeometryEditorPart::partIndex() const

    Returns the index position of the part within the GeometryEditor::geometry.

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