MutablePointCollection class final
A collection object that can be changed containing points.
Contains a collection of points that can be changed.
- Implemented types
Constructors
- MutablePointCollection.withSpatialReference(SpatialReference? spatialReference)
-
Creates a mutable point collection with a specified spatial reference.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Indicates if the mutable point collection contains no points.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
The number of points in the collection.
no setter
- spatialReference → SpatialReference?
-
The spatial reference for the mutable point collection.
no setter
Methods
-
addPoint(
ArcGISPoint point) → int - Add a new point to the end of the mutable point collection.
-
addPoints(
MutablePointCollection points) → void - Add a new points to the end of the mutable point collection.
-
addPointsFromImmutable(
{required ImmutablePointCollection points}) → void - Add a new points to the end of the mutable point collection.
-
addPointXY(
{required double x, required double y}) → int - Add a new point to the end of the mutable point collection by specifying the points x,y coordinates.
-
addPointXYZ(
{required double x, required double y, required double z}) → int - Add a new point to the end of the mutable point collection by specifying the points x,y,z coordinates.
-
getPoint(
{required int index}) → ArcGISPoint - Returns a point at the specified index in the collection.
-
indexOf(
{required ArcGISPoint point}) → int - Retrieves the position of the point in the mutable point collection. The first point that is equal to the supplied point is returned.
-
insertPoint(
{required int pointIndex, required ArcGISPoint point}) → void - Inserts a point into the mutable point collection at the specified point index.
-
insertPointXY(
{required int pointIndex, required double x, required double y}) → void - Inserts a point specified by its x,y coordinates into the mutable point collection at the specified point index.
-
insertPointXYZ(
{required int pointIndex, required double x, required double y, required double z}) → void - Inserts a point specified by its x,y,z coordinate into the mutable point collection at the specified point index.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAll(
) → void - Remove all points from the mutable point collection.
-
removePoint(
{required int pointIndex}) → void - Removes a point from the mutable point collection.
-
setPoint(
{required int pointIndex, required ArcGISPoint point}) → void - Replace a point in the mutable point collection at the specified point index.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited