MultipartBuilder Class

  • MultipartBuilder
  • class Esri::ArcGISRuntime::MultipartBuilder

    The multipart builders allow you to create and modify geometries made up of multiple parts, such as Polyline and Polygon. More...

    Header: #include <MultipartBuilder.h>
    Since: Esri::ArcGISRuntime 100.0
    Inherits: Esri::ArcGISRuntime::GeometryBuilder
    Inherited By:

    Esri::ArcGISRuntime::PolygonBuilder and Esri::ArcGISRuntime::PolylineBuilder

    Public Functions

    virtual ~MultipartBuilder() override
    int addPoint(const Esri::ArcGISRuntime::Point &point)
    int addPoint(double x, double y)
    int addPoint(double x, double y, double z)
    void addPoints(const QList<Esri::ArcGISRuntime::Point> &points)
    Esri::ArcGISRuntime::PartCollection *parts() const
    void setParts(Esri::ArcGISRuntime::PartCollection *parts)

    Detailed Description

    This is a base class for the geometry multipart builders, such as PolylineBuilder or PolygonBuilder.

    Member Function Documentation

    [override virtual] MultipartBuilder::~MultipartBuilder()

    Destructor.

    int MultipartBuilder::addPoint(const Esri::ArcGISRuntime::Point &point)

    Adds a new point to the end of the part.

    A new line segment will be added to connect the new point to the previous. The points in the part are the start and end points of segments. A new line segment is added to connect the new point to the previous point. If this is the first point in an empty segment, a single closed segment is added using the same start and end point. Adding a second point will update this line segment to gain a distinct end point. Adding a third or more points will add new line segments.

    int MultipartBuilder::addPoint(double x, double y)

    Returns adds a new point to the end of the last part of the multipart.

    • x - The x-coordinate of the point to add.
    • y - The y-coordinate of the point to add.

    If there are no parts, then an initial part is created and the point added to that. The point becomes the end point of a line segment in the part.

    A new line segment will be added to connect the new point to the previous. The points in the part are the start and end points of segments. A new line segment is added to connect the new point to the previous point. If this is the first point in an empty segment, a single closed segment is added using the same start and end point. Adding a second point will update this line segment to gain a distinct end point. Adding a third or more points will add new line segments.

    int MultipartBuilder::addPoint(double x, double y, double z)

    Returns adds a new point to the end of the last part of the multipart.

    • x - The x-coordinate of the point to add.
    • y - The y-coordinate of the point to add.
    • z - The z-coordinate of the point to add.

    If there are no parts then an initial part is created and the point added to that. The point becomes the end point of a line segment in the part.

    A new line segment will be added to connect the new point to the previous. The points in the part are the start and end points of segments. A new line segment is added to connect the new point to the previous point. If this is the first point in an empty segment, a single closed segment is added using the same start and end point. Adding a second point will update this line segment to gain a distinct end point. Adding a third or more points will add new line segments.

    [since Esri::ArcGISRuntime 100.1] void MultipartBuilder::addPoints(const QList<Esri::ArcGISRuntime::Point> &points)

    Adds a list of points to the Multipart.

    This function was introduced in Esri::ArcGISRuntime 100.1.

    Esri::ArcGISRuntime::PartCollection *MultipartBuilder::parts() const

    Gets the parts of this MultipartBuilder as a PartCollection.

    Returns a PartCollection.

    See also setParts().

    void MultipartBuilder::setParts(Esri::ArcGISRuntime::PartCollection *parts)

    Sets the parts of this MultipartBuilder to parts.

    See also parts().

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