new ModelEditor(options)
Model editing class.
| Name | Type | Description | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
Contains the following attributes:
|
Members
-
readonly changedEvtEvent
-
Trigger event when editing model changes, return the current model matrix of the model
Example
handler.changedEvt.addEventListener(function(result){ let {modelMatrix, transitionAddtion} = result; });
Methods
-
activate()
-
Activate the editor.
-
deactivate()
-
Make the editor ineffective.
-
destroy()
-
Destroy the editor.
-
setEditObject(model)
-
Used to switch and edit model objects.
Name Type Description modelEntity | S3MInstance | GeoModel3D Set the edited model object