BaiduMap_IOSSDK_v6.6.2_Docs 6.6.2
载入中...
搜索中...
未找到
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;
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
CGFloat BMKZoomScale
地图缩放比例
Definition BMKTypes.h:298
该类定义了一个基本的OverlayView
Definition BMKOverlayPathView.h:13
CGFloat lineWidth
画笔宽度,默认为0
Definition BMKOverlayPathView.h:34
CGFloat _lineWidth
Definition BMKOverlayPathView.h:18
CGFloat miterLimit
miterLimit,在样式为kCGLineJoinMiter时有效,默认为10
Definition BMKOverlayPathView.h:40
CGPathRef path
path对象
Definition BMKOverlayPathView.h:51
CGFloat _miterLimit
Definition BMKOverlayPathView.h:21
NSArray * _lineDashPattern
Definition BMKOverlayPathView.h:23
CGLineCap lineCap
LineCap,默认为kCGLineCapRound
Definition BMKOverlayPathView.h:38
UIColor * _strokeColor
Definition BMKOverlayPathView.h:16
CGLineJoin _lineJoin
Definition BMKOverlayPathView.h:19
UIColor * strokeColor
画笔颜色
Definition BMKOverlayPathView.h:31
CGLineCap _lineCap
Definition BMKOverlayPathView.h:20
CGPathRef _path
Definition BMKOverlayPathView.h:25
UIColor * fillColor
填充颜色
Definition BMKOverlayPathView.h:29
CGLineJoin lineJoin
LineJoin,默认为kCGLineJoinRound
Definition BMKOverlayPathView.h:36
NSArray * lineDashPattern
lineDashPattern,一个NSNumbers的数组,默认为nil
Definition BMKOverlayPathView.h:44
CGFloat lineDashPhase
lineDashPhase, 默认为0
Definition BMKOverlayPathView.h:42
CGFloat _lineDashPhase
Definition BMKOverlayPathView.h:22
该类是地图覆盖物View的基类,提供绘制overlay的接口但本身并无实现,所有地图覆盖物View需要继承自此类
Definition BMKOverlayView.h:15