ArcGIS Runtime SDK for iOS: AGSSketchVertex.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSSketchVertex.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2021 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 
27 
28 
29 @class AGSPoint;
30  //Required for Globals API doc
32 
45 @interface AGSSketchVertex : NSObject
46 
47 #pragma mark -
48 #pragma mark initializers
49 
56 -(instancetype)initWithPartIndex:(NSInteger)partIndex pointIndex:(NSInteger)pointIndex;
57 
66 -(instancetype)initWithPartIndex:(NSInteger)partIndex insertionIndex:(NSInteger)insertionIndex;
67 
74 +(instancetype)sketchVertexWithPartIndex:(NSInteger)partIndex pointIndex:(NSInteger)pointIndex;
75 
84 +(instancetype)sketchVertexWithPartIndex:(NSInteger)partIndex insertionIndex:(NSInteger)insertionIndex;
85 
86 #pragma mark -
87 #pragma mark properties
88 
93 @property (nonatomic, assign, readonly) NSInteger partIndex;
94 
99 @property (nonatomic, assign, readonly) NSInteger pointIndex;
100 
105 @property (nonatomic, assign, readonly) NSInteger insertionIndex;
106 
112 @property (nullable, nonatomic, strong, readonly) AGSPoint *point;
113 
114 #pragma mark -
115 #pragma mark methods
116 
117 @end
118 
119 
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:73
A class that represents a vertex or mid-vertex in the AGSSketchEditor.
Definition: AGSSketchVertex.h:46
AGSPoint * point
Definition: AGSSketchVertex.h:112
NSInteger insertionIndex
Definition: AGSSketchVertex.h:105
NSInteger partIndex
Definition: AGSSketchVertex.h:93
NSInteger pointIndex
Definition: AGSSketchVertex.h:99