new FdGeologyVolumn(viewer, data, options)
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
viewer |
Viewer | 视景器 |
|||||||||||||||||||||||||||||||||||||||||||||
data |
Array | 钻孔点数据,格式:[ { name: String, pos: String, layer: [ { name: String, depth: Numnber } ] } ] |
|||||||||||||||||||||||||||||||||||||||||||||
options |
Object | 配置参数 Properties
|
Members
-
<readonly> gltf
-
gltf数据
-
<readonly> model
-
gltf模型
-
<readonly> modelMatrix
-
gltf的模型矩阵
-
translation
-
gltf的平移变换
Methods
-
addDrills( [offsetHeight] [, radius])
-
添加钻孔点
Parameters:
Name Type Argument Default Description offsetHeight
Number <optional>
20 偏移高度
radius
Number <optional>
1.0 圆柱体半径
-
addGltf()
-
添加gltf模型
-
addGrid( [width] [, color])
-
添加插值网格线
Parameters:
Name Type Argument Default Description width
Number <optional>
1.0 线条宽度
color
Array <optional>
[0, 255, 255, 255] 颜色
-
addInterprlations( [offsetHeight] [, radius])
-
添加虚拟钻孔
Parameters:
Name Type Argument Default Description offsetHeight
Number <optional>
20 偏移高度
radius
Number <optional>
1.0 圆柱体半径
-
destroy()
-
销毁
-
download()
-
下载gltf模型数据
-
hide()
-
隐藏
-
hideDrills()
-
隐藏钻孔点
-
hideGrid()
-
隐藏网格
-
hideInterpolations()
-
隐藏插值钻孔点
-
on(listener [, scope])
-
注册事件捕捉
Parameters:
Name Type Argument Description listener
FdTools.FdGeologyVolumn~FdGeologyVolumnCallback 当有事件触发时被执行的函数。
scope
Object <optional>
listener函数执行时的绑定的对象。
Returns:
返回一个函数,调用该函数可以取消监听。
- Type
- Freedo.Event~RemoveCallback
-
remove()
-
移除
-
removeDrills()
-
移除钻孔点模型
-
removeGltf()
-
移除gltf模型
-
removeGrid()
-
移除gltf模型
-
removeInterpolations()
-
移除虚拟钻孔点模型
-
reset()
-
重置
-
show()
-
显示
-
showDrills()
-
显示钻孔点
-
showGrid()
-
显示网格
-
showInterpolations()
-
显示插值钻孔点
-
updateParams(params)
-
更新参数
Parameters:
Name Type Description params
Object 配置参数
Type Definitions
-
FdGeologyVolumnCallback(eventType, eventArg)
-
Parameters:
Name Type Description eventType
String 事件类型:DataChanged
eventArg
Object DataChanged事件对应的参数