iOS高德地图SDK(3D) V11.2.0001

MAParticleOverlayOptions.h
Go to the documentation of this file.
1 //
2 // MAParticleOverlayOptions.h
3 // MAMapKit
4 //
5 // Created by liubo on 2018/9/18.
6 // Copyright © 2018年 Amap. All rights reserved.
7 //
8
9 #import "MAConfig.h"
10 #if MA_INCLUDE_OVERLAY_ParticleSystem
11
12 #import "MAShape.h"
13 #import "MAOverlay.h"
14
15 #pragma mark - MAParticleOverlayType
16
19 typedef NS_ENUM(NSInteger, MAParticleOverlayType)
20 {
21 MAParticleOverlayTypeSunny = 1,
22 MAParticleOverlayTypeRain,
23 MAParticleOverlayTypeSnowy,
24 MAParticleOverlayTypeHaze,
25 };
26
27 #pragma mark - MAParticleVelocityGenerate
28
31 @protocol MAParticleVelocityGenerate <NSObject>
32 @required
33
36 - (CGFloat)getX;
37
40 - (CGFloat)getY;
41
44 - (CGFloat)getZ;
45 @end
46
47 #pragma mark - MAParticleRandomVelocityGenerate
48
51 @interface MAParticleRandomVelocityGenerate : NSObject <MAParticleVelocityGenerate>
52
71 - (instancetype)initWithBoundaryValueX1:(float)x1 Y1:(float)y1 Z1:(float)z1 X2:(float)x2 Y2:(float)y2 Z2:(float)z2;
72
73 @end
74
75 #pragma mark - MAParticleColorGenerate
76
79 @protocol MAParticleColorGenerate <NSObject>
80 @required
83 - (float *)getColor;
84 @end
85
86 #pragma mark - MAParticleRandomColorGenerate
87
90 @interface MAParticleRandomColorGenerate : NSObject <MAParticleColorGenerate>
91
114 - (instancetype)initWithBoundaryColorR1:(float)r1 G1:(float)g1 B1:(float)b1 A1:(float)a1 R2:(float)r2 G2:(float)g2 B2:(float)b2 A2:(float)a2;
115
116 @end
117
118 #pragma mark - MAParticleRotationGenerate
119
122 @protocol MAParticleRotationGenerate <NSObject>
123 @required
126 - (float)getRotate;
127 @end
128
129 #pragma mark - MAParticleConstantRotationGenerate
130
133 @interface MAParticleConstantRotationGenerate : NSObject <MAParticleRotationGenerate>
134
143 - (instancetype)initWithRotate:(float)rotate;
144
145 @end
146
147 #pragma mark - MAParticleSizeGenerate
148
151 @protocol MAParticleSizeGenerate <NSObject>
152 @required
153
156 - (float)getSizeX:(float)timeFrame;
157
160 - (float)getSizeY:(float)timeFrame;
161
164 - (float)getSizeZ:(float)timeFrame;
165 @end
166
167 #pragma mark - MAParticleCurveSizeGenerate
168
171 @interface MAParticleCurveSizeGenerate : NSObject <MAParticleSizeGenerate>
172
185 - (instancetype)initWithCurveX:(float)x Y:(float)y Z:(float)z;
186
187 @end
188
189 #pragma mark - MAParticleEmissionModuleOC
190
193 @interface MAParticleEmissionModuleOC : NSObject
194
205 - (instancetype)initWithEmissionRate:(int)rate rateTime:(int)rateTime;
206
207 @end
208
209 #pragma mark - MAParticleShapeModule
210
213 @protocol MAParticleShapeModule <NSObject>
214 @required
215
218 - (float *)getPoint;
219
222 - (BOOL)isRatioEnable;
223 @end
224
225 #pragma mark - MAParticleSinglePointShapeModule
226
229 @interface MAParticleSinglePointShapeModule : NSObject <MAParticleShapeModule>
230
245 - (instancetype)initWithShapeX:(float)x Y:(float)y Z:(float)z useRatio:(BOOL)isUseRatio;
246
247 @end
248
249 #pragma mark - MAParticleRectShapeModule
250
253 @interface MAParticleRectShapeModule : NSObject <MAParticleShapeModule>
254
271 - (instancetype)initWithLeft:(float)left top:(float)top right:(float)right bottom:(float)bottom useRatio:(BOOL)isUseRatio;
272
273 @end
274
275 #pragma mark - MAParticleOverLifeModuleOC
276
279 @interface MAParticleOverLifeModuleOC : NSObject
280
287 - (void)setVelocityOverLife:(id<MAParticleVelocityGenerate>)velocity;
288
295 - (void)setRotationOverLife:(id<MAParticleRotationGenerate>)rotation;
296
303 - (void)setSizeOverLife:(id<MAParticleSizeGenerate>)size;
304
311 - (void)setColorOverLife:(id<MAParticleColorGenerate>)color;
312
313 @end
314
315 #pragma mark - MAParticleOverlayOptions
316
319 @interface MAParticleOverlayOptions : NSObject
320
323 @property (nonatomic, assign) BOOL visibile;
324
327 @property (nonatomic, assign) NSTimeInterval duration;
328
331 @property (nonatomic, assign) BOOL loop;
332
335 @property (nonatomic, assign) NSInteger maxParticles;
336
339 @property (nonatomic, strong) UIImage *icon;
340
343 @property (nonatomic, assign) CGSize startParticleSize;
344
347 @property (nonatomic, assign) NSTimeInterval particleLifeTime;
348
351 @property (nonatomic, strong) id<MAParticleColorGenerate> particleStartColor;
352
355 @property (nonatomic, strong) id<MAParticleVelocityGenerate> particleStartSpeed;
356
359 @property (nonatomic, strong) MAParticleEmissionModuleOC *particleEmissionModule;
360
363 @property (nonatomic, strong) id<MAParticleShapeModule> particleShapeModule;
364
367 @property (nonatomic, strong) MAParticleOverLifeModuleOC *particleOverLifeModule;
368
369 @end
370
371 #pragma mark - MAParticleOverlayOptionsFactory
372
375 @interface MAParticleOverlayOptionsFactory : NSObject
376
385 + (NSArray<MAParticleOverlayOptions *> *)particleOverlayOptionsWithType:(MAParticleOverlayType)particleType;
386
387 @end
388
389 #endif
MAConfig.h
MAOverlay.h
MAParticleOverlayType
MAParticleOverlayType
Definition: MAParticleOverlayOptions.h:20
MAParticleOverlayTypeSnowy
@ MAParticleOverlayTypeSnowy
雪天 Snowy
Definition: MAParticleOverlayOptions.h:23
MAParticleOverlayTypeSunny
@ MAParticleOverlayTypeSunny
晴天 Sunny
Definition: MAParticleOverlayOptions.h:21
MAParticleOverlayTypeHaze
@ MAParticleOverlayTypeHaze
雾霾 Haze
Definition: MAParticleOverlayOptions.h:24
MAParticleOverlayTypeRain
@ MAParticleOverlayTypeRain
雨天 Rainy
Definition: MAParticleOverlayOptions.h:22
MAShape.h
MAParticleConstantRotationGenerate
Definition: MAParticleOverlayOptions.h:133
MAParticleCurveSizeGenerate
Definition: MAParticleOverlayOptions.h:171
MAParticleEmissionModuleOC
Definition: MAParticleOverlayOptions.h:194
MAParticleOverLifeModuleOC
Definition: MAParticleOverlayOptions.h:280
MAParticleOverlayOptionsFactory
Definition: MAParticleOverlayOptions.h:376
MAParticleOverlayOptions
Definition: MAParticleOverlayOptions.h:320
MAParticleOverlayOptions::icon
UIImage * icon
Definition: MAParticleOverlayOptions.h:339
MAParticleOverlayOptions::particleEmissionModule
MAParticleEmissionModuleOC * particleEmissionModule
Definition: MAParticleOverlayOptions.h:359
MAParticleOverlayOptions::particleStartSpeed
id< MAParticleVelocityGenerate > particleStartSpeed
Definition: MAParticleOverlayOptions.h:355
MAParticleOverlayOptions::particleShapeModule
id< MAParticleShapeModule > particleShapeModule
Definition: MAParticleOverlayOptions.h:363
MAParticleOverlayOptions::visibile
BOOL visibile
Definition: MAParticleOverlayOptions.h:323
MAParticleOverlayOptions::loop
BOOL loop
Definition: MAParticleOverlayOptions.h:331
MAParticleOverlayOptions::startParticleSize
CGSize startParticleSize
Definition: MAParticleOverlayOptions.h:343
MAParticleOverlayOptions::duration
NSTimeInterval duration
Definition: MAParticleOverlayOptions.h:327
MAParticleOverlayOptions::particleOverLifeModule
MAParticleOverLifeModuleOC * particleOverLifeModule
Definition: MAParticleOverlayOptions.h:367
MAParticleOverlayOptions::maxParticles
NSInteger maxParticles
Definition: MAParticleOverlayOptions.h:335
MAParticleOverlayOptions::particleStartColor
id< MAParticleColorGenerate > particleStartColor
Definition: MAParticleOverlayOptions.h:351
MAParticleOverlayOptions::particleLifeTime
NSTimeInterval particleLifeTime
Definition: MAParticleOverlayOptions.h:347
MAParticleRandomColorGenerate
Definition: MAParticleOverlayOptions.h:90
MAParticleRandomVelocityGenerate
Definition: MAParticleOverlayOptions.h:51
MAParticleRectShapeModule
Definition: MAParticleOverlayOptions.h:253
MAParticleSinglePointShapeModule
Definition: MAParticleOverlayOptions.h:229
MAParticleColorGenerate-p
Definition: MAParticleOverlayOptions.h:79
-[MAParticleColorGenerate-p getColor]
float * getColor()
MAParticleRotationGenerate-p
Definition: MAParticleOverlayOptions.h:122
-[MAParticleRotationGenerate-p getRotate]
float getRotate()
MAParticleShapeModule-p
Definition: MAParticleOverlayOptions.h:213
-[MAParticleShapeModule-p isRatioEnable]
BOOL isRatioEnable()
-[MAParticleShapeModule-p getPoint]
float * getPoint()
MAParticleSizeGenerate-p
Definition: MAParticleOverlayOptions.h:151
MAParticleVelocityGenerate-p
Definition: MAParticleOverlayOptions.h:31
-[MAParticleVelocityGenerate-p getZ]
CGFloat getZ()
-[MAParticleVelocityGenerate-p getX]
CGFloat getX()
-[MAParticleVelocityGenerate-p getY]
CGFloat getY()
© 2017 高德信息技术有限公司 版权所有，保留所有权利。