BaiduMap_IOSSDK_v4.2.1_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 
12 @interface BMKOverlayView : UIView
13 {
14 @package
15 
16 
17  id <BMKOverlay> _overlay;
18  BMKMapRect _boundingMapRect;
19  CGAffineTransform _mapTransform;
20  id _geometryDelegate;
21  id _canDrawCache;
22  BOOL keepScale;
23  CFTimeInterval _lastTile;
24  CFRunLoopTimerRef _scheduledScaleTimer;
25 
26  struct {
27  unsigned int keepAlive:1;
28  unsigned int levelCrossFade:1;
29  unsigned int drawingDisabled:1;
30  unsigned int usesTiledLayer:1;
31  } _flags;
32 //@private
33 // int geometrylayerID;
34 }
36 - (void)setOverlayGeometryDelegate:(id)delegate;
37 
43 - (id)initWithOverlay:(id <BMKOverlay>)overlay;
44 
46 @property (nonatomic, readonly) id <BMKOverlay> overlay;
47 
53 - (CGPoint)pointForMapPoint:(BMKMapPoint)mapPoint;
54 
60 - (BMKMapPoint)mapPointForPoint:(CGPoint)point;
61 
67 - (CGRect)rectForMapRect:(BMKMapRect)mapRect;
68 
74 - (BMKMapRect)mapRectForRect:(CGRect)rect;
75 
83 - (BOOL)canDrawMapRect:(BMKMapRect)mapRect zoomScale:(BMKZoomScale)zoomScale;
84 
92 - (void)drawMapRect:(BMKMapRect)mapRect zoomScale:(BMKZoomScale)zoomScale inContext:(CGContextRef)context;
93 
98 - (void)setNeedsDisplayInMapRect:(BMKMapRect)mapRect;
99 
108 - (void)renderLinesWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount strokeColor:(UIColor *)strokeColor lineWidth:(CGFloat)lineWidth looped:(BOOL)looped;
118 - (void)renderLinesWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount strokeColor:(UIColor *)strokeColor lineWidth:(CGFloat)lineWidth looped:(BOOL)looped lineDash:(BOOL)lineDash;
119 
128 - (void)renderTexturedLinesWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount lineWidth:(CGFloat)lineWidth textureID:(GLuint)textureID looped:(BOOL)looped;
129 
140 - (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;
141 
151 //- (void)renderTexturedLinesWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount lineWidth:(CGFloat)lineWidth textureID:(GLuint)textureID strokeColor:(UIColor *)strokeColor tileTexture:(BOOL) tileTexture keepScale:(BOOL) keepscale;
152 
160 -(void)renderTexturedLinesWithPartPoints:(NSArray*)partPt lineWidth:(CGFloat)lineWidth textureIndexs:(NSArray*)textureIndexs isFocus:(BOOL) isFoucs;
161 
171 -(void)renderTexturedLinesWithPartPoints:(NSArray*)partPt lineWidth:(CGFloat)lineWidth textureIndexs:(NSArray*)textureIndexs isFocus:(BOOL) isFoucs tileTexture:(BOOL) tileTexture keepScale:(BOOL) keepScale;
172 
180 - (void)renderRegionWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount fillColor:(UIColor *)fillColor usingTriangleFan:(BOOL)usingTriangleFan;
188 - (void)renderATRegionWithPoint:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount fillColor:(UIColor *)fillColor usingTriangleFan:(BOOL)usingTriangleFan;
189 
193 - (void)glRender;
194 
196 @property (nonatomic, readonly) GLuint strokeTextureID;
197 
203 - (GLuint)loadStrokeTextureImage:(UIImage *)textureImage;
204 
210 - (BOOL)loadStrokeTextureImages:(NSArray *)textureImages;
211 
214 @property (nonatomic, strong) NSArray *colors;
215 
216 @end
217 
218 
NSArray * colors
Definition: BMKOverlayView.h:214
该类是地图覆盖物View的基类,提供绘制overlay的接口但本身并无实现,所有地图覆盖物View需要继承自此类 ...
Definition: BMKOverlayView.h:12
矩形,用直角地理坐标表示
Definition: BMKTypes.h:200
id< BMKOverlay > overlay
关联的overlay对象
Definition: BMKOverlayView.h:46
GLuint strokeTextureID
关联的纹理对象ID
Definition: BMKOverlayView.h:196
地理坐标点,用直角地理坐标表示
Definition: BMKTypes.h:166