BaiduMap_IOSSDK_v4.2.1_Docs
BMKOverlayPathView.h
1 /*
2 * BMKOverlayPathView.h
3 * BMapKit
4 *
5 * Copyright 2011 Baidu Inc. All rights reserved.
6 *
7 */
8 
9 #import <UIKit/UIKit.h>
10 #import "BMKOverlayView.h"
11 
14 @package
15  UIColor *_fillColor;
16  UIColor *_strokeColor;
17 
18  CGFloat _lineWidth;
19  CGLineJoin _lineJoin;
20  CGLineCap _lineCap;
21  CGFloat _miterLimit;
22  CGFloat _lineDashPhase;
23  NSArray *_lineDashPattern;
24 
25  CGPathRef _path;
26 }
27 
29 @property (strong) UIColor *fillColor;
31 @property (strong) UIColor *strokeColor;
32 
34 @property CGFloat lineWidth;
36 @property CGLineJoin lineJoin;
38 @property CGLineCap lineCap;
40 @property CGFloat miterLimit;
42 @property CGFloat lineDashPhase;
44 @property (copy) NSArray *lineDashPattern;
45 
49 - (void)createPath;
51 @property CGPathRef path;
52 
56 - (void)invalidatePath;
57 
58 
64 - (void)applyStrokePropertiesToContext:(CGContextRef)context
65  atZoomScale:(BMKZoomScale)zoomScale;
66 
72 - (void)applyFillPropertiesToContext:(CGContextRef)context
73  atZoomScale:(BMKZoomScale)zoomScale;
79 - (void)strokePath:(CGPathRef)path inContext:(CGContextRef)context;
80 
86 - (void)fillPath:(CGPathRef)path inContext:(CGContextRef)context;
87 
88 @end
该类是地图覆盖物View的基类,提供绘制overlay的接口但本身并无实现,所有地图覆盖物View需要继承自此类 ...
Definition: BMKOverlayView.h:12
CGLineJoin lineJoin
LineJoin,默认为kCGLineJoinRound
Definition: BMKOverlayPathView.h:36
CGFloat lineDashPhase
lineDashPhase, 默认为0
Definition: BMKOverlayPathView.h:42
CGFloat lineWidth
画笔宽度,默认为0
Definition: BMKOverlayPathView.h:34
CGFloat miterLimit
miterLimit,在样式为kCGLineJoinMiter时有效,默认为10
Definition: BMKOverlayPathView.h:40
UIColor * strokeColor
画笔颜色
Definition: BMKOverlayPathView.h:31
NSArray * lineDashPattern
lineDashPattern,一个NSNumbers的数组,默认为nil
Definition: BMKOverlayPathView.h:44
CGPathRef path
path对象
Definition: BMKOverlayPathView.h:51
该类定义了一个基本的OverlayView
Definition: BMKOverlayPathView.h:13
UIColor * fillColor
填充颜色
Definition: BMKOverlayPathView.h:29
CGLineCap lineCap
LineCap,默认为kCGLineCapRound
Definition: BMKOverlayPathView.h:38