SceneTransitioner

SceneTransitioner

new

Transitions the scene among available modes. The transitions can either be instantaneous or animated.

Parameters:
Name Type Argument Default Description
scene Scene The scene to be transitioned.
ellipsoid Ellipsoid <optional>
Ellipsoid.WGS84 The ellipsoid to be transitioned.
Throws:
DeveloperError : scene is required.
See:
Source:

Members

:Boolean

Gets or sets whether or not to instantly complete the transition animation on user input.
Default Value:
  • true

:Number

Gets or sets the amount of time, in milliseconds, for transition animations to complete.
Default Value:
  • 2000

:Event

Gets the event fired at the completion of a transition.
Default Value:
  • Event()

:Event

Gets the event fired at the beginning of a transition.
Default Value:
  • Event()

Methods

Instantly completes an active transition.

Throws:
DeveloperError : completeMorph can only be called during a transition.

Once an object is destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception. Therefore, assign the return value (undefined) to the object as done in the example.

Throws:
DeveloperError : This object was destroyed, i.e., destroy() was called.
Example
transitioner = transitioner && transitioner.destroy();

Returns:
Ellipsoid The ellipsoid to be transitioned.

Returns:
Scene The scene to be transitioned.

Returns true if this object was destroyed; otherwise, false.

If this object was destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception.

Returns:
Boolean true if this object was destroyed; otherwise, false.

Asynchronously transitions the scene to 2D.

Asynchronously transitions the scene to 3D.

Asynchronously transitions the scene to Columbus View.

Instantly transitions the scene to 2D.

Instantly transitions the scene to 3D.

Instantly transitions the scene to Columbus View.