new ModelEditor(options)
模型编辑类。
| Name | Type | Description | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
可选
包含以下属性:
|
Members
-
readonly changedEvtEvent
-
编辑模型改变时触发事件,返回模型当前的模型矩阵
Example
handler.changedEvt.addEventListener(function(result){ let {modelMatrix, transitionAddtion} = result; });
Methods
-
activate()
-
激活编辑器。
-
deactivate()
-
使编辑器失效。
-
destroy()
-
销毁编辑器。
-
setEditObject(model)
-
用于切换编辑的模型对象。
Name Type Description modelEntity | S3MInstance | GeoModel3D 设置被编辑的模型对象