Constructor
new DynamicRiver(viewer, optionsopt)
创建一个河流或者公路
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
viewer |
Viewer | 场景对象 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
options |
Object |
<optional> |
{}
|
带有以下属性的对象: Properties
|
Classes
Methods
destroy()
销毁对象释放资源
drawLines(styleopt)
绘制中心线
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
style |
Object |
<optional> |
{}
|
中心线样式 Properties
|
setPositions(positions)
设置中心线点组
Parameters:
Name | Type | Description |
---|---|---|
positions |
Array | 中心线点组,点类型Cart3 |