该类定义了一个基本的OverlayView
更多...
#include <BMKOverlayPathView.h>
◆ 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
生成要绘制的path,子类需要重写此函数,并且对path属性赋值:self.path = newPath;
◆ fillPath:inContext:
- (void) fillPath: |
|
(CGPathRef) | path |
inContext: |
|
(CGContextRef) | context |
填充path
- 参数
-
path | 要绘制的CGPath |
context | CGContext对象 |
◆ 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
◆ _lineDashPattern
- (NSArray*) _lineDashPattern |
|
protected |
◆ _lineDashPhase
- (CGFloat) _lineDashPhase |
|
protected |
◆ _lineJoin
◆ _lineWidth
◆ _miterLimit
◆ _path
◆ _strokeColor
- (UIColor*) _strokeColor |
|
protected |
◆ fillColor
◆ lineCap
LineCap,默认为kCGLineCapRound
◆ lineDashPattern
- (NSArray*) lineDashPattern |
|
readwriteatomiccopy |
lineDashPattern,一个NSNumbers的数组,默认为nil
◆ lineDashPhase
- (CGFloat) lineDashPhase |
|
readwriteatomic |
◆ lineJoin
LineJoin,默认为kCGLineJoinRound
◆ lineWidth
◆ miterLimit
miterLimit,在样式为kCGLineJoinMiter时有效,默认为10
◆ path
◆ strokeColor
该类的文档由以下文件生成: