new FdSection(viewer [, configs])
Parameters:
Name | Type | Argument | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
viewer |
Viewer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
configs |
Object |
<optional> |
配置参数 Properties
|
Example
var fs = new Freedo.FdTools.FdSection(viewer, configs); fs.add(startCartesian3, stopCartesian3); fs.start();
Methods
-
add(startPoint, stopPoint)
-
添加剖面数据
Parameters:
Name Type Description startPoint
Cartesian3 剖面起始点
stopPoint
Cartesian3 剖面结束点
-
cancel()
-
取消剖面分析操作
-
haveSection()
-
判断当前实例是否已经添加剖面
Returns:
已经添加过剖面则返回true
- Type
- Boolean
-
next()
-
切换下一个剖面
Returns:
有下一个剖面返回 true
- Type
- Boolean
-
on(listener [, scope])
-
注册事件捕捉
Parameters:
Name Type Argument Description listener
FdTools.FdSection~FdSectionCallback 当有事件触发时被执行的函数。
scope
Object <optional>
listener函数执行时的绑定的对象。
Returns:
返回一个函数,调用该函数可以取消监听。
- Type
- Freedo.Event~RemoveCallback
-
prev()
-
切换上一个剖面
Returns:
有上一个剖面返回 true
- Type
- Boolean
-
remove()
-
移除所有剖面
-
save()
-
将剖面分析画布保存为图片(jpg)
-
setConfigs(configs [, rerender])
-
设置可配置参数
Parameters:
Name Type Argument Default Description configs
Object 配置属性
rerender
Boolean <optional>
false 重新渲染画布
-
start()
-
开始剖面分析
-
undo()
-
使用点/距离测量时,返回上一步操作
Type Definitions
-
FdSectionCallback(eventType, eventArg)
-
Parameters:
Name Type Description eventType
String AnaFinished(分析完成)
eventArg
Object AnaFinished 事件返回分析结果