|
TencentMapSDK_iOS_3D_v1.3.3
|
此类是QPolyline用于显示多段线的view,可以通过QOverlayPathView修改其stroke属性来配置样式(不支持fillColor) 更多...
#import <QPolylineView.h>
构造函数 | |
| (id) | - initWithPolyline: |
| 根据指定的QPolyline生成一个多段线view 更多... | |
构造函数 继承自 QOverlayPathView | |
| (void) | - createPath |
| 子类需要重载该方法并设置(self.path = newPath) | |
| (void) | - invalidatePath |
| 释放当前path,调用之后 path == NULL | |
| (void) | - applyStrokePropertiesToContext:atZoomScale: |
| 将当前的stroke属性设置到指定的context 更多... | |
| (void) | - applyFillPropertiesToContext:atZoomScale: |
| 将当前的fill属性设置到指定的context 更多... | |
| (void) | - strokePath:inContext: |
| 绘制path 更多... | |
| (void) | - fillPath:inContext: |
| 填充path 更多... | |
构造函数 继承自 QOverlayView | |
| (id) | - initWithOverlay: |
| 初始化并返回一个overlayView 更多... | |
| (CGPoint) | - pointForMapPoint: |
| 将QMapPoint转化为相对于overlayView的坐标 更多... | |
| (CGPoint) | - pointForMapPoint:modifyDeviationTransform: |
| 将QMapPoint转化为相对于overlayView的坐标,*trans为了弥补32位运行环境下从coordinate转换成double再转换成CGPoint造成的精度丢失, 如果没有误差那么返回的trans为CGAffineTransformIdentity 更多... | |
| (QMapPoint) | - mapPointForPoint: |
| 将相对于overlayView的本地坐标转化为QMapPoint坐标 更多... | |
| (CGRect) | - rectForMapRect: |
| 将QMapRect转化为相对于overlayView的rect 更多... | |
| (QMapRect) | - mapRectForRect: |
| 将相对于overlayView的rect转化为QMapRect 更多... | |
| (BOOL) | - canDrawMapRect:zoomScale: |
| 判断overlayView是否可以绘制包含的内容 更多... | |
| (void) | - drawMapRect:zoomScale:inContext: |
| 绘制overlayView的内容 更多... | |
属性 | |
| QPolyline * | polyline |
| 关联的QPolyline对象 | |
属性 继承自 QOverlayPathView | |
| UIColor * | fillColor |
| 填充颜色,默认是[UIColor colorWithRed:0 green:1 blue:0 alpha:0.6] | |
| UIColor * | strokeColor |
| 笔触颜色,默认是[UIColor colorWithRed:1 green:0 blue:0 alpha:0.6] | |
| CGFloat | lineWidth |
| 笔触宽度,默认是0 | |
| CGLineJoin | lineJoin |
| 折线拐点样式,默认是kCGLineJoinRound | |
| CGLineCap | lineCap |
| 线头尾样式,默认是kCGLineCapRound | |
| CGFloat | miterLimit |
| 线条交点样式参数,默认为10.f | |
| CGFloat | lineDashPhase |
| 虚线属性, 默认为0.f | |
| NSArray * | lineDashPattern |
| 虚线模式, 默认为nil | |
| CGPathRef | path |
| 当前path | |
属性 继承自 QOverlayView | |
| id< QOverlay > | overlay |
| 关联的overlay对象 | |
此类是QPolyline用于显示多段线的view,可以通过QOverlayPathView修改其stroke属性来配置样式(不支持fillColor)
| - (id) initWithPolyline: | (QPolyline *) | polyline |
根据指定的QPolyline生成一个多段线view
| polyline | 指定的QPolyline |