Namespace: GameEngine.Geometry
Class: GameEngine/Geometry/ArcGISMutablePartCollection
Since: 1.0.0
Summary
A collection object that can be changed containing parts for a geometry. Each part is represented by a ArcGISMutablePart.
Constructors
ArcGISMutablePartCollection(ArcGISSpatialReference)
Creates a mutable part collection with a specified spatial reference.
Since 1.0.0
Arguments
Name | Type | Summary |
---|---|---|
spatial | A spatial reference object, can be null. |
Properties
Property | Type | Nullable | Readonly | Summary |
---|---|---|---|---|
No | Yes | Indicates if the mutable part collection contains no parts. | ||
No | Yes | The number of parts in the collection. | ||
Yes | No | The spatial reference for the mutable part collection. |
SpatialReference
ArcGISSpatialReference SpatialReference
The spatial reference for the mutable part collection.
If the collection does not have a spatial reference null is returned.
Methods
Signature | Return Type | Summary |
---|---|---|
Add a new part to the end of the mutable part collection. | ||
Returns a part at the specified index in the collection. | ||
Retrieves the position of the segment in the mutable part collection. The first segment that is equal to the supplied segment is returned. | ||
Inserts a part into the mutable part collection at the specified part index. | ||
Remove all parts from the mutable part collection. | ||
Removes a part from the mutable part collection. | ||
Replace a part in the mutable part collection at the specified part index. |
AddPart
ulong AddPart(ArcGISMutablePart mutablePart)
Add a new part to the end of the mutable part collection.
Since 1.0.0
Arguments
Name | Type | Summary |
---|---|---|
mutable | The part to add. |
Returns ulong
the index where the part was added. If an error occurred, then -1 is returned.
GetPart
ArcGISMutablePart GetPart(ulong index)
Returns a part at the specified index in the collection.
Since 1.0.0
Arguments
Name | Type | Summary |
---|---|---|
index | The position in the collection. |
Returns ArcGISMutablePart
The part at the specified position in the collection.
IndexOf
ulong IndexOf(ArcGISMutablePart mutablePart)
Retrieves the position of the segment in the mutable part collection. The first segment that is equal to the supplied segment is returned.
Since 1.0.0
Arguments
Name | Type | Summary |
---|---|---|
mutable | The part to find. |
Returns ulong
The position of the segment in the collection, -1 otherwise.
InsertPart
void InsertPart(ulong index, ArcGISMutablePart mutablePart)
Inserts a part into the mutable part collection at the specified part index.
Since 1.0.0
Arguments
Name | Type | Summary |
---|---|---|
index | Zero-based index of the part. | |
mutable | The part to insert. |
Returns void
RemovePart
Removes a part from the mutable part collection.
Since 1.0.0
Arguments
Name | Type | Summary |
---|---|---|
index | Zero-based index of the part. |
Returns void
SetPart
void SetPart(ulong index, ArcGISMutablePart mutablePart)
Replace a part in the mutable part collection at the specified part index.
Since 1.0.0
Arguments
Name | Type | Summary |
---|---|---|
index | Zero-based index of the part. | |
mutable | Collection of segments representing the part. |