CubicBezierSegment Class

  • CubicBezierSegment
  • class Esri::ArcGISRuntime::CubicBezierSegment

    A cubic Bezier curve for use in a multipart geometry. More...

    Header: #include <CubicBezierSegment.h>
    Since: Esri::ArcGISRuntime 100.12
    Inherits: Esri::ArcGISRuntime::Segment

    Public Functions

    CubicBezierSegment()
    CubicBezierSegment(const Esri::ArcGISRuntime::Point &startPoint, const Esri::ArcGISRuntime::Point &controlPoint1, const Esri::ArcGISRuntime::Point &controlPoint2, const Esri::ArcGISRuntime::Point &endPoint, const Esri::ArcGISRuntime::SpatialReference &spatialReference)
    CubicBezierSegment(const Esri::ArcGISRuntime::CubicBezierSegment &other)
    CubicBezierSegment(const Esri::ArcGISRuntime::Segment &other)
    CubicBezierSegment(Esri::ArcGISRuntime::CubicBezierSegment &&other)
    ~CubicBezierSegment()
    Esri::ArcGISRuntime::Point controlPoint1() const
    Esri::ArcGISRuntime::Point controlPoint2() const
    Esri::ArcGISRuntime::CubicBezierSegment &operator=(const Esri::ArcGISRuntime::CubicBezierSegment &other)
    Esri::ArcGISRuntime::CubicBezierSegment &operator=(Esri::ArcGISRuntime::CubicBezierSegment &&other)

    Detailed Description

    Member Function Documentation

    CubicBezierSegment::CubicBezierSegment()

    Default constructor. Creates an empty CubicBezierSegment.

    See also isEmpty.

    CubicBezierSegment::CubicBezierSegment(const Esri::ArcGISRuntime::Point &startPoint, const Esri::ArcGISRuntime::Point &controlPoint1, const Esri::ArcGISRuntime::Point &controlPoint2, const Esri::ArcGISRuntime::Point &endPoint, const Esri::ArcGISRuntime::SpatialReference &spatialReference)

    Creates a bezier segment based on a start and end points, and two control points at tangents to the start and end points.

    • startPoint - The start point of the segment
    • controlPoint1 - A point tangent to the start of the segment
    • controlPoint2 - A point tangent to the end of the segment
    • endPoint - The end point of the segment
    • spatialReference - A spatial reference to use for the segment if the points do not have spatial references set

    The spatial reference parameter is used if the points have a nullptr spatial reference. If more than one spatial reference is supplied (as a parameter or as a property of a Point parameter), they must all be equal.

    The z-value and m-value of the start and end points (if present) are used in the CubicBezierSegment. The z-value and m-value of the control points (if present) are ignored.

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

    Copy constructor from other CubicBezierSegment.

    [explicit] CubicBezierSegment::CubicBezierSegment(const Esri::ArcGISRuntime::Segment &other)

    Copy constructor from other Segment.

    CubicBezierSegment::CubicBezierSegment(Esri::ArcGISRuntime::CubicBezierSegment &&other)

    Move constructor from other CubicBezierSegment.

    CubicBezierSegment::~CubicBezierSegment()

    Destructor.

    Esri::ArcGISRuntime::Point CubicBezierSegment::controlPoint1() const

    Returns a point tangent to the start of the segment.

    Esri::ArcGISRuntime::Point CubicBezierSegment::controlPoint2() const

    Returns a point tangent to the end of the segment.

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

    Assignment operator from other CubicBezierSegment.

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

    Move operator from other CubicBezierSegment.

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