Joint3d-SDK Docs
  • Base
  • Map
  • Layers
  • Overlays
  • Materials
  • Effects
  • Tools
  • Analysis
  • ThirdPart
  • English
  • 简体中文
  • Base
  • Map
  • Layers
  • Overlays
  • Materials
  • Effects
  • Tools
  • Analysis
  • ThirdPart
  • English
  • 简体中文
  • Tools

    • Joint3d.Plot
      • example
      • creation
      • methods
  • tools
2022-01-10
目录

Tools

# Tools

Auxiliary tools in 3D scenes to facilitate various measurements and markings in the scene

# Joint3d.Plot

PLot Tool

# example

let plot = new Joint3d.Plot(viewer, {})
plot.draw(Joint3d.OverlayType.POINT, (overlay) => {}, {})

# creation

  • constructor(viewer,[options])

    • parameters
      • {Viewer} viewer:场景
      • {Object} options:属性
    • returns plot
// options(optional)
{
  "icon_center": "**.png",
  "icon_anchor": "**.png",
  "icon_midAnchor": "**.png",
  "icon_size": [12, 12]
}

# methods

  • draw(type,callback,[style],[clampToGround])

    • parameters
      • {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 mouse
    • returns this
  • edit(overlay,callback,[clampToGround])

    • parameters
      • {Overlay} overlay
      • {Function} callback
      • {Boolean} clampToModel: Whether the point gets the surface coordinates, if false, it will get the current 3D coordinates of the mouse
    • returns this
Copyright © 2021-2022 厦门集恩图造信息科技股份有限公司
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式