ImmutablePart class final
Represents a single part of a multipart geometry (polygon or polyline).
A collection of Segment objects that together represent a part in a Multipart geometry. You can also access the ArcGISPoint objects that represent the vertices of the geometry (that is, the ends of each segment), using point-based helpers such as ImmutablePart.getPoint.
Both linear segments (represented by LineSegment) and curve segments (represented by CubicBezierSegment or EllipticArcSegment) are supported. Curve and linear segments can be mixed together in the same geometry.
- Implemented types
Properties
- endPoint → ArcGISPoint?
-
The end point of the last segment in the part. Returns null if the
collection is empty.
no setter
- hasCurves → bool
-
True if the part contains any curve segments, false otherwise.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Indicates if the part contains no segments.
no setter
- pointCount → int
-
The count of points in the part.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- segmentCount → int
-
The count of segments in the part.
no setter
- spatialReference → SpatialReference?
-
The spatial reference for the immutable part.
no setter
- startPoint → ArcGISPoint?
-
The start point of the first segment in the part. Returns null if the
collection is empty.
no setter
Methods
-
getEndPointIndexFromSegmentIndex(
int segmentIndex) → int - For a segment at a specified segment_index the method returns the point index of the segment's end point.
-
getPoint(
{required int pointIndex}) → ArcGISPoint - Returns a point at a specified point index.
-
getPoints(
) → ImmutablePointCollection - Returns all the points that are the vertexes of the part.
-
getSegment(
{required int segmentIndex}) → Segment - Gets a segment at a specified segment index.
-
getSegmentIndexFromEndPointIndex(
int pointIndex) → int - Converts from a point index to a segment index that uses the given point as an end point. If the point is not an end point then -1 is returned.
-
getSegmentIndexFromStartPointIndex(
int pointIndex) → int - Converts from a point index to a segment index that uses the given point as a start point. If the point is not a start point, then -1 is returned.
-
getStartPointIndexFromSegmentIndex(
int segmentIndex) → int - For a segment at a specified segment_index the method returns the point index of the segment's start point.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited