ArcGIS Runtime SDK for iOS: AGSEnvelopeBuilder.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSEnvelopeBuilder.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/AGSGeometryBuilder.h>
20 #import <CoreGraphics/CGGeometry.h>
21 
22 @class AGSEnvelope;
23 @class AGSPoint;
24 
36 
37 
38 #pragma mark -
39 #pragma mark initializers
40 
41 
42 
52 -(instancetype)initWithCenter:(AGSPoint *)center width:(double)width height:(double)height;
53 
63 +(instancetype)envelopeBuilderWithCenter:(AGSPoint *)center width:(double)width height:(double)height;
64 
75 -(instancetype)initWithCenter:(AGSPoint *)center width:(double)width height:(double)height depth:(double)depth;
76 
87 +(instancetype)envelopeBuilderWithCenter:(AGSPoint *)center width:(double)width height:(double)height depth:(double)depth;
88 
96 -(instancetype)initWithSpatialReference:(nullable AGSSpatialReference*)sr;
97 
105 +(instancetype)envelopeBuilderWithSpatialReference:(nullable AGSSpatialReference*)sr;
106 
114 -(instancetype)initWithEnvelope:(nullable AGSEnvelope *)envelope;
115 
123 +(instancetype)envelopeBuilderWithEnvelope:(nullable AGSEnvelope *)envelope;
124 
125 #pragma mark -
126 #pragma mark properties
127 
133 @property (nonatomic, readwrite) double xMin;
134 
140 @property (nonatomic, readwrite) double xMax;
141 
147 @property (nonatomic, readwrite) double yMin;
148 
154 @property (nonatomic, readwrite) double yMax;
155 
162 @property (nonatomic, readwrite) double zMin;
163 
170 @property (nonatomic, readwrite) double zMax;
171 
177 @property (nonatomic, readwrite) double mMin;
178 
184 @property (nonatomic, readwrite) double mMax;
185 
191 @property (nonatomic, strong, readonly) AGSPoint *center;
192 
198 @property (nonatomic, assign, readonly) double width;
199 
205 @property (nonatomic, assign, readonly) double height;
206 
207 @property (nonatomic, assign, readonly) double depth;
208 
209 #pragma mark -
210 #pragma mark methods
211 
222 -(instancetype)setXMin:(double)xMin yMin:(double)yMin xMax:(double)xMax yMax:(double)yMax;
223 
232 -(instancetype)setMMin:(double)mMin mMax:(double)mMax;
233 
242 -(instancetype)setZMin:(double)zMin zMax:(double)zMax;
243 
251 -(instancetype)centerAtPoint:(AGSPoint *)point;
252 
260 -(instancetype)unionWithEnvelope:(AGSEnvelope *)envelope;
261 
269 -(instancetype)unionWithPoint:(AGSPoint *)point;
270 
275 -(instancetype)unionWithX:(double)x y:(double)y;
276 
285 -(instancetype)expandByFactor:(double)factor;
286 
296 -(instancetype)expandByFactor:(double)factor withAnchorPoint:(AGSPoint*)anchorPoint;
297 
306 -(instancetype)changeAspectRatio:(CGSize)size;
307 
316 -(instancetype)offsetByX:(double)offsetX y:(double)offsetY;
317 
325 -(instancetype)replaceGeometry:(nullable AGSEnvelope*)geometry;
326 
334 
335 
336 @end
double zMax
Definition: AGSEnvelopeBuilder.h:170
double yMin
Definition: AGSEnvelopeBuilder.h:147
double xMin
Definition: AGSEnvelopeBuilder.h:133
double mMin
Definition: AGSEnvelopeBuilder.h:177
double xMax
Definition: AGSEnvelopeBuilder.h:140
double width
Definition: AGSEnvelopeBuilder.h:198
A geometry that represents a rectangular shape.
Definition: AGSEnvelope.h:47
Represents the spatial reference of a geometry.
Definition: AGSSpatialReference.h:39
double zMin
Definition: AGSEnvelopeBuilder.h:162
double yMax
Definition: AGSEnvelopeBuilder.h:154
double height
Definition: AGSEnvelopeBuilder.h:205
double mMax
Definition: AGSEnvelopeBuilder.h:184
A builder to build geometries.
Definition: AGSGeometryBuilder.h:35
AGSEnvelope * toGeometry()
double depth
Definition: AGSEnvelopeBuilder.h:207
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:57
A builder to build envelope geometries.
Definition: AGSEnvelopeBuilder.h:35