Auxiliary tools in 3D scenes to facilitate various measurements and markings in the scene
PLot Tool
let plot = new DC.Plot(viewer, {})
plot.draw(DC.OverlayType.POINT, (overlay) => {}, {})
constructor(viewer,[options])
{Viewer} viewer:场景{Object} options:属性plot// options(optional)
{
"icon_center": "**.png",
"icon_anchor": "**.png",
"icon_midAnchor": "**.png",
"icon_size": [12, 12],
"clampToModel":false
}
draw(type,callback,[style],[clampToModel])
{String} type OverlayType{Function} callback{Object} style{Boolean} clampToModel: Whether the point gets the surface coordinates, if false, it will get the current 3D coordinates of the mousethisedit(overlay,callback,[clampToModel])
{Overlay} overlay{Function} callback{Boolean} clampToModel: Whether the point gets the surface coordinates, if false, it will get the current 3D coordinates of the mousethisstop()
thisPosition Editor Tool
let positionEditor = new DC.PositionEditor(viewer)
constructor(viewer,[options])
{Viewer} viewer{Object} optionspositionEditor// options(optional)
{
"arrow": true, // whether the auxiliary axis is an arrow
"width": 8, // auxiliary axis width
"depthFail": true, // whether the auxiliary axis supports depth test
"axisLineScale": 1 // auxiliary axis scale
}
{Overlay} overlay readonlyactivate(type, callback)
{String} type{Function} callback parameter :positionthisdeactivate()
thisModel Manager Tool
let manager = new DC.ModelManager(viewer, layer.getOverlays())
constructor(viewer,models,[options])
{Viewer} viewer{Array} models{Object} optionsmanager// options(optional)
{
"disappearHeight": 1000,
"disappearSeconds": 0.5,
"appearSeconds": 0.5
}
{Array} modelsspread(height, seconds)
{Number} height{Number} secondsthiscombine(seconds)
{Number} secondsthisshowModel(modelIndex)
{Number} modelIndexthisrestore()
this