Skip To Content ArcGIS for Developers Sign In Dashboard

Multipart Class

(Esri::ArcGISRuntime::Multipart)

Base class for classes that represent a geometry composed of a collection of Parts. More...

Header: #include <Multipart>
Since: Esri::ArcGISRuntime 100.0
Inherits: Geometry
Inherited By:

Esri::ArcGISRuntime::Polygon and Esri::ArcGISRuntime::Polyline

Public Functions

Multipart(const Multipart &other)
Multipart(Multipart &&other)
Multipart(const Geometry &other)
~Multipart()
bool isValid() const
ImmutablePartCollection parts() const
Multipart &operator=(const Multipart &other)
Multipart &operator=(Multipart &&other)

Protected Functions

Additional Inherited Members

Detailed Description

Base class for classes that represent a geometry composed of a collection of Parts.

Each Part is a collection of Segments.

Multipart is an abstract class from which the Polygon and Polyline instantiable classes inherit.

Member Function Documentation

Multipart::Multipart(const Multipart &other)

Copy constructor from other Multipart.

Multipart::Multipart(Multipart &&other)

Move constructor from other Multipart.

Multipart::Multipart(const Geometry &other)

Converting constructor from other Geometry.

See also Downcast helper functions.

[protected] Multipart::Multipart()

Default constructor.

Multipart::~Multipart()

Destructor.

bool Multipart::isValid() const

Gets whether this Multipart is valid.

A Multipart is valid if it is not empty and geometryType is GeometryType::Polygon or GeometryType::Polyline.

Returns true if valid.

This function was introduced in Esri::ArcGISRuntime 100.2.

ImmutablePartCollection Multipart::parts() const

Gets the parts of this Multipart as an ImmutablePartCollection.

Returns an ImmutablePartCollection.

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

Assignment operator from other Multipart.

Multipart &Multipart::operator=(Multipart &&other)

Move operator from other Multipart.


Feedback on this topic?