Skip To Content ArcGIS for Developers Sign In Dashboard

ImmutablePart Class

(Esri::ArcGISRuntime::ImmutablePart)

An immutable collection of Segments that compose a single part of an immutable Multipart geometry (Polygon or Polyline). More...

Header: #include <ImmutablePart>
Since: Esri::ArcGISRuntime 100.0

Public Functions

ImmutablePart()
ImmutablePart(const ImmutablePart &other)
ImmutablePart(ImmutablePart &&other)
~ImmutablePart()
Point endPoint() const
int endPointIndexFromSegmentIndex(int segmentIndex) const
bool hasCurves() const
bool isEmpty() const
Point point(int pointIndex) const
int pointCount() const
ImmutablePointCollection points() const
Segment segment(int segmentIndex) const
int segmentCount() const
int segmentIndexFromEndPointIndex(int pointIndex) const
void segmentIndexFromPointIndex(int pointIndex, int &outStartPointSegmentIndex, int &outEndPointSegmentIndex) const
int segmentIndexFromStartPointIndex(int pointIndex) const
SpatialReference spatialReference() const
Point startPoint() const
int startPointIndexFromSegmentIndex(int segmentIndex) const
ImmutablePart &operator=(const ImmutablePart &other)
ImmutablePart &operator=(ImmutablePart &&other)

Detailed Description

An immutable collection of Segments that compose a single part of an immutable Multipart geometry (Polygon or Polyline).

Use the parts property on Multipart to get an ImmutablePartCollection, which can then be used to iterate through the Segments and Points in each ImmutablePart.

Member Function Documentation

ImmutablePart::ImmutablePart()

Default constructor.

ImmutablePart::ImmutablePart(const ImmutablePart &other)

Copy constructor from other ImmutablePart.

ImmutablePart::ImmutablePart(ImmutablePart &&other)

Move constructor from other ImmutablePart.

ImmutablePart::~ImmutablePart()

Destructor.

Point ImmutablePart::endPoint() const

Gets the end Point.

Returns the end Point.

int ImmutablePart::endPointIndexFromSegmentIndex(int segmentIndex) const

Gets the end point index from the given segmentIndex.

Returns the end point index or -1 on error or invalid index.

bool ImmutablePart::hasCurves() const

Returns true if this part has curves.

bool ImmutablePart::isEmpty() const

Gets whether the ImmutablePart contains anything.

Returns true if the ImmutablePart contains no points or segments.

Point ImmutablePart::point(int pointIndex) const

Gets the Point at pointIndex.

Returns the Point or an empty Point if the index isn't valid.

int ImmutablePart::pointCount() const

Gets the point count of the ImmutablePart.

Returns the number of points.

ImmutablePointCollection ImmutablePart::points() const

Gets the points of the ImmutablePart as an ImmutablePointCollection.

Returns the end Point.

Segment ImmutablePart::segment(int segmentIndex) const

Gets the Segment at segmentIndex.

Returns the Segment or an empty Segment if the index isn't valid.

int ImmutablePart::segmentCount() const

Gets the segment count of the ImmutablePart.

Returns the number of segments.

int ImmutablePart::segmentIndexFromEndPointIndex(int pointIndex) const

Gets the segment index from the end point index pointIndex.

Returns the segment point index or -1 on error or invalid index.

void ImmutablePart::segmentIndexFromPointIndex(int pointIndex, int &outStartPointSegmentIndex, int &outEndPointSegmentIndex) const

Gets the segment start and end indices from the given pointIndex.

  • outStartPointSegmentIndex - The index of the segment that begins at pointIndex.
  • outEndPointSegmentIndex - The index of the segment that ends at pointIndex.

On error, the values will be set to -1.

int ImmutablePart::segmentIndexFromStartPointIndex(int pointIndex) const

Gets the segment index from the start point index pointIndex.

Returns the segment point index or -1 on error or invalid index.

SpatialReference ImmutablePart::spatialReference() const

Gets the SpatialReference of the ImmutablePart.

Returns the SpatialReference.

Point ImmutablePart::startPoint() const

Gets the start Point.

Returns the start Point.

int ImmutablePart::startPointIndexFromSegmentIndex(int segmentIndex) const

Gets the start point index from the given segmentIndex.

Returns the start point index or -1 on error or invalid index.

ImmutablePart &ImmutablePart::operator=(const ImmutablePart &other)

Assignment operator from other ImmutablePart.

ImmutablePart &ImmutablePart::operator=(ImmutablePart &&other)

Move operator from other ImmutablePart.


Feedback on this topic?