Namespace: Esri::GameEngine::Geometry
Class: Esri/GameEngine/Geometry/ArcGISImmutablePartCollection
Since: 1.0.0
Summary
Represents immutable collection of parts for a polygon or polyline geometry. Each part is a collection of segments.
Properties
Property | Type | Nullable | Readonly | Summary |
---|---|---|---|---|
No | Yes | Indicates if the immutable part collection contains no parts. | ||
No | Yes | The number of parts in the immutable part collection. | ||
Yes | Yes | The spatial reference for the immutable part collection. |
SpatialReference
ArcGISSpatialReference GetSpatialReference() const
The spatial reference for the immutable part collection.
If the collection does not have a spatial reference null is returned.
Methods
Signature | Return Type | Summary |
---|---|---|
Returns a part at the specified index in the immutable part collection. A part is represented by an immutable collection of segments. | ||
IndexOf(const ArcGISImmutablePart&) | Retrieves the position of the given part in the immutable part collection. |
GetPart
ArcGISImmutablePart GetPart(size_t index) const
Returns a part at the specified index in the immutable part collection. A part is represented by an immutable collection of segments.
Since 1.0.0
Arguments
Name | Type | Const | Summary |
---|---|---|---|
index | No | Position to retrieve the part. |
Returns ArcGISImmutablePart
the immutable part at the specified part index.
IndexOf
size_t IndexOf(const ArcGISImmutablePart& immutablePart) const
Retrieves the position of the given part in the immutable part collection.
Since 1.0.0
Arguments
Name | Type | Const | Summary |
---|---|---|---|
immutable | Yes | The part you want to find. |
Returns size_t
The position of the part in the collection, -1 otherwise.