Map Doc  1.0
iOS-引擎SDK-开放平台
全部  文件 函数 变量 类型定义 枚举 枚举值 属性 宏定义
MBRoutePlan.h
浏览该文件的文档.
1 //
2 // MBRoutePlan.h
3 // iNaviCore
4 //
5 // Created by fanwei on 2/22/13.
6 // Copyright (c) 2013 Mapbar. All rights reserved.
7 //
8 
9 #import "MBObject.h"
10 #import "MBNaviBaseTypes.h"
11 
12 @class MBPoiFavorite;
13 
17 @interface MBRoutePlan : MBObject
18 @property (nonatomic, readonly, strong) MBPoiFavorite *startFav;
19 @property (nonatomic, readonly, strong) MBPoiFavorite *endFav;
20 
26 - (void)setOrigionOrientation:(short)ori;
27 
32 - (short)getOrigionOrientation;
33 
37 @property (nonatomic, readonly, copy) NSArray *destinationPoiObjects;
38 
42 @property (nonatomic, assign) BOOL useTmc;
43 
49 + (void)routePlanCopyTo:(MBRoutePlan *)newPlan from:(MBRoutePlan *)oldPlan;
50 
55 - (void*)getRoutePlan;
56 
62 - (void)setRule:(MBRouteRule)rule;
63 
68 - (MBRouteRule)getRule;
69 
75 - (void)setAvoidRoadType:(MBAvoidRoadType)avoidRoadType;
76 
81 - (MBAvoidRoadType)getAvoidRoadType;
82 
87 - (NSInteger)getPointCount;
88 
94 - (MBPoiFavorite *)getDestination:(NSInteger)index;
95 
103 - (void)setDestination:(NSInteger)index favorite:(MBPoiFavorite *)fav;
104 
111 - (void)insertDestination:(NSInteger)index favorite:(MBPoiFavorite *)fav;
112 
117 - (void)addDestination:(MBPoiFavorite *)fav;
118 
124 - (void)removeDestination:(NSInteger)index;
125 
131 - (void)clearDestinations;
132 
141 - (void)swapDestinations:(NSInteger)index1 index2:(NSInteger)index2;
142 
148 - (MBRoutePlanErrorCode)verify:(NSInteger)index;
149 
155 - (NSString *)errCodeToString:(MBRoutePlanErrorCode)err;
156 
161 - (void)updateStartPointByGps;
162 
168 - (BOOL)save:(NSString *)fileName;
169 
174 - (void)load:(NSString *)fileName;
175 
181 - (void)setStartPoint:(MBPoiFavorite *)fav;
182 
188 - (BOOL)setEndPoint:(MBPoiFavorite *)fav;
189 
196 - (BOOL)addWayPoint:(MBPoiFavorite *)fav;
197 
205 - (BOOL)setWayPoint:(NSInteger)index favorite:(MBPoiFavorite *)fav;
206 
213 - (NSInteger)getWayPointNumber;
214 
221 - (BOOL)removeWayPoint:(NSInteger)index;
222 
227 - (void)removeAllWayPoint;
228 @end
MBAvoidRoadType getAvoidRoadType()
NSInteger getPointCount()
short getOrigionOrientation()
BOOL useTmc
Definition: MBRoutePlan.h:42
Definition: MBRoutePlan.h:17
void * getRoutePlan()
NSInteger getWayPointNumber()
MBRouteRule getRule()
MBPoiFavorite * endFav
Definition: MBRoutePlan.h:19
MBRoutePlanErrorCode
Definition: MBNaviBaseTypes.h:214
MBPoiFavorite * startFav
Definition: MBRoutePlan.h:18
void updateStartPointByGps()
兴趣点( Poi )实体类
Definition: MBPoiFavorite.h:13
Definition: MBObject.h:16
NSArray * destinationPoiObjects
Definition: MBRoutePlan.h:37
void removeAllWayPoint()
void clearDestinations()