BaiduMap_IOSSDK_v6.6.6_Docs 6.6.6

载入中...
搜索中...
未找到
BMKCommonDef.h
浏览该文件的文档.
1//
2// BMKCommonDef.h
3// MapComponent
4//
5// Created by zhaoxiangru on 2024/3/12.
6// Copyright © 2024 Baidu. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
11NS_ASSUME_NONNULL_BEGIN
12
19 typedef enum : NSUInteger {
20 // 相对于基准点的方位
21 BMKLocateCenter = (0x1 << 0), // Center_X & Center_Y
22 BMKLocateTop = (0x1 << 1), // Top_Y & Center_X
23 BMKLocateBottom = (0x1 << 2), // Bottom_Y & Center_X
24 BMKLocateLeft = (0x1 << 3), // Left_X & Center_Y
25 BMKLocateRight = (0x1 << 4), // Right_X & Center_Y
26
27 BMKLocateLeftTop = (BMKLocateLeft | BMKLocateTop), // Left_X & Top_Y
28 BMKLocateLeftBottom = (BMKLocateLeft | BMKLocateBottom), // Left_X & Bottom_Y
29 BMKLocateRightTop = (BMKLocateRight | BMKLocateTop), // Right_X & Top_Y
30 BMKLocateRightBottom = (BMKLocateRight | BMKLocateBottom), // Right_X & Bottom_Y
31
32 // 相对于基准点的 1/2 处
33 BMKLocateHalfTop = (0x1 << 10), // Top_Y/2 & Center_X
34 BMKLocateHalfBottom = (0x1 << 11), // Bottom_Y/2 & Center_X
35 BMKLocateHalfLeft = (0x1 << 12), // Left_X/2 & Center_Y
36 BMKLocateHalfRight = (0x1 << 13), // Right_X/2 & Center_Y
37
38 BMKLocateHalfLeftTop = (BMKLocateHalfLeft | BMKLocateHalfTop), // HalfLeft_X & HalfTop_Y
39 BMKLocateHalfLeftBottom = (BMKLocateHalfLeft | BMKLocateHalfBottom), // HalfLeft_X & HalfBottom_Y
40 BMKLocateHalfRightTop = (BMKLocateHalfRight | BMKLocateHalfTop), // HalfRight_X & HalfTop_Y
41 BMKLocateHalfRightBottom = (BMKLocateHalfRight | BMKLocateHalfBottom), // HalfRight_X & HalfBottom_Y
42
43 // 与基准点对齐
44 BMKLocateAlignTop = (0x1 << 20), // the same Top_Y as Anchor
45 BMKLocateAlignBottom = (0x1 << 21), // the same Bottom_Y as Anchor
46 BMKLocateAlignLeft = (0x1 << 22), // the same Left_X as Anchor
47 BMKLocateAlignRight = (0x1 << 23), // the same Right_X as Anchor
48
49 BMKLocateAlignLeftTop = (BMKLocateAlignLeft | BMKLocateAlignTop), // AlignLeft_X & AlignTop_Y
50 BMKLocateAlignLeftBottom = (BMKLocateAlignLeft | BMKLocateAlignBottom), // AlignLeft_X & AlignBottom_Y
51 BMKLocateAlignRightTop = (BMKLocateAlignRight | BMKLocateAlignTop), // AlignRight_X & AlignTop_Y
52 BMKLocateAlignRightBottom = (BMKLocateAlignRight | BMKLocateAlignBottom), // AlignRight_X & AlignBottom_Y
53
54// BMKLocateAlignAuto = (0x1 << 30),
55} BMKLocate;
56
57
64 typedef enum : NSUInteger {
65 BMKCollisionNotCollide = (0), // 不参与碰撞
66 BMKCollisionAlwaysShow = (0x1 << 0), // 参与碰撞，但强制显示
67 BMKCollisionHideByPriority = (0x1 << 1), // 参与碰撞，根据碰撞优先级决定是否显示
68 BMKCollisionWithInner = (0x1 << 2), // BmLayer内部点碰撞
69 BMKCollisionWithBasePoi = (0x1 << 3), // BmLayer与底图的POI进行碰撞，碰掉底图的POI
70 // BmLayer内部的点先碰撞，再与底图的POI进行碰撞，最后碰掉底图的POI
71 BMKCollisionInnerAndBasePoi = (BMKCollisionWithInner | BMKCollisionWithBasePoi),
72 BMKDodgeWithInner = (0x1 << 4), // BmLayer内部点避让
73// BMKDodgeWithBasePoi = (0x1 << 5), // BmLayer与底图的POI进行避让（暂未实现）
74 // BmLayer内部点先避让，再与底图的POI进行碰撞，碰掉底图的POI（暂未实现）
75// BMKDodgeInnerAndBasePoi = (bmkMapDodgeWithInner | bmkMapDodgeWithBasePoi),
76 BMKCollisionExceptSelf = (0x1 << 6), // 当前要素不参与碰撞, marker和richview可分别设置为不参与碰撞
77// BMKCollisionBetweenBmLayer = (0x1 << 7), // 仅BmLayer之间的POI碰，不与底图碰（暂未实现）
78// BMKCollisionWithBasePoiByPriority = (0x1 << 8), // 当前BmLayer与底图的POI按优先级碰（暂未实现）
79 BMKCollisionWithAllLayersByPriority = (0x1 << 9), // 所有图层都碰撞，按优先级碰
80} BMKCollisionBehavior;
81
85 typedef enum : NSUInteger {
86 BMKAnimationTrackNone = (0x00),
87 BMKAnimationTrackX = (0x01 << 0), // 跟随X方向
88 BMKAnimationTrackY = (0x01 << 1), // 跟随Y方向
89 BMKAnimationTrackXY = (BMKAnimationTrackX | BMKAnimationTrackY), // 跟随(X, Y)
90 BMKAnimationTrackForward = (0x01 << 5), // 线段的Forward，而不是行进的Forward
91 BMKAnimationTrackBackward = (0x01 << 6), // 线段的Backward，而不是行进的Backward
92} BMKAnimationTrack;
93
97 typedef enum : NSUInteger {
98 // 二者能只能设置其一
99 BMKRotateAnmination = (0x1 << 0),
100 BMKRotateItem = (0x1 << 1),
102 // 二者能只能设置其一
103 BMKRotateScreenUpper = (0x1 << 2),
104 BMKRotateGeoNorth = (0x1 << 3),
106 // 二者能只能设置其一
107 BMKRotateFlipNo = (0x1 << 4),
108 BMKRotateFlipUpper = (0x1 << 5),
110 // Default
111 BMKRotateFreeze = BMKRotateAnmination | BMKRotateScreenUpper | BMKRotateFlipNo,
112} BMKRotateFeature;
113
117 typedef enum : NSUInteger {
118 BMKFollowMapRotateAxisNone = (0x00),
119 BMKFollowMapRotateAxisPitch = (0x1 << 0),
120 BMKFollowMapRotateAxisYaw = (0x1 << 1),
121} BMKRotateAxis;
122
123
124NS_ASSUME_NONNULL_END
BMKAnimationTrack
BMKAnimationTrack
Definition BMKCommonDef.h:85
BMKAnimationTrackForward
@ BMKAnimationTrackForward
Definition BMKCommonDef.h:90
BMKAnimationTrackY
@ BMKAnimationTrackY
Definition BMKCommonDef.h:88
BMKAnimationTrackXY
@ BMKAnimationTrackXY
Definition BMKCommonDef.h:89
BMKAnimationTrackX
@ BMKAnimationTrackX
Definition BMKCommonDef.h:87
BMKAnimationTrackNone
@ BMKAnimationTrackNone
Definition BMKCommonDef.h:86
BMKAnimationTrackBackward
@ BMKAnimationTrackBackward
Definition BMKCommonDef.h:91
BMKLocate
BMKLocate
Definition BMKCommonDef.h:19
BMKLocateAlignTop
@ BMKLocateAlignTop
Definition BMKCommonDef.h:44
BMKLocateRight
@ BMKLocateRight
Definition BMKCommonDef.h:25
BMKLocateHalfLeftBottom
@ BMKLocateHalfLeftBottom
Definition BMKCommonDef.h:39
BMKLocateHalfBottom
@ BMKLocateHalfBottom
Definition BMKCommonDef.h:34
BMKLocateLeftBottom
@ BMKLocateLeftBottom
Definition BMKCommonDef.h:28
BMKLocateBottom
@ BMKLocateBottom
Definition BMKCommonDef.h:23
BMKLocateAlignLeftBottom
@ BMKLocateAlignLeftBottom
Definition BMKCommonDef.h:50
BMKLocateRightTop
@ BMKLocateRightTop
Definition BMKCommonDef.h:29
BMKLocateHalfLeft
@ BMKLocateHalfLeft
Definition BMKCommonDef.h:35
BMKLocateCenter
@ BMKLocateCenter
Definition BMKCommonDef.h:21
BMKLocateAlignLeftTop
@ BMKLocateAlignLeftTop
Definition BMKCommonDef.h:49
BMKLocateAlignRightBottom
@ BMKLocateAlignRightBottom
Definition BMKCommonDef.h:52
BMKLocateHalfRightBottom
@ BMKLocateHalfRightBottom
Definition BMKCommonDef.h:41
BMKLocateHalfRightTop
@ BMKLocateHalfRightTop
Definition BMKCommonDef.h:40
BMKLocateAlignLeft
@ BMKLocateAlignLeft
Definition BMKCommonDef.h:46
BMKLocateHalfLeftTop
@ BMKLocateHalfLeftTop
Definition BMKCommonDef.h:38
BMKLocateAlignRightTop
@ BMKLocateAlignRightTop
Definition BMKCommonDef.h:51
BMKLocateLeft
@ BMKLocateLeft
Definition BMKCommonDef.h:24
BMKLocateLeftTop
@ BMKLocateLeftTop
Definition BMKCommonDef.h:27
BMKLocateAlignBottom
@ BMKLocateAlignBottom
Definition BMKCommonDef.h:45
BMKLocateHalfTop
@ BMKLocateHalfTop
Definition BMKCommonDef.h:33
BMKLocateTop
@ BMKLocateTop
Definition BMKCommonDef.h:22
BMKLocateHalfRight
@ BMKLocateHalfRight
Definition BMKCommonDef.h:36
BMKLocateRightBottom
@ BMKLocateRightBottom
Definition BMKCommonDef.h:30
BMKLocateAlignRight
@ BMKLocateAlignRight
Definition BMKCommonDef.h:47
BMKRotateFeature
BMKRotateFeature
Definition BMKCommonDef.h:97
BMKRotateFreeze
@ BMKRotateFreeze
Definition BMKCommonDef.h:111
BMKRotateFlipNo
@ BMKRotateFlipNo
Definition BMKCommonDef.h:107
BMKRotateAnmination
@ BMKRotateAnmination
Definition BMKCommonDef.h:99
BMKRotateScreenUpper
@ BMKRotateScreenUpper
Definition BMKCommonDef.h:103
BMKRotateItem
@ BMKRotateItem
Definition BMKCommonDef.h:100
BMKRotateGeoNorth
@ BMKRotateGeoNorth
Definition BMKCommonDef.h:104
BMKRotateFlipUpper
@ BMKRotateFlipUpper
Definition BMKCommonDef.h:108
BMKRotateAxis
BMKRotateAxis
Definition BMKCommonDef.h:117
BMKFollowMapRotateAxisPitch
@ BMKFollowMapRotateAxisPitch
Definition BMKCommonDef.h:119
BMKFollowMapRotateAxisNone
@ BMKFollowMapRotateAxisNone
Definition BMKCommonDef.h:118
BMKFollowMapRotateAxisYaw
@ BMKFollowMapRotateAxisYaw
Definition BMKCommonDef.h:120
BMKCollisionBehavior
BMKCollisionBehavior
Definition BMKCommonDef.h:64
BMKCollisionNotCollide
@ BMKCollisionNotCollide
Definition BMKCommonDef.h:65
BMKCollisionWithBasePoi
@ BMKCollisionWithBasePoi
Definition BMKCommonDef.h:69
BMKCollisionAlwaysShow
@ BMKCollisionAlwaysShow
Definition BMKCommonDef.h:66
BMKCollisionWithInner
@ BMKCollisionWithInner
Definition BMKCommonDef.h:68
BMKCollisionExceptSelf
@ BMKCollisionExceptSelf
Definition BMKCommonDef.h:76
BMKDodgeWithInner
@ BMKDodgeWithInner
Definition BMKCommonDef.h:72
BMKCollisionWithAllLayersByPriority
@ BMKCollisionWithAllLayersByPriority
Definition BMKCommonDef.h:79
BMKCollisionHideByPriority
@ BMKCollisionHideByPriority
Definition BMKCommonDef.h:67
BMKCollisionInnerAndBasePoi
@ BMKCollisionInnerAndBasePoi
Definition BMKCommonDef.h:71