BaiduMap_IOSSDK_v7.2.0_Docs 7.2.0

BMKPolyline.h
浏览该文件的文档.
1 /*
2 * BMKPolyline.h
3 * BMapKit
4 *
5 * Copyright 2011 Baidu Inc. All rights reserved.
6 *
7 */
8
9 #import "BMKMultiPoint.h"
10 #import "BMKOverlay.h"
11 #import "BMKLineDrawType.h"
12 @class BMKMapAnimation;
13
14 NS_ASSUME_NONNULL_BEGIN
16 @interface BMKPolyline : BMKMultiPoint <BMKOverlay>
17
20 @property (nonatomic, assign) BOOL isThined;
21
24 @property (nonatomic, assign) BMKCoordAlgorithm thin;
26 @property (nonatomic, assign) float thinFactor;
29 @property (nonatomic, assign) BMKCoordAlgorithm smooth;
31 @property (nonatomic, assign) float smoothFactor;
32
34 @property (nonatomic, strong, nullable) BMKMapAnimation *animation;
35
41 @property (nonatomic, assign) BMKLineDirectionCross180Type lineDirectionCross180;
42
47 + (nullable instancetype)polylineWithPoints:(BMKMapPoint *)points count:(NSUInteger)count;
48
53 + (nullable instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
54
59 - (BOOL)setPolylineWithPoints:(BMKMapPoint *)points count:(NSUInteger)count;
60
65 - (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
66
67
68 #pragma mark - 以下方法和属性只适用于分段纹理绘制和分段颜色绘制
69
75 @property (nonatomic, copy, nullable) NSArray<NSNumber *> *textureIndex __deprecated_msg("已废弃since 6.5.0, 请使用BMKMultiPolyline中drawIndexs");
77
85 + (nullable instancetype)polylineWithPoints:(BMKMapPoint *)points
86 count:(NSUInteger)count
87 textureIndex:(NSArray<NSNumber *> *)textureIndex __deprecated_msg("已废弃since 6.5.0, 请使用BMKMultiPolyline中multiPolylineWithPoints:count:drawIndexs:替换");
88
96 + (nullable instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords
97 count:(NSUInteger)count
98 textureIndex:(NSArray<NSNumber *> *)textureIndex __deprecated_msg("已废弃since 6.5.0, 请使用BMKMultiPolyline中multiPolylineWithCoordinates:count:drawIndexs:替换");
99
105 - (BOOL)setPolylineWithPoints:(BMKMapPoint *)points
106 count:(NSUInteger)count
107 textureIndex:(NSArray<NSNumber *> *)textureIndex __deprecated_msg("已废弃since 6.5.0, 请使用BMKMultiPolyline中setMultiPolylineWithPoints:count:drawIndexs:替换");
108
114 - (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords
115 count:(NSUInteger)count
116 textureIndex:(NSArray<NSNumber *> *)textureIndex __deprecated_msg("已废弃since 6.5.0, 请使用BMKMultiPolyline中setMultiPolylineWithCoordinates:count:drawIndexs:替换");
117
118 @end
119 NS_ASSUME_NONNULL_END
-[BMKPolyline __deprecated_msg]
NSArray< NSNumber * > *textureIndex __deprecated_msg("已废弃since 6.5.0, 请使用BMKMultiPolyline中drawIndexs")
颜色/纹理索引数组
BMKLineDirectionCross180Type
BMKLineDirectionCross180Type
line跨经度180方式
Definition: BMKLineDrawType.h:42
BMKMapPoint
地理坐标点，用直角地理坐标表示
Definition: BMKTypes.h:249
BMKPolyline
此类用于定义一段折线
Definition: BMKPolyline.h:16
BMKMapAnimation
Definition: BMKMapAnimation.h:70
BMKPolyline::smooth
BMKCoordAlgorithm smooth
Definition: BMKPolyline.h:29
BMKLineDrawType.h
BMKOverlay.h
BMKOverlay-p
该类是地图覆盖物的基类，所有地图的覆盖物需要继承自此类
Definition: BMKOverlay.h:17
BMKPolyline::isThined
BOOL isThined
Definition: BMKPolyline.h:20
BMKPolyline::animation
BMKMapAnimation * animation
轨迹动画，使用BMKMapAnimation子类实现动画，支持BMKMapAlphaAnimation，BMKMapTrackAnimation,since 6.6....
Definition: BMKPolyline.h:34
BMKPolyline::smoothFactor
float smoothFactor
平滑算法系数，默认16，since 6.6.3
Definition: BMKPolyline.h:31
BMKCoordAlgorithm
BMKCoordAlgorithm
Definition: BMKLineDrawType.h:69
BMKPolyline::thin
BMKCoordAlgorithm thin
Definition: BMKPolyline.h:24
BMKMultiPoint.h
BMKPolyline::thinFactor
float thinFactor
抽稀算法系数，默认4，since 6.6.3
Definition: BMKPolyline.h:26
BMKPolyline::lineDirectionCross180
BMKLineDirectionCross180Type lineDirectionCross180
Definition: BMKPolyline.h:41
BMKMultiPoint
该类定义多个点，是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类BMKPolyline,BMKPolygon来实例化
Definition: BMKMultiPoint.h:18