BaiduMap_IOSSDK_v6.6.7_Docs 6.6.7

BMK3DTraceOverlayOption.h
浏览该文件的文档.
1 //
2 // BMK3DTraceOverlayOption.h
3 // MapComponent
4 //
5 // Created by Baidu on 2023/10/8.
6 // Copyright © 2023 Baidu. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10
11 /*
12 * 动画类型
13 */
14 typedef NS_ENUM(NSInteger, BMK3DTraceOverlayAnimationEasingCurve) {
15 BMK3DTraceOverlayAnimationEasingCurveLinear,
16 BMK3DTraceOverlayAnimationEasingCurveEaseIn,
17 BMK3DTraceOverlayAnimationEasingCurveEaseOut,
18 BMK3DTraceOverlayAnimationEasingCurveEaseInOut
19 };
20
21 /*
22 * 轨迹类型
23 */
24 typedef NS_ENUM(NSInteger, BMK3DTraceOverlayType) {
25
26 BMK3DTraceOverlayTypeSurface = 3,
27 BMK3DTraceOverlayTypeDefault,
28 };
29 NS_ASSUME_NONNULL_BEGIN
30
32 @interface BMK3DTraceOverlayOption : NSObject
33
35 @property (nonatomic, assign) BMK3DTraceOverlayType traceType;
37 @property (nonatomic, assign) NSTimeInterval duration;
39 @property (nonatomic, assign) BMK3DTraceOverlayAnimationEasingCurve easingCurve;
41 @property (nonatomic, strong) UIImage *paletteImage;
43 @property (nonatomic, strong) UIImage *projectionPaletteImage;
45 @property (nonatomic, assign) CGFloat opacity;
47 @property (nonatomic, assign) CGFloat paletteOpacity;
48
49 @end
50
51 NS_ASSUME_NONNULL_END
BMK3DTraceOverlayOption::projectionPaletteImage
UIImage * projectionPaletteImage
投影调色板图片 （贴合底图的2D轨迹线的取色板），默认为mapapi.bundle/images/icon_traceColors.png
Definition: BMK3DTraceOverlayOption.h:43
BMK3DTraceOverlayOption::paletteImage
UIImage * paletteImage
调色板图片（3D轨迹线高度面的取色板）, 默认为mapapi.bundle/images/icon_traceColors.png
Definition: BMK3DTraceOverlayOption.h:41
BMK3DTraceOverlayOption::duration
NSTimeInterval duration
动画时间 默认5s 单位s
Definition: BMK3DTraceOverlayOption.h:37
NS_ENUM
typedef NS_ENUM(NSInteger, BMK3DTraceOverlayAnimationEasingCurve)
Definition: BMK3DTraceOverlayOption.h:14
BMK3DTraceOverlayOption::easingCurve
BMK3DTraceOverlayAnimationEasingCurve easingCurve
动画类型
Definition: BMK3DTraceOverlayOption.h:39
BMK3DTraceOverlayOption::paletteOpacity
CGFloat paletteOpacity
轨迹投影面的透明度，取值范围[0.0, 1.0], 默认1.0
Definition: BMK3DTraceOverlayOption.h:47
BMK3DTraceOverlayOption
3D动画轨迹线Option
Definition: BMK3DTraceOverlayOption.h:33
BMK3DTraceOverlayOption::opacity
CGFloat opacity
轨迹绘制的透明度，取值范围[0.0, 1.0], 默认1.0
Definition: BMK3DTraceOverlayOption.h:45
BMK3DTraceOverlayOption::traceType
BMK3DTraceOverlayType traceType
轨迹类型
Definition: BMK3DTraceOverlayOption.h:35