ArcGIS Runtime SDK for iOS: AGSMutablePartCollection.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSMutablePartCollection.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 AGSMutablePart;
22 @class AGSEnumerator;
23 @class AGSSpatialReference;
24  //Required for Globals API doc
26 
52 @interface AGSMutablePartCollection : AGSObject <NSFastEnumeration>
53 
54 
55 #pragma mark -
56 #pragma mark initializers
57 
58 
59 
66 -(instancetype)initWithSpatialReference:(nullable AGSSpatialReference*)spatialReference;
67 
74 +(instancetype)partCollectionWithSpatialReference:(nullable AGSSpatialReference*)spatialReference;
75 
76 #pragma mark -
77 #pragma mark properties
78 
83 @property (nonatomic, assign, readonly) BOOL isEmpty;
84 
89 @property (nonatomic, assign, readonly) NSInteger count;
90 
97 @property (nullable, nonatomic, strong, readonly) AGSSpatialReference *spatialReference;
98 
103 @property (nonatomic, assign, readonly) NSInteger totalPointCount;
104 
105 #pragma mark -
106 #pragma mark methods
107 
113 -(NSInteger)addPart:(AGSMutablePart*)part;
114 
120 -(void)insertPart:(AGSMutablePart*)part atIndex:(NSInteger)index;
121 
126 -(void)removePartAtIndex:(NSInteger)index;
127 
131 -(void)removeAllParts;
132 
139 -(NSInteger)indexOfPart:(AGSMutablePart*)part;
140 
147 -(AGSMutablePart*)partAtIndex:(NSInteger)index;
148 
154 -(void)setPart:(AGSMutablePart*)part atIndex:(NSInteger)index;
155 
170 -(AGSMutablePart*)objectAtIndexedSubscript:(NSInteger)idx;
171 
186 -(void)setObject:(AGSMutablePart*)obj atIndexedSubscript:(NSInteger)idx;
187 
192 -(AGSEnumerator*)partEnumerator;
193 
198 -(NSArray<AGSMutablePart*>*)array;
199 
200 
201 @end
NSInteger count
Definition: AGSMutablePartCollection.h:89
BOOL isEmpty
Definition: AGSMutablePartCollection.h:83
Mutable collection of parts of a multipart geometry builder.
Definition: AGSMutablePartCollection.h:52
AGSEnumerator * partEnumerator()
Represents the spatial reference of a geometry.
Definition: AGSSpatialReference.h:39
A mutable part of a multipart geometry.
Definition: AGSMutablePart.h:56
Definition: AGSObject.h:21
NSInteger totalPointCount
Definition: AGSMutablePartCollection.h:103
NSArray< AGSMutablePart * > * array()