TransformGizmo class

A Gizmo for transform models

Signature:

export default class TransformGizmo extends Tool 

Extends: Tool

Constructors

ConstructorDescription
(constructor)(viewer, modelId, scale)The construct function of TransformGizmo

Properties

PropertyModifiersDescription
actorGizmo所在的Entity
minimumSnapAngle最小吸附角度
revokeEnabled

Methods

MethodDescription
_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