Skip To Content ArcGIS for Developers Sign In Dashboard

ImmutablePart QML Type

An immutable collection of Segments that compose a single part of an immutable Multipart geometry (Polygon} or Polyline). More...

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

Object

Properties

Methods

Detailed Description

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

This collection is used to represent a part in a Multipart geometry. This is a collection of segments. The points that are the vertices of the segments are also accessible.

Property Documentation

empty : bool

Returns whether the ImmutablePart contains any points or segments (read-only).


hasCurves : bool

Returns true if this part has curves (read-only).


pointCount : int

Returns the number of points the ImmutablePart contains (read-only).


segmentCount : int

Returns the number of segments the ImmutablePart contains (read-only).


spatialReference : SpatialReference

Returns the SpatialReference of ImmutablePart (read-only).


Method Documentation

Point endPoint()

Gets the end point of the ImmutablePart.

Returns the end Point or null if there isn't one.


int endPointIndexFromSegmentIndex(segmentIndex)

Gets the end point index from the given segmentIndex.

Returns the end point index or -1 on error or invalid index.


Point point(pointIndex)

Gets the Point at index pointIndex.

Returns the Point or null if not found.


Gets the points of the ImmutablePart.

Returns the ImmutablePointCollection of this ImmutablePart.


Segment segment(segmentIndex)

Gets the Segment at segmentIndex.

Returns the Segment or null if the index isn't valid.


int segmentEndPointIndexFromPointIndex(pointIndex)

Gets the segment end point index from the given pointIndex.

Returns the segment end point index or -1 on error or invalid index.


int segmentIndexFromEndPointIndex(pointIndex)

Gets the segment index from the end point index pointIndex.

Returns the segment point index or -1 on error or invalid index.


int segmentIndexFromStartPointIndex(pointIndex)

Gets the segment index from the start point index pointIndex.

Returns the segment point index or -1 on error or invalid index.


int segmentStartPointIndexFromPointIndex(pointIndex)

Gets the segment start point index from the given pointIndex.

Returns the segment start point index or -1 on error or invalid index.


Point startPoint()

Gets the start point of the ImmutablePart.

Returns the start Point or null if there isn't one.


int startPointIndexFromSegmentIndex(segmentIndex)

Gets the start point index from the given segmentIndex.

Returns the start point index or -1 on error or invalid index.



Feedback on this topic?