Class: ProjectionPickerViewModel

ProjectionPickerViewModel

new ProjectionPickerViewModel(scene)

The view model of ProjectionPicker.

Name Type Description
scene Scene

Switch the projected scene.

Members

Get or set whether the dropdown button is currently visible. This attribute is observable.

Default Value:
false

isOrthographicProjectionCommand

Determine whether the scene is currently using orthographic projection.

sceneScene

Obtain the scene.

sceneModeSceneMode

Get or set the current scene mode. This attribute is observable.

selectedTooltipString

Get the currently activated tool tip. This attribute is observable.

switchToOrthographicCommand

Get the command to switch to orthographic projection.

switchToPerspectiveCommand

Get the command to switch to perspective projection.

toggleDropDownCommand

Get the command to switch dropdown boxes.

tooltipOrthographicString

Get or set the orthographic projection tool tip. This attribute is observable.

Default Value:
'Orthographic Projection'

tooltipPerspectiveString

Get or set perspective projection tooltips. This attribute is observable.

Default Value:
'Perspective Projection'

Methods

destroy()

Destroy the view model.

isDestroyed(){Boolean}

Returns:
Type Description
Boolean If the object has been destroyed, it is true; otherwise, it is false.