ArcGIS Runtime SDK for iOS
100.15
|
A cubic Bezier curve for use in a multipart geometry.
Instance Methods | |
(nullable instancetype) | - initWithStartPoint:controlPoint1:controlPoint2:endPoint:spatialReference: |
(BOOL) | - isEqualToSegment: |
Class Methods | |
(nullable instancetype) | + cubicBezierSegmentWithStartPoint:controlPoint1:controlPoint2:endPoint:spatialReference: |
Properties | |
BOOL | closed |
AGSPoint * | controlPoint1 |
AGSPoint * | controlPoint2 |
BOOL | curve |
AGSPoint * | endPoint |
AGSSpatialReference * | spatialReference |
AGSPoint * | startPoint |
+ (nullable instancetype) cubicBezierSegmentWithStartPoint: | (AGSPoint *) | startPoint | |
controlPoint1: | (AGSPoint *) | controlPoint1 | |
controlPoint2: | (AGSPoint *) | controlPoint2 | |
endPoint: | (AGSPoint *) | endPoint | |
spatialReference: | (nullable AGSSpatialReference *) | spatialReference | |
Creates a bezier segment based on a start and end point and two control points at tangents to the start and end points.
The spatial reference parameter is used if the points have a nil
spatial reference. If more than one spatial reference is supplied (as a parameter or as a property of an AGSPoint
parameter), they must all be equal.
The z-value and m-value of the start and end points (if present) are used in the AGSCubicBezierSegment
. The z-value and m-value of the control points (if present) are ignored.
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. |
- (nullable instancetype) initWithStartPoint: | (AGSPoint *) | startPoint | |
controlPoint1: | (AGSPoint *) | controlPoint1 | |
controlPoint2: | (AGSPoint *) | controlPoint2 | |
endPoint: | (AGSPoint *) | endPoint | |
spatialReference: | (nullable AGSSpatialReference *) | spatialReference | |
Creates a bezier segment based on a start and end point and two control points at tangents to the start and end points.
The spatial reference parameter is used if the points have a nil
spatial reference. If more than one spatial reference is supplied (as a parameter or as a property of an AGSPoint
parameter), they must all be equal.
The z-value and m-value of the start and end points (if present) are used in the AGSCubicBezierSegment
. The z-value and m-value of the control points (if present) are ignored.
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. |
- (BOOL) isEqualToSegment: | (AGSSegment *) | other |
Determines whether or not two time segments are equal.
other | The segment to compare the current segment with. |
|
readnonatomicassigninherited |
Determines whether the segment is closed or not.
|
readnonatomicstrong |
A point tangent to the start of the segment.
|
readnonatomicstrong |
A point tangent to the end of the segment.
|
readnonatomicassigninherited |
NO
if the object is an AGSLineSegment
, YES
otherwise.
Prior to v100.12, only AGSLineSegment
instances were supported when creating new geometries using an AGSMultipartBuilder
or iterating the AGSSegment
instances in an existing AGSMultipart
geometry.
From v100.12, you can add curve segments (AGSCubicBezierSegment
, AGSEllipticArcSegment
) when using an AGSMultipartBuilder
, and get them back from an existing AGSMultipart
geometry when AGSGeometry::hasCurves
is YES
.
AGSGeometryBuilder::hasCurves
, AGSMutablePart::hasCurves
, AGSCubicBezierSegment
, AGSEllipticArcSegment
|
readnonatomicstronginherited |
The end point of the segment.
|
readnonatomicstronginherited |
The spatial reference of the segment.
|
readnonatomicstronginherited |
The start point of the segment.