public class RoutePointCollector
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
RoutePointCollector.EventHandler |
构造器和说明 |
---|
RoutePointCollector() |
限定符和类型 | 方法和说明 |
---|---|
void |
addEventHandler(RoutePointCollector.EventHandler eventHandler)
添加外部监听者
|
void |
enableSmoothing(boolean enable)
设置是否采用平滑
|
void |
removeEventHandler(RoutePointCollector.EventHandler eventHandler)
删除外部监听者
|
void |
setFetchDistanceBackward(float fetchDistanceBackward)
设置后方抓取点的距离
|
void |
setFetchDistanceForward(float fetchDistanceForward)
设置前方抓取点的距离
|
void |
setJunctionSmoothIntensity(float intensity)
设置路口处的平滑强度,默认为1
|
void |
setSmoothInterval(float intervalInMeter)
设置平滑前的预采样点间隔,越大平滑粒度越大,默认为5
|
public void setFetchDistanceForward(float fetchDistanceForward)
fetchDistanceForward
- 前方抓取点的距离public void setFetchDistanceBackward(float fetchDistanceBackward)
fetchDistanceBackward
- 后方抓取点的距离public void enableSmoothing(boolean enable)
enable
- 是否采用平滑public void setSmoothInterval(float intervalInMeter)
intervalInMeter
- 平滑前的预采样点间隔public void setJunctionSmoothIntensity(float intensity)
intensity
- 路口处的平滑强度public void addEventHandler(RoutePointCollector.EventHandler eventHandler)
eventHandler
- 外部监听者public void removeEventHandler(RoutePointCollector.EventHandler eventHandler)
eventHandler
- 外部监听者©Mapbar Engine Team;All Rights Reserved