new FdDynamicWall(viewer [, options] [, type])
动态墙
Parameters:
Name | Type | Argument | Default | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
viewer |
Viewer | ||||||||||||||||||||||||||||||||||||||||||||||||
options |
Object |
<optional> |
可能包含以下值: Properties
|
||||||||||||||||||||||||||||||||||||||||||||||
type |
Number |
<optional> |
1 | 生成的模型类型:1:entity、2:primitive |
Methods
-
destroy()
-
销毁
-
endEdit()
-
结束编辑
-
getData()
-
获取实体的属性数据
Returns:
返回值格式:
{ id: GUID, type: "DynamicWall", option: { show: true, ... } }
- Type
- Object
-
hide()
-
隐藏
-
setColor(color)
-
设置围墙颜色
Parameters:
Name Type Description color
Freedo.Color 颜色值。设置成功后立即更新围墙
-
setHeight(height)
-
设置围墙高度
Parameters:
Name Type Description height
Number 高度数值(米)。设置成功后立即更新围墙
-
show()
-
显示
-
startEdit()
-
开始编辑