高德地图SDK(导航) V11.2.0501

Loading...
Searching...
No Matches
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
MAShape.h
© 2017 高德信息技术有限公司 版权所有，保留所有权利。