Represents a straight line between a start and end point. More...
Header | #include <Line |
Since | Esri |
Inherits | Esri |
Public Functions
Line | |
(since Esri | Line |
Line | |
Line | |
Line | |
Line | |
Line | |
Line | |
Line | |
Line | |
~ | |
Esri | operator=( |
Esri | operator=(const Esri |
Static Public Members
Esri | create |
Detailed Description
Use this method to create a line segment representing a straight line between two points. LineSegments are used to represent the edges of Polygons and Polylines.
LineSegment is immutable. Create new instances by using the constructors and factory methods, instead of changing the properties of an existing LineSegment.
Member Function Documentation
LineSegment::LineSegment ()
Default constructor.
A default constructed LineSegment should not be used. This constructor is provided for convenience only.
See also isEmpty.
[explicit, since Esri::ArcGISRuntime 100.12]
LineSegment::LineSegment (const Esri::ArcGISRuntime::Segment &other)
Copy constructor from other Segment.
This function was introduced in Esri::ArcGISRuntime 100.12.
LineSegment::LineSegment (const Esri::ArcGISRuntime::Point &startPoint , const Esri::ArcGISRuntime::Point &endPoint )
Creates a line segment based on two points.
- startPoint - The start point.
- endPoint - The end point.
Use this method to create a line segment representing a straight line between two points.
If both points have a spatial reference set, they must be equal.
Returns ErrorTypeCommonInvalidArgument if the SpatialReference of both points supplied are non-null and differ.
LineSegment::LineSegment (const Esri::ArcGISRuntime::Point &startPoint , const Esri::ArcGISRuntime::Point &endPoint , const Esri::ArcGISRuntime::SpatialReference &spatialReference )
Creates a line segment based on two points and a spatial reference.
- startPoint - The start point.
- endPoint - The end point.
- spatialReference - A spatial reference.
Use this method to create a line segment representing a straight line between two points. The spatial reference parameter is used if the points have an empty 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.
Returns ErrorTypeCommonInvalidArgument if the SpatialReference of both points supplied are non-null and differ.
LineSegment::LineSegment (double xStart , double yStart , double xEnd , double yEnd )
Creates a line segment based on coordinates.
- xStart - The X coordinate of start point.
- yStart - The Y coordinate of start point.
- xEnd - The X coordinate of end point.
- yEnd - The Y coordinate of end point.
Use this method to create a line segment representing a straight line between two points.
LineSegment::LineSegment (double xStart , double yStart , double xEnd , double yEnd , const Esri::ArcGISRuntime::SpatialReference &spatialReference )
Creates a line segment based on coordinates.
- xStart - The X coordinate of start point.
- yStart - The Y coordinate of start point.
- xEnd - The X coordinate of end point.
- yEnd - The Y coordinate of end point.
- spatialReference - A spatial reference.
Use this method to create a line segment representing a straight line between two points.
LineSegment::LineSegment (double xStart , double yStart , double zStart , double xEnd , double yEnd , double zEnd )
Creates a line segment based on 3D coordinates.
- xStart - The X coordinate of start point.
- yStart - The Y coordinate of start point.
- zStart - The Z coordinate of start point.
- xEnd - The X coordinate of end point.
- yEnd - The Y coordinate of end point.
- zEnd - The Z coordinate of end point.
Use this method to create a line segment representing a straight line between two points.
LineSegment::LineSegment (double xStart , double yStart , double zStart , double xEnd , double yEnd , double zEnd , const Esri::ArcGISRuntime::SpatialReference &spatialReference )
Creates a line segment based on 3D coordinates and a spatial reference.
- xStart - The X coordinate of start point.
- yStart - The Y coordinate of start point.
- zStart - The Z coordinate of start point.
- xEnd - The X coordinate of end point.
- yEnd - The Y coordinate of end point.
- zEnd - The Z coordinate of end point.
- spatialReference - A spatial reference.
Use this method to create a line segment representing a straight line between two points.
LineSegment::LineSegment (const Esri::ArcGISRuntime::LineSegment &other)
Copy constructor from other LineSegment.
[noexcept]
LineSegment::LineSegment (Esri::ArcGISRuntime::LineSegment &&other)
Move constructor from other LineSegment.
[noexcept]
LineSegment::~LineSegment ()
Destructor.
[static]
Esri::ArcGISRuntime::LineSegment LineSegment::createLineAtAngleFromStartPoint (const Esri::ArcGISRuntime::Point &startPoint , double angleRadians , double length)
Factory method to create a LineSegment from a startPoint, angleRadians, and a length.
[noexcept]
Esri::ArcGISRuntime::LineSegment &LineSegment::operator=(Esri::ArcGISRuntime::LineSegment &&other)
Move operator from other LineSegment.
Esri::ArcGISRuntime::LineSegment &LineSegment::operator=(const Esri::ArcGISRuntime::LineSegment &other)
Assignment operator from other LineSegment.