ArcGIS Runtime SDK for iOS: AGSCubicBezierSegment Class Reference
ArcGIS Runtime SDK for iOS  100.12
AGSCubicBezierSegment Class Reference

Description

A cubic Bezier curve for use in a multipart geometry.

Since
100.12
Inheritance diagram for AGSCubicBezierSegment:
AGSSegment AGSObject

Instance Methods

(nullable instancetype) - initWithStartPoint:controlPoint1:controlPoint2:endPoint:spatialReference:
 
(BOOL) - isEqualToSegment:
 

Class Methods

(nullable instancetype) + cubicBezierSegmentWithStartPoint:controlPoint1:controlPoint2:endPoint:spatialReference:
 

Properties

BOOL closed
 
AGSPointcontrolPoint1
 
AGSPointcontrolPoint2
 
BOOL curve
 
AGSPointendPoint
 
AGSSpatialReferencespatialReference
 
AGSPointstartPoint
 

Method Documentation

◆ cubicBezierSegmentWithStartPoint:controlPoint1:controlPoint2:endPoint:spatialReference:

+ (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 and m values of the start and end points (if present) are used in the AGSCubicBezierSegment. The z and m values of the control points (if present) are ignored.

Parameters
startPointThe start point of the segment.
controlPoint1A point tangent to the start of the segment.
controlPoint2A point tangent to the end of the segment.
endPointThe end point of the segment.
spatialReferenceA spatial reference to use for the segment if the points do not have spatial references set.
Since
100.12

◆ initWithStartPoint:controlPoint1:controlPoint2:endPoint:spatialReference:

- (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 and m values of the start and end points (if present) are used in the AGSCubicBezierSegment. The z and m values of the control points (if present) are ignored.

Parameters
startPointThe start point of the segment.
controlPoint1A point tangent to the start of the segment.
controlPoint2A point tangent to the end of the segment.
endPointThe end point of the segment.
spatialReferenceA spatial reference to use for the segment if the points do not have spatial references set.
Since
100.12

◆ isEqualToSegment:

- (BOOL) isEqualToSegment: (AGSSegment *)  other

Determines whether or not two time segments are equal.

Parameters
otherThe segment to compare the current segment with.
Since
100

Property Documentation

◆ closed

- (BOOL) closed
readnonatomicassigninherited

Determines whether the segment is closed or not.

Since
100

◆ controlPoint1

- (AGSPoint*) controlPoint1
readnonatomicstrong

A point tangent to the start of the segment.

Since
100.12

◆ controlPoint2

- (AGSPoint*) controlPoint2
readnonatomicstrong

A point tangent to the end of the segment.

Since
100.12

◆ curve

- (BOOL) curve
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.

See also
AGSGeometryBuilder::hasCurves, AGSMutablePart::hasCurves, AGSCubicBezierSegment, AGSEllipticArcSegment
Since
100.12

◆ endPoint

- (AGSPoint*) endPoint
readnonatomicstronginherited

The end point of the segment.

Since
100

◆ spatialReference

- (AGSSpatialReference*) spatialReference
readnonatomicstronginherited

The spatial reference of the segment.

Since
100

◆ startPoint

- (AGSPoint*) startPoint
readnonatomicstronginherited

The start point of the segment.

Since
100