BaiduMap_IOSSDK_v5.2.0_Docs
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 
13 @interface BMKOverlayView : UIView
14 {
15 @package
16 
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 //@private
34 // int geometrylayerID;
35 }
37 - (void)setOverlayGeometryDelegate:(id)delegate;
38 
44 - (id)initWithOverlay:(id <BMKOverlay>)overlay;
45 
47 @property (nonatomic, readonly) id <BMKOverlay> overlay;
48 
54 - (CGPoint)pointForMapPoint:(BMKMapPoint)mapPoint;
55 
61 - (BMKMapPoint)mapPointForPoint:(CGPoint)point;
62 
68 - (CGRect)rectForMapRect:(BMKMapRect)mapRect;
69 
75 - (BMKMapRect)mapRectForRect:(CGRect)rect;
76 
84 - (BOOL)canDrawMapRect:(BMKMapRect)mapRect zoomScale:(BMKZoomScale)zoomScale;
85 
93 - (void)drawMapRect:(BMKMapRect)mapRect zoomScale:(BMKZoomScale)zoomScale inContext:(CGContextRef)context;
94 
99 - (void)setNeedsDisplayInMapRect:(BMKMapRect)mapRect;
100 
110 - (void)renderLinesWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount strokeColor:(UIColor *)strokeColor lineWidth:(CGFloat)lineWidth looped:(BOOL)looped;
119 - (void)renderTexturedLinesWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount lineWidth:(CGFloat)lineWidth textureID:(GLuint)textureID looped:(BOOL)looped;
120 
130 - (void)renderLinesWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount strokeColor:(UIColor *)strokeColor lineWidth:(CGFloat)lineWidth looped:(BOOL)looped lineDashType:(BMKLineDashType)lineDashType;
131 
141 - (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:");
142 
150 -(void)renderTexturedLinesWithPartPoints:(NSArray*)partPt lineWidth:(CGFloat)lineWidth textureIndexs:(NSArray*)textureIndexs isFocus:(BOOL) isFoucs __deprecated_msg("已废弃since 5.0.0,内部无实现");
151 
161 -(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");
162 
174 - (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;
175 
187 - (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;
188 
199 -(void)renderMultiTexturedPolyLineWithPartPoints:(NSArray*)partPt lineWidth:(CGFloat)lineWidth textureIndexs:(NSArray<NSNumber *> *)textureIndexs isFoucs:(BOOL)isFoucs keepScale:(BOOL)keepScale lineJoinType:(BMKLineJoinType)lineJoinType lineCapType:(BMKLineCapType)lineCapType;
200 
208 - (void)renderDashPolyLineWithPoints:(NSArray <NSValue *> *)points lineWidth:(CGFloat)lineWidth strokeColor:(UIColor *)strokeColor lineDashType:(BMKLineDashType)lineDashType;
209 
217 -(void)renderMultiDashPolyLineWithPartPoints:(NSArray*)partPt lineWidth:(CGFloat)lineWidth textureIndexs:(NSArray<NSNumber *> *)textureIndexs lineDashType:(BMKLineDashType)lineDashType;
218 
226 - (void)renderRegionWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount fillColor:(UIColor *)fillColor usingTriangleFan:(BOOL)usingTriangleFan;
227 
235 - (void)renderATRegionWithPoint:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount fillColor:(UIColor *)fillColor usingTriangleFan:(BOOL)usingTriangleFan;
236 
245 - (void)rendeCircleWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount lineWidth:(CGFloat)lineWidth fillColor:(UIColor *)fillColor strokeColor:(UIColor *)strokeColor;
246 
255 - (void)rendePolygonWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount lineWidth:(CGFloat)lineWidth fillColor:(UIColor *)fillColor strokeColor:(UIColor *)strokeColor;
256 
260 - (void)glRender;
261 
263 @property (nonatomic, readonly) GLuint strokeTextureID;
264 
270 - (GLuint)loadStrokeTextureImage:(UIImage *)textureImage;
271 
277 - (BOOL)loadStrokeTextureImages:(NSArray <UIImage *>*)textureImages;
278 
281 @property (nonatomic, strong) NSArray<UIColor *> *colors;
282 
283 @end
284 
285 
该类是地图覆盖物View的基类,提供绘制overlay的接口但本身并无实现,所有地图覆盖物View需要继承自此类
Definition: BMKOverlayView.h:13
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition: BMKOverlay.h:13
矩形,用直角地理坐标表示
Definition: BMKTypes.h:200
GLuint strokeTextureID
关联的纹理对象ID
Definition: BMKOverlayView.h:263
id< BMKOverlay > overlay
关联的overlay对象
Definition: BMKOverlayView.h:47
NSArray< UIColor * > * colors
Definition: BMKOverlayView.h:281
地理坐标点,用直角地理坐标表示
Definition: BMKTypes.h:166