Class

PlotGraphic

PlotGraphic(viewer, options)

Constructor

# new PlotGraphic(viewer, options)

军标绘制类

Parameters:
Name Type Description
viewer Viewer

场景对象

options Object

实体属性

Author:
  • xyj

Members

Layer

# readonly layer

图层对象

State

# readonly state

状态

Viewer

# readonly viewer

场景对象

Methods

# destroy() → {PlotGraphic}

销毁整个场景

  • 当前对象
PlotGraphic

# draw(type, callback, style, clampToModel) → {PlotGraphic}

绘制功能

Parameters:
Name Type Default Description
type GraphicType

图形类型

callback function

回调

style Object

图形的样式

clampToModel boolean false

是否裁剪为模型

  • 当前对象
PlotGraphic

# edit(graphic, callback, clampToModel) → {PlotGraphic}

编辑实体

Parameters:
Name Type Default Description
graphic Graphic

实体对象

callback function

回调

clampToModel boolean false

是否加入到模型

  • 当前对象
PlotGraphic

# stop() → {PlotGraphic}

停止操作

  • 当前对象
PlotGraphic