A Gizmo for transform models
Signature:
export default class TransformGizmo extends Tool Extends: Tool
| Constructor | Description |
|---|---|
| (constructor)(viewer, modelId, scale) | The construct function of TransformGizmo |
| Property | Modifiers | Description |
|---|---|---|
| actor | Gizmo所在的Entity | |
| minimumSnapAngle | 最小吸附角度 | |
| revokeEnabled |
| Method | Description |
|---|---|
| _render() | |
| _renderProgressively() | |
| addInput(input) | |
| getinitTranslation() | Get the initial translation of the model |
| getRotation() | get rotation in euler angles |
| getTransformMatrix() | Get the current translation matrix. |
| getTranslation() | get translation in xyz offset |
| getworldMatrix() | get world matrix of the model |
| reset() | reset gizmo Operation |
| revokeOperation() | revoke gizmo Operation |
| rotate(x, y, z) | rotate the model by euler angle |
| setActiveModeByTransformType(type) | |
| setEntity(entity) | set model for transforming |
| translate(x, y, z) | translate the model by offset |
| unRevokeOperation() | 恢复gizmo的撤销 |
| unsetActiveMode() | |
| updateGizmo(modelId, needRecord) | 根据当前选中Entity强制更新Gizmo |