BaiduMap_IOSSDK_v7.0.0_Docs 7.0.0

BMKOverlayView.h
浏览该文件的文档.
1 /*
2 * BMKOverlayView.h
3 * BMapKit
4 *
5 * Copyright 2011 Baidu Inc. All rights reserved.
6 *
7 */
8 #import <UIKit/UIKit.h>
9 #import "BMKOverlay.h"
10 #import "BMKLineDrawType.h"
11
12 NS_ASSUME_NONNULL_BEGIN
14 @interface BMKOverlayView : UIView
15 {
16 @package
17
18 id <BMKOverlay> _overlay;
19 BMKMapRect _boundingMapRect;
20 CGAffineTransform _mapTransform;
21 id _geometryDelegate;
22 id _canDrawCache;
23 BOOL keepScale;
24 CFTimeInterval _lastTile;
25 CFRunLoopTimerRef _scheduledScaleTimer;
26
27 struct {
28 unsigned int keepAlive:1;
29 unsigned int levelCrossFade:1;
30 unsigned int drawingDisabled:1;
31 unsigned int usesTiledLayer:1;
32 } _flags;
33 }
34
38 - (nullable instancetype)initWithOverlay:(id <BMKOverlay>)overlay;
39
41 @property (nonatomic, readonly) id <BMKOverlay> overlay;
42
44 @property (nonatomic, readonly) GLuint strokeTextureID;
45
49 - (GLuint)loadStrokeTextureImage:(UIImage *)textureImage __deprecated_msg("已废弃since 6.5.0，请使用BMKOverlayGLBasicView中textureImage字段");
50
54 - (BOOL)loadStrokeTextureImages:(NSArray<UIImage *> *)textureImages __deprecated_msg("已废弃since 6.5.0，请使用BMKMultiTexturePolylineView中textureImages字段");
55
57 - (void)setOverlayGeometryDelegate:(id)delegate;
58
64 - (CGPoint)pointForMapPoint:(BMKMapPoint)mapPoint;
65
71 - (BMKMapPoint)mapPointForPoint:(CGPoint)point;
72
78 - (CGRect)rectForMapRect:(BMKMapRect)mapRect;
79
85 - (BMKMapRect)mapRectForRect:(CGRect)rect;
86
94 - (BOOL)canDrawMapRect:(BMKMapRect)mapRect zoomScale:(BMKZoomScale)zoomScale;
95
103 - (void)drawMapRect:(BMKMapRect)mapRect zoomScale:(BMKZoomScale)zoomScale inContext:(CGContextRef)context;
104
109 - (void)setNeedsDisplayInMapRect:(BMKMapRect)mapRect;
110
111 #pragma mark - since 6.0 render函数无效
112
121 - (void)renderLinesWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount strokeColor:(UIColor *)strokeColor lineWidth:(CGFloat)lineWidth looped:(BOOL)looped __deprecated_msg("已废弃since 6.0.0，内部无实现");
130 - (void)renderTexturedLinesWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount lineWidth:(CGFloat)lineWidth textureID:(GLuint)textureID looped:(BOOL)looped __deprecated_msg("已废弃since 6.0.0，内部无实现");
131
141 - (void)renderLinesWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount strokeColor:(UIColor *)strokeColor lineWidth:(CGFloat)lineWidth looped:(BOOL)looped lineDashType:(BMKLineDashType)lineDashType __deprecated_msg("已废弃since 6.0.0，内部无实现");
142
152 - (void)renderLinesWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount strokeColor:(UIColor *)strokeColor lineWidth:(CGFloat)lineWidth looped:(BOOL)looped lineDash:(BOOL)lineDash __deprecated_msg("已废弃since 5.0.0，内部无实现，请使用renderLinesWithPoints: pointCount: strokeColor: lineWidth:looped: lineDashType:");
153
161 -(void)renderTexturedLinesWithPartPoints:(NSArray*)partPt lineWidth:(CGFloat)lineWidth textureIndexs:(NSArray*)textureIndexs isFocus:(BOOL) isFoucs __deprecated_msg("已废弃since 5.0.0，内部无实现");
162
172 -(void)renderTexturedLinesWithPartPoints:(NSArray*)partPt lineWidth:(CGFloat)lineWidth textureIndexs:(NSArray*)textureIndexs isFocus:(BOOL) isFoucs tileTexture:(BOOL) tileTexture keepScale:(BOOL) keepscale __deprecated_msg("已废弃since 5.0.0，内部无实现，请使用renderMultiTexturedPolyLine");
173
185 - (void)renderTexturedLinesWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount lineWidth:(CGFloat)lineWidth textureID:(GLuint)textureID strokeColor:(UIColor *)strokeColor looped:(BOOL)looped tileTexture:(BOOL) tileTexture keepScale:(BOOL) keepScale __deprecated_msg("已废弃since 6.0.0，内部无实现");
186
198 - (void)renderTexturedPolyLineWithPoints:(NSArray <NSValue *> *)points lineWidth:(CGFloat)lineWidth textureID:(GLuint)textureID strokeColor:(UIColor *)strokeColor isFoucs:(BOOL)isFoucs keepScale:(BOOL)keepScale lineJoinType:(BMKLineJoinType)lineJoinType lineCapType:(BMKLineCapType)lineCapType __deprecated_msg("已废弃since 6.0.0，内部无实现");
199
210 -(void)renderMultiTexturedPolyLineWithPartPoints:(NSArray*)partPt lineWidth:(CGFloat)lineWidth textureIndexs:(NSArray<NSNumber *> *)textureIndexs isFoucs:(BOOL)isFoucs keepScale:(BOOL)keepScale lineJoinType:(BMKLineJoinType)lineJoinType lineCapType:(BMKLineCapType)lineCapType __deprecated_msg("已废弃since 6.0.0，内部无实现");
211
219 - (void)renderDashPolyLineWithPoints:(NSArray <NSValue *> *)points lineWidth:(CGFloat)lineWidth strokeColor:(UIColor *)strokeColor lineDashType:(BMKLineDashType)lineDashType __deprecated_msg("已废弃since 6.0.0，内部无实现");
220
228 -(void)renderMultiDashPolyLineWithPartPoints:(NSArray*)partPt lineWidth:(CGFloat)lineWidth textureIndexs:(NSArray<NSNumber *> *)textureIndexs lineDashType:(BMKLineDashType)lineDashType __deprecated_msg("已废弃since 6.0.0，内部无实现");
229
237 - (void)renderRegionWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount fillColor:(UIColor *)fillColor usingTriangleFan:(BOOL)usingTriangleFan __deprecated_msg("已废弃since 6.0.0，内部无实现");
238
246 - (void)renderATRegionWithPoint:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount fillColor:(UIColor *)fillColor usingTriangleFan:(BOOL)usingTriangleFan __deprecated_msg("已废弃since 6.0.0，内部无实现");
247
256 - (void)rendeCircleWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount lineWidth:(CGFloat)lineWidth fillColor:(UIColor *)fillColor strokeColor:(UIColor *)strokeColor __deprecated_msg("已废弃since 6.0.0，内部无实现");
257
266 - (void)rendePolygonWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount lineWidth:(CGFloat)lineWidth fillColor:(UIColor *)fillColor strokeColor:(UIColor *)strokeColor __deprecated_msg("已废弃since 6.0.0，内部无实现");
267
271 - (void)glRender;
272
273 @end
274 NS_ASSUME_NONNULL_END
275
BMKOverlayView::overlay
id< BMKOverlay > overlay
关联的overlay对象
Definition: BMKOverlayView.h:41
BMKOverlayView::levelCrossFade
unsigned int levelCrossFade
Definition: BMKOverlayView.h:29
BMKMapPoint
地理坐标点，用直角地理坐标表示
Definition: BMKTypes.h:229
BMKOverlayView::_canDrawCache
id _canDrawCache
Definition: BMKOverlayView.h:22
BMKOverlayView::_boundingMapRect
BMKMapRect _boundingMapRect
Definition: BMKOverlayView.h:19
BMKLineDrawType.h
BMKOverlay.h
BMKOverlay-p
该类是地图覆盖物的基类，所有地图的覆盖物需要继承自此类
Definition: BMKOverlay.h:17
BMKOverlayView::usesTiledLayer
unsigned int usesTiledLayer
Definition: BMKOverlayView.h:31
BMKLineJoinType
BMKLineJoinType
line拐角处理方式（不支持虚线）
Definition: BMKLineDrawType.h:13
BMKOverlayView::_lastTile
CFTimeInterval _lastTile
Definition: BMKOverlayView.h:24
BMKOverlayView::drawingDisabled
unsigned int drawingDisabled
Definition: BMKOverlayView.h:30
BMKZoomScale
CGFloat BMKZoomScale
地图缩放比例
Definition: BMKTypes.h:350
BMKLineDashType
BMKLineDashType
虚线绘制样式
Definition: BMKLineDrawType.h:32
BMKOverlayView::_mapTransform
CGAffineTransform _mapTransform
Definition: BMKOverlayView.h:20
BMKOverlayView::_flags
struct BMKOverlayView::@0 _flags
BMKOverlayView::keepAlive
unsigned int keepAlive
Definition: BMKOverlayView.h:28
BMKOverlayView::strokeTextureID
GLuint strokeTextureID
关联的纹理对象ID
Definition: BMKOverlayView.h:44
BMKMapRect
矩形，用直角地理坐标表示
Definition: BMKTypes.h:285
-[BMKOverlayView glRender]
void glRender()
BMKOverlayView::_geometryDelegate
id _geometryDelegate
Definition: BMKOverlayView.h:21
BMKLineCapType
BMKLineCapType
line头尾处理方式(不支持虚线)
Definition: BMKLineDrawType.h:23
BMKOverlayView
该类是地图覆盖物View的基类，提供绘制overlay的接口但本身并无实现，所有地图覆盖物View需要继承自此类
Definition: BMKOverlayView.h:15
BMKOverlayView::keepScale
BOOL keepScale
Definition: BMKOverlayView.h:23
BMKOverlayView::_scheduledScaleTimer
CFRunLoopTimerRef _scheduledScaleTimer
Definition: BMKOverlayView.h:25