BaiduMap_IOSSDK_v7.1.0_Docs 7.1.0

构造函数 | Protected 属性 | 属性 | 所有成员列表
BMKOverlayPathView类 参考

该类定义了一个基本的OverlayView 更多...

`#import <BMKOverlayPathView.h>`

类 BMKOverlayPathView 继承关系图:

## 构造函数
(void) | - createPath
(void) | - invalidatePath
(void) | - applyStrokePropertiesToContext:atZoomScale:
(void) | - applyFillPropertiesToContext:atZoomScale:
(void) | - strokePath:inContext:
(void) | - fillPath:inContext:
构造函数 继承自 BMKOverlayView
(nullable instancetype) | - initWithOverlay:
(GLuint) | - loadStrokeTextureImage:
(BOOL) | - loadStrokeTextureImages:
(void) | - setOverlayGeometryDelegate:
| 设置该overlay的GeometryDelegate 更多...
(CGPoint) | - pointForMapPoint:
(BMKMapPoint) | - mapPointForPoint:
(CGRect) | - rectForMapRect:
(BMKMapRect) | - mapRectForRect:
(BOOL) | - canDrawMapRect:zoomScale:
(void) | - drawMapRect:zoomScale:inContext:
(void) | - setNeedsDisplayInMapRect:
(void) | - renderLinesWithPoints:pointCount:strokeColor:lineWidth:looped:
(void) | - renderTexturedLinesWithPoints:pointCount:lineWidth:textureID:looped:
(void) | - renderLinesWithPoints:pointCount:strokeColor:lineWidth:looped:lineDashType:
(void) | - renderLinesWithPoints:pointCount:strokeColor:lineWidth:looped:lineDash:
(void) | - renderTexturedLinesWithPartPoints:lineWidth:textureIndexs:isFocus:
(void) | - renderTexturedLinesWithPartPoints:lineWidth:textureIndexs:isFocus:tileTexture:keepScale:
(void) | - renderTexturedLinesWithPoints:pointCount:lineWidth:textureID:strokeColor:looped:tileTexture:keepScale:
(void) | - renderTexturedPolyLineWithPoints:lineWidth:textureID:strokeColor:isFoucs:keepScale:lineJoinType:lineCapType:
(void) | - renderMultiTexturedPolyLineWithPartPoints:lineWidth:textureIndexs:isFoucs:keepScale:lineJoinType:lineCapType:
(void) | - renderDashPolyLineWithPoints:lineWidth:strokeColor:lineDashType:
(void) | - renderMultiDashPolyLineWithPartPoints:lineWidth:textureIndexs:lineDashType:
(void) | - renderRegionWithPoints:pointCount:fillColor:usingTriangleFan:
(void) | - renderATRegionWithPoint:pointCount:fillColor:usingTriangleFan:
(void) | - rendeCircleWithPoints:pointCount:lineWidth:fillColor:strokeColor:
(void) | - rendePolygonWithPoints:pointCount:lineWidth:fillColor:strokeColor:
(void) | - glRender

## Protected 属性
package UIColor * | _fillColor
UIColor * | _strokeColor
CGFloat | _lineWidth
CGLineJoin | _lineJoin
CGLineCap | _lineCap
CGFloat | _miterLimit
CGFloat | _lineDashPhase
NSArray * | _lineDashPattern
CGPathRef | _path
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

## 属性
UIColor * | fillColor
| 填充颜色 更多...
UIColor * | strokeColor
| 画笔颜色 更多...
CGFloat | lineWidth
| 画笔宽度，默认为0 更多...
CGLineJoin | lineJoin
| LineJoin，默认为kCGLineJoinRound 更多...
CGLineCap | lineCap
| LineCap，默认为kCGLineCapRound 更多...
CGFloat | miterLimit
| miterLimit,在样式为kCGLineJoinMiter时有效，默认为10 更多...
CGFloat | lineDashPhase
| lineDashPhase, 默认为0 更多...
NSArray * | lineDashPattern
| lineDashPattern,一个NSNumbers的数组，默认为nil 更多...
CGPathRef | path
| path对象 更多...
属性 继承自 BMKOverlayView
id< BMKOverlay > | overlay
| 关联的overlay对象 更多...
GLuint | strokeTextureID
| 关联的纹理对象ID 更多...

## 详细描述

该类定义了一个基本的OverlayView

## 函数文档

## ◆ applyFillPropertiesToContext:atZoomScale:

- (void) applyFillPropertiesToContext: |  | (CGContextRef) | context
atZoomScale: |  | (BMKZoomScale) | zoomScale

应用画刷属性

参数

  context | CGContext对象
  zoomScale | 当前的zoomScale

## ◆ applyStrokePropertiesToContext:atZoomScale:

- (void) applyStrokePropertiesToContext: |  | (CGContextRef) | context
atZoomScale: |  | (BMKZoomScale) | zoomScale

应用画笔属性

参数

  context | CGContext对象
  zoomScale | 当前的zoomScale

## ◆ createPath

- (void) createPath |  |  |

生成要绘制的path，子类需要重写此函数，并且对path属性赋值：self.path = newPath;

## ◆ fillPath:inContext:

- (void) fillPath: |  | (CGPathRef) | path
inContext: |  | (CGContextRef) | context

填充path

参数

  path | 要绘制的CGPath
  context | CGContext对象

## ◆ invalidatePath

- (void) invalidatePath |  |  |

刷新path，调用该函数将会使已经缓存的path失效，将会重新调用createPath来生成新的path对象

## ◆ strokePath:inContext:

- (void) strokePath: |  | (CGPathRef) | path
inContext: |  | (CGContextRef) | context

绘制path

参数

  path | 要绘制的CGPath
  context | CGContext对象

## 类成员变量说明

## ◆ _fillColor

- (package UIColor*) _fillColor
| protected

## ◆ _lineCap

- (CGLineCap) _lineCap
| protected

## ◆ _lineDashPattern

- (NSArray*) _lineDashPattern
| protected

## ◆ _lineDashPhase

- (CGFloat) _lineDashPhase
| protected

## ◆ _lineJoin

- (CGLineJoin) _lineJoin
| protected

## ◆ _lineWidth

- (CGFloat) _lineWidth
| protected

## ◆ _miterLimit

- (CGFloat) _miterLimit
| protected

## ◆ _path

- (CGPathRef) _path
| protected

## ◆ _strokeColor

- (UIColor*) _strokeColor
| protected

## 属性说明

## ◆ fillColor

- (UIColor*) fillColor
| readwriteatomicstrong

填充颜色

## ◆ lineCap

- (CGLineCap) lineCap
| readwriteatomic

LineCap，默认为kCGLineCapRound

## ◆ lineDashPattern

- (NSArray*) lineDashPattern
| readwriteatomiccopy

lineDashPattern,一个NSNumbers的数组，默认为nil

## ◆ lineDashPhase

- (CGFloat) lineDashPhase
| readwriteatomic

lineDashPhase, 默认为0

## ◆ lineJoin

- (CGLineJoin) lineJoin
| readwriteatomic

LineJoin，默认为kCGLineJoinRound

## ◆ lineWidth

- (CGFloat) lineWidth
| readwriteatomic

画笔宽度，默认为0

## ◆ miterLimit

- (CGFloat) miterLimit
| readwriteatomic

miterLimit,在样式为kCGLineJoinMiter时有效，默认为10

## ◆ path

- (CGPathRef) path
| readwriteatomic

path对象

## ◆ strokeColor

- (UIColor*) strokeColor
| readwriteatomicstrong

画笔颜色

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

- BaiduMapAPI_Map.framework/Headers/BMKOverlayPathView.h