ModelEditor

new SuperMap3D.ModelEditor(options)

Model Editing Class ModelEditor
Name Type Description
options Object Parameter object
Name Type Description
model Entity The model object that needs to be edited. required.
scene Scene Scene object. required.
Cartesian3 offset The overall offset of the origin of the editing component relative to the origin of the model. If not set, the origin of the editing component will be the origin of the model. default value: Cartesian3.Zero. Optional.
Number scale Edit the overall scale of the widget. Default value: 1. Optional.
axesShow axesShow Used to specify which axes (translation, selection, zoom) are visible.
changedEvt changedEvt Used to trigger when editing a model and return the current model matrix of the model.
lineWidthScale Number Used to set the zoom factor of the editor's line width.

Methods

activate()

Activate the editor.

deactivate()

Disable the editor.

destroy()

Destroy the editor.

setEditObject()

Used to switch the edited model object, the parameter is the model object (Entity or S3MInstance).