ArcGIS Runtime SDK for iOS: AGSPart.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSPart.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 AGSSpatialReference;
23 @class AGSSegment;
24 @class AGSPointCollection;
25 @class AGSEnumerator;
26  //Required for Globals API doc
28 
52 @interface AGSPart : AGSObject <NSFastEnumeration>
53 
54 
55 #pragma mark -
56 #pragma mark initializers
57 
58 
59 
60 #pragma mark -
61 #pragma mark properties
62 
67 @property (nonatomic, assign, readonly) BOOL hasCurves;
68 
72 @property (nonatomic, assign, readonly, getter=isEmpty) BOOL empty;
73 
77 @property (nonatomic, assign, readonly) NSInteger pointCount;
78 
82 @property (nonatomic, assign, readonly) NSInteger segmentCount;
83 
91 @property (nullable, nonatomic, strong, readonly) AGSSpatialReference *spatialReference;
92 
93 
97 @property (nullable, nonatomic, strong, readonly) AGSPoint *startPoint;
98 
102 @property (nullable, nonatomic, strong, readonly) AGSPoint *endPoint;
103 
107 @property (nonatomic, strong, readonly) AGSPointCollection *points;
108 
109 #pragma mark -
110 #pragma mark methods
111 
116 -(AGSPoint*)pointAtIndex:(NSInteger)index;
117 
122 -(AGSSegment*)segmentAtIndex:(NSInteger)index;
123 
129 -(NSInteger)segmentIndexForStartPointIndex:(NSInteger)pointIndex;
130 
136 -(NSInteger)segmentIndexForEndPointIndex:(NSInteger)pointIndex;
137 
143 -(NSInteger)startPointIndexForSegmentIndex:(NSInteger)segmentIndex;
144 
150 -(NSInteger)endPointIndexForSegmentIndex:(NSInteger)segmentIndex;
151 
152 
153 
154 //I don't know what this is for or what it does
155 -(void)segmentIndexForPointIndex:(NSInteger)pointIndex outSegmentStartPointIndex:(NSInteger*)outSegmentStartPointIndex outSegmentEndPointIndex:(NSInteger*)outSegmentEndPointIndex;
156 
171 -(AGSSegment*)objectAtIndexedSubscript:(NSInteger)idx;
172 
177 -(AGSEnumerator*)pointEnumerator;
178 
183 -(AGSEnumerator*)segmentEnumerator;
184 
189 -(NSArray<AGSSegment*>*)array;
190 
191 
192 @end
AGSSpatialReference * spatialReference
Definition: AGSPart.h:91
AGSPointCollection * points
Definition: AGSPart.h:107
Represents vertices (immutable collection of points) of a single part of a multipart geometry (AGSMul...
Definition: AGSPointCollection.h:34
Represents a single part of a multipart geometry (AGSPolygon or AGSPolyline).
Definition: AGSPart.h:52
AGSPoint * startPoint
Definition: AGSPart.h:97
NSInteger pointCount
Definition: AGSPart.h:77
NSInteger segmentCount
Definition: AGSPart.h:82
Represents the spatial reference of a geometry.
Definition: AGSSpatialReference.h:39
BOOL empty
Definition: AGSPart.h:72
A segment represents an edge of a multipart geometry, connecting a start to an end point...
Definition: AGSSegment.h:44
Definition: AGSObject.h:21
AGSPoint * endPoint
Definition: AGSPart.h:102
BOOL hasCurves
Definition: AGSPart.h:67
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:57