该类定义了一个基本的OverlayView
更多...
#import <BMKOverlayPathView.h>
|
package UIColor * | _fillColor |
|
UIColor * | _strokeColor |
|
CGFloat | _lineWidth |
|
CGLineJoin | _lineJoin |
|
CGLineCap | _lineCap |
|
CGFloat | _miterLimit |
|
CGFloat | _lineDashPhase |
|
NSArray * | _lineDashPattern |
|
CGPathRef | _path |
|
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 |
|
◆ 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对象 |
该类的文档由以下文件生成: