25 #import <Foundation/Foundation.h>
26 #import <ArcGIS/AGSObject.h>
71 #pragma mark initializers
95 -(instancetype)initWithPoints:(NSArray<
AGSPoint*>*)points;
101 +(instancetype)partWithPoints:(NSArray<
AGSPoint*>*)points;
104 #pragma mark properties
109 @property (nonatomic, assign, readonly, getter=isEmpty) BOOL
empty;
115 @property (nonatomic, assign, readonly) NSInteger
pointCount;
166 -(NSInteger)addPoint:(
AGSPoint*)point;
174 -(NSInteger)addPointWithX:(
double)x y:(
double)y;
183 -(NSInteger)addPointWithX:(
double)x y:(
double)y z:(
double)z;
189 -(void)addPoints:(NSArray<
AGSPoint*>*)points;
203 -(void)insertPoint:(
AGSPoint*)point atIndex:(NSInteger)index;
211 -(void)insertPointWithX:(
double)x y:(
double)y atIndex:(NSInteger)index;
220 -(void)insertPointWithX:(
double)x y:(
double)y z:(
double)z atIndex:(NSInteger)index;
227 -(void)insertSegment:(
AGSSegment*)segment atIndex:(NSInteger)index;
233 -(void)removePointAtIndex:(NSInteger)index;
239 -(void)removeSegmentAtIndex:(NSInteger)index;
262 -(void)setPoint:(
AGSPoint*)point atIndex:(NSInteger)index;
270 -(void)setPointWithX:(
double)x y:(
double)y atIndex:(NSInteger)index;
277 -(void)setSegment:(
AGSSegment*)segment atIndex:(NSInteger)index;
284 -(
AGSPoint*)pointAtIndex:(NSInteger)index;
291 -(
AGSSegment*)segmentAtIndex:(NSInteger)index;
298 -(NSInteger)segmentIndexForStartPointIndex:(NSInteger)pointIndex;
305 -(NSInteger)segmentIndexForEndPointIndex:(NSInteger)pointIndex;
312 -(NSInteger)startPointIndexForSegmentIndex:(NSInteger)segmentIndex;
319 -(NSInteger)endPointIndexForSegmentIndex:(NSInteger)segmentIndex;
329 -(void)segmentIndexForPointIndex:(NSInteger)pointIndex outSegmentStartPointIndex:(NSInteger*)outSegmentStartPointIndex outSegmentEndPointIndex:(NSInteger*)outSegmentEndPointIndex;
345 -(
AGSSegment*)objectAtIndexedSubscript:(NSInteger)idx;
362 -(void)setObject:(
AGSSegment*)obj atIndexedSubscript:(NSInteger)idx;
A mutable part of a multipart geometry.
Definition: AGSMutablePart.h:67
AGSPoint * startPoint
Definition: AGSMutablePart.h:134
AGSEnumerator * pointEnumerator()
NSInteger segmentCount
Definition: AGSMutablePart.h:120
AGSEnumerator * segmentEnumerator()
NSArray< AGSSegment * > * array()
BOOL hasCurves
Definition: AGSMutablePart.h:156
BOOL empty
Definition: AGSMutablePart.h:109
NSInteger pointCount
Definition: AGSMutablePart.h:115
AGSPointCollection * points
Definition: AGSMutablePart.h:144
AGSPoint * endPoint
Definition: AGSMutablePart.h:139
AGSSpatialReference * spatialReference
Definition: AGSMutablePart.h:129
Definition: AGSObject.h:28
Represents vertices (immutable collection of points) of a single part of a multipart geometry (AGSMul...
Definition: AGSPointCollection.h:41
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:73
A segment represents an edge of a multipart geometry, connecting a start to an end point.
Definition: AGSSegment.h:61
Represents the spatial reference of a geometry.
Definition: AGSSpatialReference.h:49