ArcGIS Runtime SDK for iOS: AGSMutablePartCollection.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSMutablePartCollection.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2022 ESRI
3 
4  All rights reserved under the copyright laws of the United States
5  and applicable international laws, treaties, and conventions.
6 
7  This material is licensed for use under the Esri Master License
8  Agreement (MLA), and is bound by the terms of that agreement.
9  You may redistribute and use this code without modification,
10  provided you adhere to the terms of the MLA and include this
11  copyright notice.
12 
13  See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
14 
15  For additional information, contact:
16  Environmental Systems Research Institute, Inc.
17  Attn: Contracts and Legal Services Department
18  380 New York Street
19  Redlands, California, 92373
20  USA
21 
22  email: contracts@esri.com
23  */
24 
25 #import <Foundation/Foundation.h>
26 #import <ArcGIS/AGSObject.h>
27 
28 @class AGSMutablePart;
29 @class AGSEnumerator;
30 @class AGSSpatialReference;
31  //Required for Globals API doc
33 
59 @interface AGSMutablePartCollection : AGSObject <NSFastEnumeration>
60 
61 
62 #pragma mark -
63 #pragma mark initializers
64 
65 
66 
72 -(instancetype)initWithSpatialReference:(nullable AGSSpatialReference*)spatialReference;
73 
80 +(instancetype)partCollectionWithSpatialReference:(nullable AGSSpatialReference*)spatialReference;
81 
82 #pragma mark -
83 #pragma mark properties
84 
89 @property (nonatomic, assign, readonly) BOOL isEmpty;
90 
95 @property (nonatomic, assign, readonly) NSInteger count;
96 
103 @property (nullable, nonatomic, strong, readonly) AGSSpatialReference *spatialReference;
104 
109 @property (nonatomic, assign, readonly) NSInteger totalPointCount;
110 
111 #pragma mark -
112 #pragma mark methods
113 
119 -(NSInteger)addPart:(AGSMutablePart*)part;
120 
126 -(void)insertPart:(AGSMutablePart*)part atIndex:(NSInteger)index;
127 
132 -(void)removePartAtIndex:(NSInteger)index;
133 
137 -(void)removeAllParts;
138 
145 -(NSInteger)indexOfPart:(AGSMutablePart*)part;
146 
153 -(AGSMutablePart*)partAtIndex:(NSInteger)index;
154 
160 -(void)setPart:(AGSMutablePart*)part atIndex:(NSInteger)index;
161 
176 -(AGSMutablePart*)objectAtIndexedSubscript:(NSInteger)idx;
177 
192 -(void)setObject:(AGSMutablePart*)obj atIndexedSubscript:(NSInteger)idx;
193 
198 -(AGSEnumerator*)partEnumerator;
199 
204 -(NSArray<AGSMutablePart*>*)array;
205 
206 
207 @end
Mutable collection of parts of a multipart geometry builder.
Definition: AGSMutablePartCollection.h:59
NSInteger count
Definition: AGSMutablePartCollection.h:95
NSArray< AGSMutablePart * > * array()
NSInteger totalPointCount
Definition: AGSMutablePartCollection.h:109
BOOL isEmpty
Definition: AGSMutablePartCollection.h:89
AGSEnumerator * partEnumerator()
AGSSpatialReference * spatialReference
Definition: AGSMutablePartCollection.h:103
A mutable part of a multipart geometry.
Definition: AGSMutablePart.h:67
Definition: AGSObject.h:28
Represents the spatial reference of a geometry.
Definition: AGSSpatialReference.h:49