BaiduMap_IOSSDK_v6.6.3_Docs  6.6.3
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 
11 NS_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
29  BMKLocateRightTop = (BMKLocateRight | BMKLocateTop), // Right_X & Top_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
40  BMKLocateHalfRightTop = (BMKLocateHalfRight | BMKLocateHalfTop), // HalfRight_X & HalfTop_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
51  BMKLocateAlignRightTop = (BMKLocateAlignRight | BMKLocateAlignTop), // AlignRight_X & AlignTop_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
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), // 所有图层都碰撞,按优先级碰
81 
85 typedef enum : NSUInteger {
87  BMKAnimationTrackX = (0x01 << 0), // 跟随X方向
88  BMKAnimationTrackY = (0x01 << 1), // 跟随Y方向
90  BMKAnimationTrackForward = (0x01 << 5), // 线段的Forward,而不是行进的Forward
91  BMKAnimationTrackBackward = (0x01 << 6), // 线段的Backward,而不是行进的Backward
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
113 
117 typedef enum : NSUInteger {
121 } BMKRotateAxis;
122 
123 
124 NS_ASSUME_NONNULL_END
BMKCollisionAlwaysShow
@ BMKCollisionAlwaysShow
Definition: BMKCommonDef.h:66
BMKCollisionHideByPriority
@ BMKCollisionHideByPriority
Definition: BMKCommonDef.h:67
BMKLocateTop
@ BMKLocateTop
Definition: BMKCommonDef.h:22
BMKAnimationTrackXY
@ BMKAnimationTrackXY
Definition: BMKCommonDef.h:89
BMKCollisionWithAllLayersByPriority
@ BMKCollisionWithAllLayersByPriority
Definition: BMKCommonDef.h:79
BMKLocateLeftTop
@ BMKLocateLeftTop
Definition: BMKCommonDef.h:27
BMKLocateAlignRightTop
@ BMKLocateAlignRightTop
Definition: BMKCommonDef.h:51
BMKRotateFeature
BMKRotateFeature
Definition: BMKCommonDef.h:97
BMKFollowMapRotateAxisYaw
@ BMKFollowMapRotateAxisYaw
Definition: BMKCommonDef.h:120
BMKCollisionWithBasePoi
@ BMKCollisionWithBasePoi
Definition: BMKCommonDef.h:69
BMKFollowMapRotateAxisNone
@ BMKFollowMapRotateAxisNone
Definition: BMKCommonDef.h:118
BMKRotateFlipUpper
@ BMKRotateFlipUpper
Definition: BMKCommonDef.h:108
BMKRotateFlipNo
@ BMKRotateFlipNo
Definition: BMKCommonDef.h:107
BMKLocateBottom
@ BMKLocateBottom
Definition: BMKCommonDef.h:23
BMKLocateLeftBottom
@ BMKLocateLeftBottom
Definition: BMKCommonDef.h:28
BMKLocateHalfLeftBottom
@ BMKLocateHalfLeftBottom
Definition: BMKCommonDef.h:39
BMKRotateAnmination
@ BMKRotateAnmination
Definition: BMKCommonDef.h:99
BMKFollowMapRotateAxisPitch
@ BMKFollowMapRotateAxisPitch
Definition: BMKCommonDef.h:119
BMKLocateCenter
@ BMKLocateCenter
Definition: BMKCommonDef.h:21
BMKLocateHalfRight
@ BMKLocateHalfRight
Definition: BMKCommonDef.h:36
BMKCollisionWithInner
@ BMKCollisionWithInner
Definition: BMKCommonDef.h:68
BMKAnimationTrackX
@ BMKAnimationTrackX
Definition: BMKCommonDef.h:87
BMKRotateScreenUpper
@ BMKRotateScreenUpper
Definition: BMKCommonDef.h:103
BMKLocateHalfBottom
@ BMKLocateHalfBottom
Definition: BMKCommonDef.h:34
BMKLocateHalfRightBottom
@ BMKLocateHalfRightBottom
Definition: BMKCommonDef.h:41
BMKRotateAxis
BMKRotateAxis
Definition: BMKCommonDef.h:117
BMKRotateItem
@ BMKRotateItem
Definition: BMKCommonDef.h:100
BMKLocateAlignLeft
@ BMKLocateAlignLeft
Definition: BMKCommonDef.h:46
BMKCollisionInnerAndBasePoi
@ BMKCollisionInnerAndBasePoi
Definition: BMKCommonDef.h:71
BMKLocateHalfRightTop
@ BMKLocateHalfRightTop
Definition: BMKCommonDef.h:40
BMKLocateHalfLeft
@ BMKLocateHalfLeft
Definition: BMKCommonDef.h:35
BMKLocateAlignBottom
@ BMKLocateAlignBottom
Definition: BMKCommonDef.h:45
BMKLocateHalfLeftTop
@ BMKLocateHalfLeftTop
Definition: BMKCommonDef.h:38
BMKLocate
BMKLocate
Definition: BMKCommonDef.h:19
BMKAnimationTrack
BMKAnimationTrack
Definition: BMKCommonDef.h:85
BMKAnimationTrackForward
@ BMKAnimationTrackForward
Definition: BMKCommonDef.h:90
BMKCollisionNotCollide
@ BMKCollisionNotCollide
Definition: BMKCommonDef.h:65
BMKLocateAlignLeftBottom
@ BMKLocateAlignLeftBottom
Definition: BMKCommonDef.h:50
BMKLocateLeft
@ BMKLocateLeft
Definition: BMKCommonDef.h:24
BMKAnimationTrackY
@ BMKAnimationTrackY
Definition: BMKCommonDef.h:88
BMKAnimationTrackNone
@ BMKAnimationTrackNone
Definition: BMKCommonDef.h:86
BMKDodgeWithInner
@ BMKDodgeWithInner
Definition: BMKCommonDef.h:72
BMKLocateRightTop
@ BMKLocateRightTop
Definition: BMKCommonDef.h:29
BMKRotateFreeze
@ BMKRotateFreeze
Definition: BMKCommonDef.h:111
BMKLocateAlignRightBottom
@ BMKLocateAlignRightBottom
Definition: BMKCommonDef.h:52
BMKRotateGeoNorth
@ BMKRotateGeoNorth
Definition: BMKCommonDef.h:104
BMKLocateAlignLeftTop
@ BMKLocateAlignLeftTop
Definition: BMKCommonDef.h:49
BMKLocateHalfTop
@ BMKLocateHalfTop
Definition: BMKCommonDef.h:33
BMKCollisionBehavior
BMKCollisionBehavior
Definition: BMKCommonDef.h:64
BMKLocateRight
@ BMKLocateRight
Definition: BMKCommonDef.h:25
BMKLocateAlignRight
@ BMKLocateAlignRight
Definition: BMKCommonDef.h:47
BMKLocateAlignTop
@ BMKLocateAlignTop
Definition: BMKCommonDef.h:44
BMKLocateRightBottom
@ BMKLocateRightBottom
Definition: BMKCommonDef.h:30
BMKAnimationTrackBackward
@ BMKAnimationTrackBackward
Definition: BMKCommonDef.h:91
BMKCollisionExceptSelf
@ BMKCollisionExceptSelf
Definition: BMKCommonDef.h:76