SceneModePickerViewModel - Cesium Documentation

# SceneModePickerViewModel

#### new SceneModePickerViewModel(scene, duration)

  The view model for `SceneModePicker`.

  Name | Type | Default | Description
  --- | --- | --- | ---
  `scene` | Scene |  | The Scene to morph
  `duration` | Number | `2.0` | optional The duration of scene morph animations, in seconds

  Source: Widgets/SceneModePicker/SceneModePickerViewModel.js, line 32

### Members

#### dropDownVisible :Boolean

  Gets or sets whether the button drop-down is currently visible. This property is observable.
  Default Value: `false`
  Source: Widgets/SceneModePicker/SceneModePickerViewModel.js, line 64

#### duration :Number

  Gets or sets the the duration of scene mode transition animations in seconds. A value of zero causes the scene to instantly change modes.
  Source: Widgets/SceneModePicker/SceneModePickerViewModel.js, line 143

#### morphTo2D :Command

  Gets the command to morph to 2D.
  Source: Widgets/SceneModePicker/SceneModePickerViewModel.js, line 176

#### morphTo3D :Command

  Gets the command to morph to 3D.
  Source: Widgets/SceneModePicker/SceneModePickerViewModel.js, line 188

#### morphToColumbusView :Command

  Gets the command to morph to Columbus View.
  Source: Widgets/SceneModePicker/SceneModePickerViewModel.js, line 200

#### scene :Scene

  Gets the scene
  Source: Widgets/SceneModePicker/SceneModePickerViewModel.js, line 131

#### sceneMode :SceneMode

  Gets or sets the current SceneMode. This property is observable.
  Source: Widgets/SceneModePicker/SceneModePickerViewModel.js, line 57

#### selectedTooltip :String

  Gets the currently active tooltip. This property is observable.
  Source: Widgets/SceneModePicker/SceneModePickerViewModel.js, line 93

#### toggleDropDown :Command

  Gets the command to toggle the drop down box.
  Source: Widgets/SceneModePicker/SceneModePickerViewModel.js, line 164

#### tooltip2D :String

  Gets or sets the 2D tooltip. This property is observable.
  Default Value: `'2D'`
  Source: Widgets/SceneModePicker/SceneModePickerViewModel.js, line 71

#### tooltip3D :String

  Gets or sets the 3D tooltip. This property is observable.
  Default Value: `'3D'`
  Source: Widgets/SceneModePicker/SceneModePickerViewModel.js, line 78

#### tooltipColumbusView :String

  Gets or sets the Columbus View tooltip. This property is observable.
  Default Value: `'Columbus View'`
  Source: Widgets/SceneModePicker/SceneModePickerViewModel.js, line 85

### Methods

#### destroy()

  Destroys the view model.
  Source: Widgets/SceneModePicker/SceneModePickerViewModel.js, line 217

#### isDestroyed() → Boolean

  ##### Returns:

  true if the object has been destroyed, false otherwise.
  Source: Widgets/SceneModePicker/SceneModePickerViewModel.js, line 210