TencentMapSDK_iOS_3D_v4.3.4
QTexturePolylineView.h
1 //
2 // QTexturePolylineView.h
3 // QMapKit
4 //
5 // Created by fan on 2017/7/13.
6 // Copyright © 2017年 tencent. All rights reserved.
7 //
8 
9 #import "QPolylineView.h"
10 
14 @interface QSegmentStyle : NSObject
15 
19 @property (nonatomic, assign) int startIndex;
23 @property (nonatomic, assign) int endIndex;
44 @property (nonatomic, assign) int colorImageIndex;
45 
46 @end
47 
51 @interface QSegmentColor : NSObject
52 
56 @property (nonatomic, assign) int startIndex;
61 @property (nonatomic, assign) int endIndex;
65 @property (nonatomic, strong) UIColor *color;
69 @property (nonatomic, strong) UIColor *borderColor;
70 
71 @end
72 
73 #pragma mark - QTexturePolylineView
74 
80 typedef NS_ENUM(NSInteger, QTextureLineDrawType) {
81  QTextureLineDrawType_ColorLine = -1, // 不使用纹理, 而且以颜色的形式绘制, 使用segmentColor中色值绘制
82  QTextureLineDrawType_SliceAsBackground, // 将图片以1像素为单位按行切片,根据下标从图片选取1像素来绘制线路样式(最大支持16像素高)
83  QTextureLineDrawType_RepeatDraw, // 重复绘制整个图片
84  QTextureLineDrawType_FootPrint, // 以足迹的形式重复绘制整个图片
85 };
86 
94 
100 @property (nonatomic, assign) QTextureLineDrawType drawType;
101 
102 #pragma mark 分段颜色线
103 
109 @property (nonatomic, copy) NSArray<QSegmentColor *> *segmentColor;
110 
111 #pragma mark 纹理线通用
112 
118 @property (nonatomic, strong) UIImage *styleTextureImage;
119 
120 #pragma mark 分段纹理线
121 
126 @property (nonatomic, copy) NSArray<QSegmentStyle *> *segmentStyle;
127 
128 #pragma mark 纹理线上的箭头
129 
134 @property (nonatomic, assign, getter=isDrawSymbol) BOOL drawSymbol;
135 
141 @property (nonatomic, strong) UIImage *symbolImage;
142 
148 @property (nonatomic, assign) CGFloat symbolGap;
149 
150 
151 #pragma mark 路线擦除
152 
158 @property (nonatomic, strong) UIColor *eraseColor;
159 
169 - (void)eraseFromStartToCurrentPoint:(CLLocationCoordinate2D)coordinate searchFrom:(int)pointIndex toColor:(BOOL)clearColor;
170 
171 #pragma mark 脚印线
172 
177 @property (nonatomic, assign) CGFloat footprintStep;
178 
179 @end
180 
185 
191 - (void)setTurnArrowAtSegmentIndex:(int)index;
192 
196 - (void)clearTurnArrow;
197 
201 - (void)setTurnArrowColor:(UIColor*)filler borderColor:(UIColor*)border;
202 
203 @end
204 
QTexturePolylineView中各个子线段的颜色定义
Definition: QTexturePolylineView.h:51
具有丰富显示样式的线覆盖物
Definition: QTexturePolylineView.h:93
int endIndex
本线段的终点坐标点在坐标点串(QPolyline.points)的下标
Definition: QTexturePolylineView.h:23
QTexturePolylineView中各个子线段的样式定义
Definition: QTexturePolylineView.h:14
此类是QPolyline用于显示多段线的view
Definition: QPolylineView.h:18
int colorImageIndex
本线段显示的颜色下标。代表styleTextureImage图片或默认图片的所采用的行(1像素为单位)
Definition: QTexturePolylineView.h:44
int startIndex
本线段的起始坐标点在坐标点串(QPolyline.points)的下标. 从0开始
Definition: QTexturePolylineView.h:19
导航线相关的接口
Definition: QTexturePolylineView.h:184