ArcGIS Runtime SDK for iOS: AGSMutablePointCollection.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSMutablePointCollection.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 1995-2020 ESRI
3 
4  TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
5  Unpublished material - all rights reserved under the
6  Copyright Laws of the United States and applicable international
7  laws, treaties, and conventions.
8 
9  For additional information, contact:
10  Environmental Systems Research Institute, Inc.
11  Attn: Contracts and Legal Services Department
12  380 New York Street
13  Redlands, California, 92373
14  USA
15 
16  email: contracts@esri.com
17  */
18 
19 #import <ArcGIS/AGSObject.h>
20 
21 @class AGSPoint;
22 @class AGSEnumerator;
23 @class AGSSpatialReference;
24  //Required for Globals API doc
26 
51 @interface AGSMutablePointCollection : AGSObject <NSFastEnumeration>
52 
53 
54 #pragma mark -
55 #pragma mark initializers
56 
57 
58 
65 -(instancetype)initWithSpatialReference:(nullable AGSSpatialReference*)spatialReference;
66 
73 +(instancetype)pointCollectionWithSpatialReference:(nullable AGSSpatialReference*)spatialReference;
74 
75 #pragma mark -
76 #pragma mark properties
77 
82 @property (nonatomic, assign, readonly) BOOL isEmpty;
83 
88 @property (nonatomic, assign, readonly) NSInteger count;
89 
96 @property (nullable, nonatomic, strong, readonly) AGSSpatialReference *spatialReference;
97 
98 #pragma mark -
99 #pragma mark methods
100 
106 -(NSInteger)addPoint:(AGSPoint*)point;
107 
114 -(NSInteger)addPointWithX:(double)x y:(double)y;
115 
123 -(NSInteger)addPointWithX:(double)x y:(double)y z:(double)z;
124 
129 -(void)addPoints:(NSArray<AGSPoint*>*)points;
130 
136 -(void)insertPoint:(AGSPoint*)point atIndex:(NSInteger)index;
137 
144 -(void)insertPointWithX:(double)x y:(double)y atIndex:(NSInteger)index;
145 
153 -(void)insertPointWithX:(double)x y:(double)y z:(double)z atIndex:(NSInteger)index;
154 
159 -(void)removePointAtIndex:(NSInteger)index;
160 
164 -(void)removeAllPoints;
165 
172 -(NSInteger)indexOfPoint:(AGSPoint*)point;
173 
180 -(AGSPoint*)pointAtIndex:(NSInteger)index;
181 
187 -(void)setPoint:(AGSPoint*)point atIndex:(NSInteger)index;
188 
202 -(AGSPoint*)objectAtIndexedSubscript:(NSInteger)idx;
203 
217 -(void)setObject:(AGSPoint*)obj atIndexedSubscript:(NSInteger)idx;
218 
223 -(AGSEnumerator*)pointEnumerator;
224 
229 -(NSArray<AGSPoint*>*)array;
230 
235 -(void)enumerateXYCoordinatesUsingBlock:(void(^)(NSUInteger index, double x, double y))block;
236 
237 
238 @end
AGSEnumerator * pointEnumerator()
NSArray< AGSPoint * > * array()
Represents the spatial reference of a geometry.
Definition: AGSSpatialReference.h:39
Definition: AGSObject.h:21
Mutable collection of points of a multipoint geometry builder.
Definition: AGSMutablePointCollection.h:51
BOOL isEmpty
Definition: AGSMutablePointCollection.h:82
NSInteger count
Definition: AGSMutablePointCollection.h:88
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:57