ArcGISMutablePointCollection

Namespace: GameEngine.Geometry
Class: GameEngine/Geometry/ArcGISMutablePointCollection
Since: 1.0.0

Summary

A collection object that can be changed containing points.

Constructors

ArcGISMutablePointCollection(ArcGISSpatialReference)

Creates a mutable point collection with a specified spatial reference.

Since 1.0.0

Arguments
NameTypeSummary
spatialReference

A spatial reference object, can be null.

Properties

PropertyTypeNullableReadonlySummary
No
Yes

Indicates if the mutable point collection contains no points.

No
Yes

The number of points in the collection.

Yes
No

The spatial reference for the mutable point collection.

IsEmpty

bool IsEmpty

Indicates if the mutable point collection contains no points.

Size

ulong Size

The number of points in the collection.

SpatialReference

ArcGISSpatialReference SpatialReference

The spatial reference for the mutable point collection.

If the collection does not have a spatial reference null is returned.

Methods

SignatureReturn TypeSummary

AddPoint(double, double)

ulong

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

AddPoint(double, double, double)

ulong

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

AddPoint(ArcGISPoint)

ulong

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

AddPoints(ArcGISImmutablePointCollection)

void

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

AddPoints(ArcGISMutablePointCollection)

void

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

GetPoint(ulong)

ArcGISPoint

Returns a point at the specified index in the collection.

IndexOf(ArcGISPoint)

ulong

Retrieves the position of the point in the mutable point collection. The first point that is equal to the supplied point is returned.

InsertPoint(ulong, double, double)

void

Inserts a point specified by its x,y coordinates into the mutable point collection at the specified point index.

InsertPoint(ulong, double, double, double)

void

Inserts a point specified by its x,y,z coordinate into the mutable point collection at the specified point index.

InsertPoint(ulong, ArcGISPoint)

void

Inserts a point into the mutable point collection at the specified point index.

RemoveAll()

void

Remove all points from the mutable point collection.

RemovePoint(ulong)

void

Removes a point from the mutable point collection.

SetPoint(ulong, ArcGISPoint)

void

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

AddPoint

ulong AddPoint(double x, double y)

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

Since 1.0.0

Arguments
NameTypeSummary
x

The x-coordinate of the new point.

y

The y-coordinate of the new point.

Returns ulong

the point index where the point was added. If an error occurred, then -1 is returned.

AddPoint

ulong AddPoint(double x, double y, double z)

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

Since 1.0.0

Arguments
NameTypeSummary
x

The x-coordinate of the new point.

y

The y-coordinate of the new point.

z

The z coordinate of the new point.

Returns ulong

the point index where the point was added. If an error occurred, then -1 is returned.

AddPoint

ulong AddPoint(ArcGISPoint point)

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

Since 1.0.0

Arguments
NameTypeSummary
point

The point to add.

Returns ulong

the point index where the point was added. If an error occurred, then -1 is returned.

AddPoints

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

Since 1.0.0

Arguments
NameTypeSummary
points

The new points to add.

Returns void

AddPoints

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

Since 1.0.0

Arguments
NameTypeSummary
points

The new points to add.

Returns void

GetPoint

ArcGISPoint GetPoint(ulong index)

Returns a point at the specified index in the collection.

Since 1.0.0

Arguments
NameTypeSummary
index

The position in the collection.

Returns ArcGISPoint

The point at the specified position in the collection.

IndexOf

ulong IndexOf(ArcGISPoint point)

Retrieves the position of the point in the mutable point collection. The first point that is equal to the supplied point is returned.

Since 1.0.0

Arguments
NameTypeSummary
point

The point to find.

Returns ulong

The position of the point in the collection, -1 otherwise.

InsertPoint

void InsertPoint(ulong pointIndex, double x, double y)

Inserts a point specified by its x,y coordinates into the mutable point collection at the specified point index.

Since 1.0.0

Arguments
NameTypeSummary
pointIndex

Zero-based index of the point.

x

The x-coordinate of the new point.

y

The y-coordinate of the new point.

Returns void

InsertPoint

void InsertPoint(ulong pointIndex, double x, double y, double z)

Inserts a point specified by its x,y,z coordinate into the mutable point collection at the specified point index.

Since 1.0.0

Arguments
NameTypeSummary
pointIndex

Zero-based index of the point.

x

The x-coordinate of the new point.

y

The y-coordinate of the new point.

z

The z-coordinate of the new point.

Returns void

InsertPoint

void InsertPoint(ulong pointIndex, ArcGISPoint point)

Inserts a point into the mutable point collection at the specified point index.

Since 1.0.0

Arguments
NameTypeSummary
pointIndex

Zero-based index of the point.

point

The point to insert.

Returns void

RemoveAll

void RemoveAll()

Remove all points from the mutable point collection.

Since 1.0.0

Returns void

RemovePoint

void RemovePoint(ulong pointIndex)

Removes a point from the mutable point collection.

Since 1.0.0

Arguments
NameTypeSummary
pointIndex

Zero-based index of the point.

Returns void

SetPoint

void SetPoint(ulong pointIndex, ArcGISPoint point)

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

Since 1.0.0

Arguments
NameTypeSummary
pointIndex

Zero-based index of the point.

point

The point.

Returns void

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.