MutablePointCollection

A collection object that can be changed containing points. Contains a collection of points that can be changed.

Since

200.1.0

See also

Constructors

Link copied to clipboard
constructor(spatialReference: SpatialReference? = null)

Creates a mutable point collection with a specified spatial reference.

constructor(points: Iterable<Point>, spatialReference: SpatialReference? = null)

Creates a mutable point collection with a specified spatial reference, and adds the given points to it.

Properties

Link copied to clipboard
open override val size: Int

The number of points in the collection.

Link copied to clipboard

The spatial reference for the mutable point collection. If the collection does not have a spatial reference null is returned.

Functions

Link copied to clipboard
fun add(points: PointCollection)

Add a new points to the end of the mutable point collection.

fun add(x: Double, y: Double)

Add a new point to the end of the mutable point collection by specifying the points x,y coordinates.

open override fun add(index: Int, element: Point)

Inserts a point into the mutable point collection at the specified point index. The point index can be equal to the point count and this is equivalent to adding a point to the end of the collection.

fun add(x: Double, y: Double, z: Double)

Add a new point to the end of the mutable point collection by specifying the points x,y,z coordinates.

fun add(pointIndex: Int, x: Double, y: Double)

Inserts a point specified by its x,y coordinates into the mutable point collection at the specified point index. The point index can be equal to the point count and this is equivalent to adding a point to the end of the collection.

fun add(pointIndex: Int, x: Double, y: Double, z: Double)

Inserts a point specified by its x,y,z coordinate into the mutable point collection at the specified point index. The point index can be equal to the point count and this is equivalent to adding a point to the end of the collection.

Link copied to clipboard
open override fun clear()

Remove all points from the mutable point collection. After calling this method the mutable point collection is empty.

Link copied to clipboard
open operator override fun get(index: Int): Point

Returns a point at the specified index in the collection.

Link copied to clipboard
open override fun indexOf(element: 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.

Link copied to clipboard
open override fun isEmpty(): Boolean

Indicates if the mutable point collection contains no points.

Link copied to clipboard
open override fun removeAt(index: Int): Point

Removes a point from the mutable point collection.

Link copied to clipboard
open operator override fun set(index: Int, element: Point): Point

Replace a point in the mutable point collection at the specified point index.

Inherited functions

Link copied to clipboard
abstract override fun add(element: Point): Boolean
Link copied to clipboard
abstract override fun addAll(elements: Collection<Point>): Boolean
abstract fun addAll(index: Int, elements: Collection<Point>): Boolean
Link copied to clipboard
abstract operator override fun contains(element: Point): Boolean
Link copied to clipboard
abstract override fun containsAll(elements: Collection<Point>): Boolean
Link copied to clipboard
open fun forEach(p0: Consumer<in Point>)
Link copied to clipboard
abstract operator override fun iterator(): Iterator<Point>
Link copied to clipboard
abstract fun lastIndexOf(element: Point): Int
Link copied to clipboard
abstract override fun listIterator(): MutableListIterator<Point>
abstract override fun listIterator(index: Int): MutableListIterator<Point>
Link copied to clipboard
Link copied to clipboard
abstract override fun remove(element: Point): Boolean
Link copied to clipboard
abstract override fun removeAll(elements: Collection<Point>): Boolean
Link copied to clipboard
open fun removeIf(p0: Predicate<in Point>): Boolean
Link copied to clipboard
Link copied to clipboard
abstract override fun retainAll(elements: Collection<Point>): Boolean
Link copied to clipboard
open fun sort(p0: Comparator<in Point>)
Link copied to clipboard
open override fun spliterator(): Spliterator<Point>
Link copied to clipboard
open fun stream(): Stream<Point>
Link copied to clipboard
abstract override fun subList(fromIndex: Int, toIndex: Int): MutableList<Point>
Link copied to clipboard
open fun toArray(): Array<Any>
open fun <T : Any> toArray(p0: Array<T>): Array<T>
open fun <T : Any> toArray(p0: IntFunction<Array<T>>): Array<T>