Polyline Class

  • Polyline
  • class Esri::ArcGISRuntime::Polyline

    A linear shape defined by a collection of segments. More...

    Header: #include <Polyline.h>
    Since: Esri::ArcGISRuntime 100.0
    Inherits: Esri::ArcGISRuntime::Multipart

    This class was introduced in Esri::ArcGISRuntime 100.0.

    Public Functions

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

    Detailed Description

    Polyline geometries represent the shape and location of linear features, such as a street in a road network, a contour line representing an elevation value, or a hiking trail. A Polyline can be used to define geometry for features and graphics, or as input or output for tasks or geoprocessing operations, such as the output of a network trace.

    A Polyline is composed of a series of connected Segments, where each segment defines a continuous line between a start and an end point. You can define a new Polyline from a collection of Point to create a series of straight LineSegment connecting the points you specified. You can use PolylineBuilder to build a Polyline, one point at a time, or to modify an existing Polyline.

    Additionally, Polyline can have multiple parts. Each part is a series of connected segments, but the parts can be disjoint from each other. For example, a Polyline representing a street that ends and then starts again a block later. Parts can also intersect at one or more vertices. For example, in a Polyline representing a river and its tributaries. The Polyline class inherits from Multipart, which provides members for iterating the segments and points of each part in a Polyline.

    Polyline is immutable. Instead of changing the properties of an existing Polyline, you can create new Polyline instances, or use PolylineBuilder.

    Member Function Documentation

    Polyline::Polyline(const Esri::ArcGISRuntime::Geometry &other)

    Converting constructor from other Geometry.

    See also Downcast helper functions.

    Polyline::Polyline(Esri::ArcGISRuntime::Polyline &&other)

    Move constructor from other Polyline.

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

    Copy constructor from other Polyline.

    Polyline::Polyline()

    Default constructor.

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

    Move operator from other Polyline.

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

    Assignment operator from other Polyline.

    [override virtual] Polyline::~Polyline()

    Destructor.

    bool Polyline::isValid() const

    Gets whether this Polyline is valid.

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

    Returns true if valid.

    This function was introduced in Esri::ArcGISRuntime 100.2.

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