CesiumInspectorViewModel - Cesium Documentation

# CesiumInspectorViewModel

#### new CesiumInspectorViewModel(scene)

  The view model for `CesiumInspector`.

  Name | Type | Description
  --- | --- | ---
  `scene` | Scene | The scene instance to use.

  ##### Throws:

  - DeveloperError : scene is required.
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 78

### Members

#### decrementDepthFrustum :Command

  Gets the command to decrement the depth frustum index to be shown
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 671

#### depthFrustum :Number

  Gets or sets the index of the depth frustum to display. This property is observable.
  Default Value: `1`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 186

#### depthFrustumText :String

  Gets or sets the index of the depth frustum text. This property is observable.
  Default Value: `'1 of 1'`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 194

#### doFilterPrimitive :Command

  Gets the command to toggle a filter that renders only a selected primitive
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 611

#### doFilterTile :Command

  Gets the command to toggle a filter that renders only a selected tile
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 719

#### doSuspendUpdates :Command

  Gets the command to toggle whether to suspend tile updates
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 683

#### dropDownVisible :Boolean

  Gets or sets if the cesium inspector drop down is visible. This property is observable.
  Default Value: `true`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 257

#### filterPrimitive :Boolean

  Gets or sets the filter primitive state. This property is observable.
  Default Value: `false`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 144

#### filterTile :Boolean

  Gets or sets the filter tile state. This property is observable.
  Default Value: `false`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 158

#### frustums :Boolean

  Gets or sets the show frustums state. This property is observable.
  Default Value: `false`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 109

#### frustumStatisticText :String

  Gets or sets the frustum statistic text. This property is observable.
  Default Value: `''`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 215

#### generalSwitchText :String

  Gets or sets if the text on the general section expand button. This property is observable.
  Default Value: `'-'`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 285

#### generalVisible :Boolean

  Gets or sets if the general section is visible. This property is observable.
  Default Value: `true`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 264

#### globeDepth :Boolean

  Gets or sets the show globe depth state. This property is observable.
  Default Value: `false`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 172

#### hasPickedPrimitive :Boolean

  Gets if a primitive has been selected. This property is observable.
  Default Value: `false`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 229

#### hasPickedTile :Boolean

  Gets if a tile has been selected. This property is observable
  Default Value: `false`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 236

#### incrementDepthFrustum :Command

  Gets the command to increment the depth frustum index to be shown
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 659

#### performance :Boolean

  Gets or sets the show performance display state. This property is observable.
  Default Value: `false`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 116

#### performanceContainer :Element

  Gets the container of the PerformanceDisplay
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 539

#### pickDepth :Boolean

  Gets or sets the show pick depth state. This property is observable.
  Default Value: `false`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 179

#### pickPimitiveActive :Boolean

  Gets if the picking primitive command is active. This property is observable.
  Default Value: `false`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 243

#### pickPrimitive :Command

  Gets the command to pick a primitive
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 767

#### pickTile :Command

  Gets the command to pick a tile
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 779

#### pickTileActive :Boolean

  Gets if the picking tile command is active. This property is observable.
  Default Value: `false`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 250

#### primitive :Command

  Gets or sets the current selected primitive
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 866

#### primitiveBoundingSphere :Boolean

  Gets or sets the show primitive bounding sphere state. This property is observable.
  Default Value: `false`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 130

#### primitiveReferenceFrame :Boolean

  Gets or sets the show primitive reference frame state. This property is observable.
  Default Value: `false`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 137

#### primitivesSwitchText :String

  Gets or sets if the text on the primitive section expand button. This property is observable.
  Default Value: `'+'`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 292

#### primitivesVisible :Boolean

  Gets or sets if the primitive section is visible. This property is observable.
  Default Value: `false`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 271

#### scene :Scene

  Gets the scene to control.
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 527

#### selectNE :Command

  Gets the command to pick a tile
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 821

#### selectNW :Command

  Gets the command to pick a tile
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 806

#### selectParent :Command

  Gets the command to pick a tile
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 791

#### selectSE :Command

  Gets the command to pick a tile
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 851

#### selectSW :Command

  Gets the command to pick a tile
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 836

#### shaderCacheText :String

  Gets or sets the shader cache text. This property is observable.
  Default Value: `''`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 123

#### showFrustums :Command

  Gets the command to toggle `Scene.debugShowFrustums`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 563

#### showGlobeDepth :Command

  Gets the command to toggle the view of the Globe depth buffer
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 635

#### showPerformance :Command

  Gets the command to toggle the visibility of the performance display.
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 575

#### showPickDepth :Command

  Gets the command to toggle the view of the pick depth buffer
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 647

#### showPrimitiveBoundingSphere :Command

  Gets the command to toggle the visibility of a BoundingSphere for a primitive
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 587

#### showPrimitiveReferenceFrame :Command

  Gets the command to toggle the visibility of a `DebugModelMatrixPrimitive` for the model matrix of a primitive
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 599

#### showTileBoundingSphere :Command

  Gets the command to toggle the visibility of a BoundingSphere for a selected tile
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 707

#### showTileCoordinates :Command

  Gets the command to toggle the visibility of tile coordinates
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 695

#### showWireframe :Command

  Gets the command to toggle the view of the Globe as a wireframe
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 623

#### suspendUpdates :Boolean

  Gets or sets the suspend updates state. This property is observable.
  Default Value: `false`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 201

#### terrainSwitchText :String

  Gets or sets if the text on the terrain section expand button. This property is observable.
  Default Value: `'+'`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 299

#### terrainVisible :Boolean

  Gets or sets if the terrain section is visible. This property is observable.
  Default Value: `false`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 278

#### tile :Command

  Gets or sets the current selected tile
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 901

#### tileBoundingSphere :Boolean

  Gets or sets the show tile bounding sphere state. This property is observable.
  Default Value: `false`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 151

#### tileCoordinates :Boolean

  Gets or sets the show tile coordinates state. This property is observable.
  Default Value: `false`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 208

#### tileText :String

  Gets or sets the selected tile information text. This property is observable.
  Default Value: `''`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 222

#### toggleDropDown :Command

  Gets the command to toggle the visibility of the drop down.
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 551

#### toggleGeneral :Command

  Gets the command to expand and collapse the general section
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 731

#### togglePrimitives :Command

  Gets the command to expand and collapse the primitives section
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 743

#### toggleTerrain :Command

  Gets the command to expand and collapse the terrain section
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 755

#### wireframe :Boolean

  Gets or sets the show wireframe state. This property is observable.
  Default Value: `false`
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 165

### Methods

#### destroy()

  Destroys the widget. Should be called if permanently removing the widget from layout.
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 968

#### isDestroyed() → Boolean

  ##### Returns:

  true if the object has been destroyed, false otherwise.
  Source: Widgets/CesiumInspector/CesiumInspectorViewModel.js, line 960