ArcGIS Runtime SDK for iOS: AGSPolygonBarrier.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSPolygonBarrier.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 #import <ArcGIS/AGSBarrierType.h>
21 
22 @class AGSPolygon;
23 
24 /*@file AGSPolygonBarrier.h */
25 
35 @interface AGSPolygonBarrier : AGSObject <NSCopying>
36 
37 
38 #pragma mark -
39 #pragma mark initializers
40 
41 
42 
48 -(instancetype)initWithPolygon:(AGSPolygon*)polygon;
49 
55 +(instancetype)barrierWithPolygon:(AGSPolygon*)polygon;
56 
57 #pragma mark -
58 #pragma mark properties
59 
65 @property (nonatomic, assign, readwrite) NSInteger barrierID;
66 
71 @property (nullable, nonatomic, strong, readwrite) AGSPolygon *geometry;
72 
76 @property (nonatomic, copy, readwrite) NSString *name;
77 
81 @property (nonatomic, assign, readwrite) AGSBarrierType type;
82 
83 #pragma mark -
84 #pragma mark methods
85 
91 -(double)scaleFactorForCostAttribute:(NSString*)attributeName;
92 
98 -(void)setScaleFactor:(double)scaleFactor forCostAttribute:(NSString*)attributeName;
99 
100 
101 @end
AGSBarrierType
Definition: AGSBarrierType.h:29
NSString * name
Definition: AGSPolygonBarrier.h:76
AGSPolygon * geometry
Definition: AGSPolygonBarrier.h:71
A multipart shape used to represent an area.
Definition: AGSPolygon.h:57
AGSBarrierType type
Definition: AGSPolygonBarrier.h:81
Definition: AGSObject.h:21
A polygon barrier to constrain routes.
Definition: AGSPolygonBarrier.h:35
NSInteger barrierID
Definition: AGSPolygonBarrier.h:65