Represents an animation for an interactive object. The animation is valid if the ObjectId points to a valid object, and the animation is in the manager.

Constructors

Properties

_myAnimMgr: AnimationManager
_myObjId: string
_myViewer: OccViewer

Accessors

  • get animationSteps(): AnimationStep[]
  • Return animation steps - a series of AnimationStep's structure defining transformations.

    Returns AnimationStep[]

  • set animationSteps(theSteps: AnimationStep[]): void
  • Set animation steps - a series of AnimationStep's structure defining transformations.

    Parameters

    Returns void

  • get duration(): number
  • Return animation duration in seconds.

    Returns number

  • set duration(theDuration: number): void
  • Set animation duration in seconds.

    Parameters

    • theDuration: number

    Returns void

  • get isValid(): boolean
  • Return True if the animation exists and is applied to a valid object.

    Returns boolean

  • get objectId(): string
  • Return id of object owning the animation.

    Returns string

  • get progress(): number
  • Return animation position as a fraction of duration.

    Returns number

  • set progress(theProgress: number): void
  • Set animation position as a fraction of duration.

    Parameters

    • theProgress: number

    Returns void

Methods

  • Pause animation.

    Returns void

  • Reset animation

    Returns void

  • Restart animation.

    Returns void

  • Resume animation.

    Returns void

  • Seek animation to specified position.

    Parameters

    • thePos: number

    Returns void

  • Stop animation.

    Returns void