|
ArcGIS Runtime SDK for iOS
100.9
|
Represents a single part of a multipart geometry (AGSPolygon or AGSPolyline).
Instances of this class represent an individual part of a multipart geometry such as polygon or polyline. A part is a collection of segments that define the shape of the part. As a convenience, you can access points that represent the vertices of the part, instead of working with segments.
This class adopts NSFastEnumeration which permits the part's segments to be enumerated conveniently using a for-in loop. For example -
This class also provides subscripting support. So you can access segments using the subscript syntax. For example -
Instance Methods | |
| (NSInteger) | - endPointIndexForSegmentIndex: |
| (AGSPoint *) | - pointAtIndex: |
| (AGSSegment *) | - segmentAtIndex: |
| (NSInteger) | - segmentIndexForEndPointIndex: |
| (void) | - segmentIndexForPointIndex:outSegmentStartPointIndex:outSegmentEndPointIndex: |
| (NSInteger) | - segmentIndexForStartPointIndex: |
| (NSInteger) | - startPointIndexForSegmentIndex: |
Properties | |
| BOOL | empty |
| AGSPoint * | endPoint |
| BOOL | hasCurves |
| NSInteger | pointCount |
| AGSPointCollection * | points |
| NSInteger | segmentCount |
| AGSSpatialReference * | spatialReference |
| AGSPoint * | startPoint |
| - (NSInteger) endPointIndexForSegmentIndex: | (NSInteger) | segmentIndex |
Position of ending vertex for the specified segment
| segmentIndex | representing the position of the segment whose ending vertex is desired |
| - (AGSPoint*) pointAtIndex: | (NSInteger) | index |
Vertex at specified position in the part
| index | of desired position. 0 is the first position |
| - (AGSSegment*) segmentAtIndex: | (NSInteger) | index |
Segment at specified position in the part
| index | of desired position. 0 is the first position |
| - (NSInteger) segmentIndexForEndPointIndex: | (NSInteger) | pointIndex |
Position of segment that contains the specified vertex as its ending point
| pointIndex | representing the position of vertex which serves as the ending point for the segment |
| - (void) segmentIndexForPointIndex: | (NSInteger) | pointIndex | |
| outSegmentStartPointIndex: | (NSInteger *) | outSegmentStartPointIndex | |
| outSegmentEndPointIndex: | (NSInteger *) | outSegmentEndPointIndex | |
| - (NSInteger) segmentIndexForStartPointIndex: | (NSInteger) | pointIndex |
Position of segment that contains the specified vertex as its starting point
| pointIndex | representing the position of vertex which serves as the starting point for the segment |
| - (NSInteger) startPointIndexForSegmentIndex: | (NSInteger) | segmentIndex |
Position of staring vertex for the specified segment
| segmentIndex | representing the position of the segment whose starting vertex is desired |
|
readnonatomicassign |
Indicates whether the part contains any segments
|
readnonatomicstrong |
Ending vertex of the last segment in the part
|
readnonatomicassign |
Indicates whether this geometry has curves.
|
readnonatomicassign |
Number of vertices in the part. Each segment contains 2 vertices (start and end). Connected segments can share a vertex.
|
readnonatomicstrong |
All the vertices in this part
|
readnonatomicassign |
Number of segments in the part
|
readnonatomicstrong |
The spatial reference associated with segments and vertices in this part. It specifies the coordinate system for each segment and vertex's x & y coordinate values. All segments and vertices that belong to this part must have the same spatial reference, or if they don't have a spatial reference, it will be assumed that they contain coordinates that match this spatial reference.
|
readnonatomicstrong |
Starting vertex of the first segment in the part