Skip To Content ArcGIS for Developers Sign In Dashboard

MultipartBuilder QML Type

Base type for builders of geometries that consist of multiple parts, such as Polyline and Polygon. More...

Import Statement: import Esri.ArcGISRuntime 100.9
Since: Esri.ArcGISRuntime 100.0
Inherits:

GeometryBuilder

Inherited By:

PolygonBuilder and PolylineBuilder

Properties

Signals

Methods

Detailed Description

Note: You cannot declare or create a component of this type in QML code.

The coordinates of points added must be in the spatial reference of this MultipartBuilder.

This QML type supports the following default properties. A default property may be declared inside another declared object without being assigned explicitly to a property.

Property Documentation

parts : PartCollection

The part collection that this builder is constructing or modifying.


Signal Documentation

partsChanged()

Emitted when the parts property changes.

Note: The corresponding handler is onPartsChanged.


Method Documentation

int addPoint(point)

Adds a new point to the end of the part.

A new line segment will be added to connect the new point to the previous. The points in the part are the start and end points of segments. A new line segment will be added to connect the new point to the previous point. If this is the first point in an empty segment, a single closed segment is added using the same start and end point. Adding a second point will update this line segment to gain a distinct end point. Adding a third or more points will add new line segments.

Returns the index of the added point or -1 on error.


int addPointXY(x, double y)

Add a new point to the end of the part by specifying the point's x, and y coordinates.

The points in the part are the start and end points of segments. A new line segment is added to connect the new point to the previous point. If this is the first point in an empty segment, a single closed segment is added using the same start and end point. Adding a second point will update this line segment to gain a distinct end point. Adding a third or more points will add new line segments.

Returns the index of the added point or -1 on error.


int addPointXYZ(x, double y, double z)

Add a new point to the end of the part by specifying the point's x, y, and z coordinates.

A new line segment will be added to connect the new point to the previous. The points in the part are the start and end points of segments. A new line segment is added to connect the new point to the previous point. If this is the first point in an empty segment, a single closed segment is added using the same start and end point. Adding a second point will update this line segment to gain a distinct end point. Adding a third or more points will add new line segments.

Returns the index of the added point or -1 on error.


void addPoints(points)

Adds a list of points to the Multipart.

This method was introduced in Esri.ArcGISRuntime 100.1.



Feedback on this topic?