ArcGIS Runtime SDK for iOS: AGSPolygonBarrier.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSPolygonBarrier.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 #import <ArcGIS/AGSBarrierType.h>
28 
29 @class AGSPolygon;
30 
31 /*@file AGSPolygonBarrier.h */
32 
42 @interface AGSPolygonBarrier : AGSObject <NSCopying>
43 
44 
45 #pragma mark -
46 #pragma mark initializers
47 
48 
49 
55 -(instancetype)initWithPolygon:(AGSPolygon*)polygon;
56 
62 +(instancetype)barrierWithPolygon:(AGSPolygon*)polygon;
63 
64 #pragma mark -
65 #pragma mark properties
66 
72 @property (nonatomic, assign, readwrite) NSInteger barrierID;
73 
78 @property (nullable, nonatomic, strong, readwrite) AGSPolygon *geometry;
79 
83 @property (nonatomic, copy, readwrite) NSString *name;
84 
88 @property (nonatomic, assign, readwrite) AGSBarrierType type;
89 
90 #pragma mark -
91 #pragma mark methods
92 
98 -(double)scaleFactorForCostAttribute:(NSString*)attributeName;
99 
105 -(void)setScaleFactor:(double)scaleFactor forCostAttribute:(NSString*)attributeName;
106 
107 
108 @end
AGSBarrierType
Definition: AGSBarrierType.h:35
Definition: AGSObject.h:28
A polygon barrier to constrain routes.
Definition: AGSPolygonBarrier.h:42
NSString * name
Definition: AGSPolygonBarrier.h:83
AGSPolygon * geometry
Definition: AGSPolygonBarrier.h:78
NSInteger barrierID
Definition: AGSPolygonBarrier.h:72
AGSBarrierType type
Definition: AGSPolygonBarrier.h:88
A multipart shape used to represent an area.
Definition: AGSPolygon.h:78