Multipart Class

  • Multipart
  • class Esri::ArcGISRuntime::Multipart

    Multipart geometry is comprised of a collection of shapes. More...

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

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

    Public Functions

    Multipart(const Esri::ArcGISRuntime::Multipart &other)
    Multipart(Esri::ArcGISRuntime::Multipart &&other)
    Multipart(const Esri::ArcGISRuntime::Geometry &other)
    virtual ~Multipart() override
    bool isValid() const
    Esri::ArcGISRuntime::ImmutablePartCollection parts() const
    Esri::ArcGISRuntime::Multipart &operator=(const Esri::ArcGISRuntime::Multipart &other)
    Esri::ArcGISRuntime::Multipart &operator=(Esri::ArcGISRuntime::Multipart &&other)

    Protected Functions

    Detailed Description

    Multipart geometry is a collection of shapes (of the same type) that is managed as a single geometry. A classic example is a group of islands that represent a single country or state. The individual island shapes are distinct, but ArcGIS considers it a single geometry.

    Multipart is an abstract class from which Polygon and Polyline inherit, and Multipart inherits from Geometry. Multipart provides access to the geometry's ImmutablePartCollection. Each ImmutablePart in the collection is a collection of Segment objects. You can iterate through the segments or points in each part.

    In the same way that Polygon and Polyline are immutable, their multipart collections are also immutable: ImmutablePartCollection, ImmutablePart, and ImmutablePointCollection. However, when creating polygons and polylines, use the mutable equivalents: PartCollection, Part, and PointCollection.

    Member Function Documentation

    Multipart::Multipart(const Esri::ArcGISRuntime::Multipart &other)

    Copy constructor from other Multipart.

    Multipart::Multipart(Esri::ArcGISRuntime::Multipart &&other)

    Move constructor from other Multipart.

    [explicit] Multipart::Multipart(const Esri::ArcGISRuntime::Geometry &other)

    Converting constructor from other Geometry.

    See also Downcast helper functions.

    [protected] Multipart::Multipart()

    Default constructor.

    [override virtual] Multipart::~Multipart()


    [since Esri::ArcGISRuntime 100.2] 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.

    Esri::ArcGISRuntime::ImmutablePartCollection Multipart::parts() const

    Gets the parts of this Multipart as an ImmutablePartCollection.

    Returns an ImmutablePartCollection.

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

    Assignment operator from other Multipart.

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

    Move operator from other Multipart.

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