ArcGIS Runtime SDK for iOS: AGSEnvelopeBuilder.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSEnvelopeBuilder.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 #import <ArcGIS/AGSGeometryBuilder.h>
27 #import <CoreGraphics/CGGeometry.h>
28 
29 @class AGSEnvelope;
30 @class AGSPoint;
31 
43 
44 
45 #pragma mark -
46 #pragma mark initializers
47 
48 
49 
58 -(instancetype)initWithCenter:(AGSPoint *)center width:(double)width height:(double)height;
59 
69 +(instancetype)envelopeBuilderWithCenter:(AGSPoint *)center width:(double)width height:(double)height;
70 
80 -(instancetype)initWithCenter:(AGSPoint *)center width:(double)width height:(double)height depth:(double)depth;
81 
92 +(instancetype)envelopeBuilderWithCenter:(AGSPoint *)center width:(double)width height:(double)height depth:(double)depth;
93 
100 -(instancetype)initWithSpatialReference:(nullable AGSSpatialReference*)sr;
101 
109 +(instancetype)envelopeBuilderWithSpatialReference:(nullable AGSSpatialReference*)sr;
110 
117 -(instancetype)initWithEnvelope:(nullable AGSEnvelope *)envelope;
118 
126 +(instancetype)envelopeBuilderWithEnvelope:(nullable AGSEnvelope *)envelope;
127 
128 #pragma mark -
129 #pragma mark properties
130 
136 @property (nonatomic, readwrite) double xMin;
137 
143 @property (nonatomic, readwrite) double xMax;
144 
150 @property (nonatomic, readwrite) double yMin;
151 
157 @property (nonatomic, readwrite) double yMax;
158 
165 @property (nonatomic, readwrite) double zMin;
166 
173 @property (nonatomic, readwrite) double zMax;
174 
180 @property (nonatomic, readwrite) double mMin;
181 
187 @property (nonatomic, readwrite) double mMax;
188 
194 @property (nonatomic, strong, readonly) AGSPoint *center;
195 
201 @property (nonatomic, assign, readonly) double width;
202 
208 @property (nonatomic, assign, readonly) double height;
209 
210 @property (nonatomic, assign, readonly) double depth;
211 
212 #pragma mark -
213 #pragma mark methods
214 
225 -(instancetype)setXMin:(double)xMin yMin:(double)yMin xMax:(double)xMax yMax:(double)yMax;
226 
235 -(instancetype)setMMin:(double)mMin mMax:(double)mMax;
236 
245 -(instancetype)setZMin:(double)zMin zMax:(double)zMax;
246 
254 -(instancetype)centerAtPoint:(AGSPoint *)point;
255 
263 -(instancetype)unionWithEnvelope:(AGSEnvelope *)envelope;
264 
272 -(instancetype)unionWithPoint:(AGSPoint *)point;
273 
278 -(instancetype)unionWithX:(double)x y:(double)y;
279 
288 -(instancetype)expandByFactor:(double)factor;
289 
299 -(instancetype)expandByFactor:(double)factor withAnchorPoint:(AGSPoint*)anchorPoint;
300 
309 -(instancetype)changeAspectRatio:(CGSize)size;
310 
319 -(instancetype)offsetByX:(double)offsetX y:(double)offsetY;
320 
328 -(instancetype)replaceGeometry:(nullable AGSEnvelope*)geometry;
329 
337 
338 
339 @end
The envelope builder object is used to create an envelope.
Definition: AGSEnvelopeBuilder.h:43
double mMin
Definition: AGSEnvelopeBuilder.h:180
double mMax
Definition: AGSEnvelopeBuilder.h:187
double height
Definition: AGSEnvelopeBuilder.h:208
double xMax
Definition: AGSEnvelopeBuilder.h:143
double zMin
Definition: AGSEnvelopeBuilder.h:165
double zMax
Definition: AGSEnvelopeBuilder.h:173
double yMin
Definition: AGSEnvelopeBuilder.h:150
double xMin
Definition: AGSEnvelopeBuilder.h:136
AGSEnvelope * toGeometry()
AGSPoint * center
Definition: AGSEnvelopeBuilder.h:194
double depth
Definition: AGSEnvelopeBuilder.h:210
double width
Definition: AGSEnvelopeBuilder.h:201
double yMax
Definition: AGSEnvelopeBuilder.h:157
A geometry that represents a rectangular shape.
Definition: AGSEnvelope.h:55
A builder to build geometries.
Definition: AGSGeometryBuilder.h:43
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:73
Represents the spatial reference of a geometry.
Definition: AGSSpatialReference.h:46