BaiduMap_IOSSDK_v6.6.7_Docs 6.6.7

BMKPrismOverlay.h
浏览该文件的文档.
1 //
2 // BMKPrismOverlay.h
3 // MapComponent
4 //
5 // Created by zhangbaojin on 2021/4/19.
6 // Copyright © 2021 Baidu. All rights reserved.
7 //
8
9 #import "BMKMultiPoint.h"
10 #import "BMKOverlay.h"
11
12 @class BMKBuildInfo;
13
14 NS_ASSUME_NONNULL_BEGIN
16 @interface BMKPrismOverlay : BMKMultiPoint<BMKOverlay>
17
19 @property (nonatomic, assign) float height;
20
25 + (nullable instancetype)prismOverlayWithPoints:(BMKMapPoint *)points count:(NSUInteger)count;
26
31 + (nullable instancetype)prismOverlayWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
32
37 - (BOOL)setPrismOverlayWithPoints:(BMKMapPoint *)points count:(NSUInteger)count;
38
43 - (BOOL)setPrismOverlayWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
44
45 @end
46
47
48 #pragma mark - 绘制地图建筑物
49 @interface BMKPrismOverlay (BuildingAPI)
50
52 @property (nonatomic, strong) BMKBuildInfo *buildInfo;
53
55 @property (nonatomic, assign) float floorHeight;
56
57 @end
58
59 NS_ASSUME_NONNULL_END
BMKMapPoint
地理坐标点，用直角地理坐标表示
Definition: BMKTypes.h:228
BMKPrismOverlay(BuildingAPI)::floorHeight
float floorHeight
楼层高度 (仅对建筑物生效) since 6.5.7
Definition: BMKPrismOverlay.h:55
BMKMultiPoint::points
BMKMapPoint * points
坐标点数组
Definition: BMKMultiPoint.h:27
BMKPrismOverlay::height
float height
高度
Definition: BMKPrismOverlay.h:19
BMKOverlay.h
BMKOverlay-p
该类是地图覆盖物的基类，所有地图的覆盖物需要继承自此类
Definition: BMKOverlay.h:17
BMKBuildInfo
Definition: BMKTypes.h:449
BMKPrismOverlay(BuildingAPI)::buildInfo
BMKBuildInfo * buildInfo
建筑物信息
Definition: BMKPrismOverlay.h:52
BMKPrismOverlay
此类用于定义一个3D棱柱 since 6.4.0
Definition: BMKPrismOverlay.h:16
BMKPrismOverlay(BuildingAPI)
Definition: BMKPrismOverlay.h:49
BMKMultiPoint.h
BMKMultiPoint
该类定义多个点，是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类BMKPolyline,BMKPolygon来实例化
Definition: BMKMultiPoint.h:18