Represents a mutable collection of Points for creating a Multipoint geometry from a MultipointBuilder. More...
Import Statement: | import Esri.ArcGISRuntime 100.15 |
Since: | Esri.ArcGISRuntime 100.0 |
Inherits: |
Properties
- empty : bool
- size : int
- spatialReference : SpatialReference
Signals
Methods
- int addPoint(Point point)
- int addPointXY(double x, double y)
- int addPointXYZ(double x, double y, double z)
- void addPoints(jsobject points)
- int indexOf(Point point)
- void insertPoint(int pointIndex, Point point)
- void insertPointXY(int pointIndex, double x, double y)
- void insertPointXYZ(int pointIndex, double x, double y, double z)
- Point point(int index)
- void removeAll()
- void removePoint(int pointIndex)
- void setPoint(int pointIndex, Point point)
Detailed Description
Points can be added to, inserted into, and removed from the collection in order to define or change the shape of the Multipoint.
The spatial reference must be set before adding points and cannot be changed after the collection contains points.
The spatial reference of any points added to a PointCollection must match that of the PointCollection, or be unspecified (in which case the Points are assumed to have the same spatial reference as the PointCollection).
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.
Type | Default Property |
---|---|
SpatialReference | spatialReference |
Point | point |
Property Documentation
Returns whether this PointCollection contains no points (read-only).
Returns the number of points contained in this PointCollection (read-only).
[default] spatialReference : SpatialReference |
The spatial reference of this PointCollection.
The spatial reference can only be changed while this PointCollection is empty.
See also empty.
Signal Documentation
Emitted when the empty property changes.
Note: The corresponding handler is onEmptyChanged
.
Emitted when the size property changes.
Note: The corresponding handler is onSizeChanged
.
Emitted when the spatialReference property changes.
Note: The corresponding handler is onSpatialReferenceChanged
.
Method Documentation
int addPoint(Point point) |
Adds point to the PointCollection.
Returns the index where the point was added or -1
on error.
Adds a point with the given x and y coordinates.
Returns the index where the point was added, or -1
on error.
The coordinates must be in the spatial reference of the PointCollection.
Adds a point to this PointCollection from x, y and z values.
Returns the index where the point was added, or -1
on error.
The coordinates must be in the spatial reference of this PointCollection.
Adds the point collection points to this PointCollection.
Points can be either a PointCollection, an ImmutablePointCollection or an array of Point.
int indexOf(Point point) |
Gets the index of point.
Returns the index or -1
if not found.
void insertPoint(int pointIndex, Point point) |
Inserts a point at pointIndex.
Inserts a point with the given x and y coordinates at pointIndex.
The coordinates must be in the spatial reference of this PointCollection.
Inserts a point with the given x, y and z coordinates at pointIndex.
The coordinates must be in the spatial reference of this PointCollection.
Point point(int index) |
Removes all points and segments from this PointCollection.
void setPoint(int pointIndex, Point point) |
Reassigns the point at pointIndex to point.
See also point().