Documentation - v19.2.0-dev
    Preparing search index...

    Set the transform of an object, it replaces the matrix of the object, not multiply it

    Hierarchy

    • ObjectStateCommand<ObjectState, Matrix4>
      • SetObjectTransformCommand
    Index

    Constructors

    • Parameters

      • viewer: Viewer
      • uuid: string
      • matrix: Matrix4

      Returns SetObjectTransformCommand

    Properties

    _objects: SceneObject[]
    _state: PartialState<TState>
    isUndoable: boolean = true

    Indicates whether the command is undoable and redoable

    isUpdatable: boolean = true

    Indicated whether the command can be updated

    name: "SetObjectTransformCommand" = 'SetObjectTransformCommand'

    Name of the command

    viewer: Viewer

    Accessors

    • get hasBeenExecuted(): boolean

      Returns boolean

    Methods

    • Cleans the command footprint.

      Returns Promise<void>

    • Returns Promise<Partial<ObjectState>>

    • Returns Promise<void>

    • Update the current state of the command when the update method is called

      Parameters

      • newMatrix: Matrix4

      Returns void

    • Parameters

      • cmd: this

      Returns boolean

    • Toggle the command

      Parameters

      Returns Promise<void | Partial<ObjectState>>

    • Undo the command

      Parameters

      Returns Promise<void>

    • Update the current state of the command and push the new state in history

      Parameters

      • newMatrix: Matrix4

      Returns Promise<void>