BaiduMap_IOSSDK_v7.1.0_Docs 7.1.0

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