BaiduMap_IOSSDK_v4.2.1_Docs
属性 | 所有成员列表
BMKOverlayGLBasicView类 参考

该类定义了一个用opengl绘制的OverlayView的基类,如果需要用gdi进行绘制请继承于BMKOverlayPathView类 更多...

#import <BMKOverlayGLBasicView.h>

类 BMKOverlayGLBasicView 继承关系图:
BMKOverlayView BMKArclineView BMKCircleView BMKPolygonView BMKPolylineView

属性

UIColor * fillColor
 
UIColor * strokeColor
 
CGFloat lineWidth
 画笔宽度,默认为0
 
CGPathRef path
 path对象
 
BOOL lineDash
 是否为虚线样式,默认NO
 
BOOL tileTexture
 是否纹理图片平铺绘制,默认NO
 
BOOL keepScale
 纹理图片是否缩放(tileTexture为YES时生效),默认NO
 
- 属性 继承自 BMKOverlayView
id< BMKOverlay > overlay
 关联的overlay对象
 
GLuint strokeTextureID
 关联的纹理对象ID
 
NSArray * colors
 

额外继承的成员函数

- 构造函数 继承自 BMKOverlayView
(void) - setOverlayGeometryDelegate:
 设置该overlay的GeometryDelegate
 
(id) - initWithOverlay:
 
(CGPoint) - pointForMapPoint:
 
(BMKMapPoint- mapPointForPoint:
 
(CGRect) - rectForMapRect:
 
(BMKMapRect- mapRectForRect:
 
(BOOL) - canDrawMapRect:zoomScale:
 
(void) - drawMapRect:zoomScale:inContext:
 
(void) - setNeedsDisplayInMapRect:
 
(void) - renderLinesWithPoints:pointCount:strokeColor:lineWidth:looped:
 
(void) - renderLinesWithPoints:pointCount:strokeColor:lineWidth:looped:lineDash:
 
(void) - renderTexturedLinesWithPoints:pointCount:lineWidth:textureID:looped:
 
(void) - renderTexturedLinesWithPoints:pointCount:lineWidth:textureID:strokeColor:looped:tileTexture:keepScale:
 
(void) - renderTexturedLinesWithPartPoints:lineWidth:textureIndexs:isFocus:
 
(void) - renderTexturedLinesWithPartPoints:lineWidth:textureIndexs:isFocus:tileTexture:keepScale:
 
(void) - renderRegionWithPoints:pointCount:fillColor:usingTriangleFan:
 
(void) - renderATRegionWithPoint:pointCount:fillColor:usingTriangleFan:
 
(void) - glRender
 
(GLuint) - loadStrokeTextureImage:
 
(BOOL) - loadStrokeTextureImages:
 
- Protected 属性 继承自 BMKOverlayView
package id< BMKOverlay > _overlay
 
BMKMapRect _boundingMapRect
 
CGAffineTransform _mapTransform
 
id _geometryDelegate
 
id _canDrawCache
 
BOOL keepScale
 
CFTimeInterval _lastTile
 
CFRunLoopTimerRef _scheduledScaleTimer
 
struct {
   unsigned int   keepAlive:1
 
   unsigned int   levelCrossFade:1
 
   unsigned int   drawingDisabled:1
 
   unsigned int   usesTiledLayer:1
 
_flags
 

详细描述

该类定义了一个用opengl绘制的OverlayView的基类,如果需要用gdi进行绘制请继承于BMKOverlayPathView类

属性说明

◆ fillColor

- (UIColor*) fillColor
readwritenonatomicstrong

填充颜色 注:请使用 - (UIColor *)initWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha; 初始化UIColor,使用[UIColor ***Color]初始化时,个别case转换成RGB后会有问题

◆ strokeColor

- (UIColor*) strokeColor
readwritenonatomicstrong

画笔颜色 注:请使用 - (UIColor *)initWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha; 初始化UIColor,使用[UIColor ***Color]初始化时,个别case转换成RGB后会有问题


该类的文档由以下文件生成: