# CesiumInspectorViewModel

#### new Cesium.CesiumInspectorViewModel(scene)
Widgets/CesiumInspector/CesiumInspectorViewModel.js 78

  The view model for `CesiumInspector`.

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

  ##### Throws:

  - DeveloperError : scene is required.

### Members

#### decrementDepthFrustum : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 669

  Gets the command to decrement the depth frustum index to be shown

#### depthFrustum : Number
Widgets/CesiumInspector/CesiumInspectorViewModel.js 186

  Gets or sets the index of the depth frustum to display. This property is observable.
  Default Value: `1`

#### depthFrustumText : String
Widgets/CesiumInspector/CesiumInspectorViewModel.js 194

  Gets or sets the index of the depth frustum text. This property is observable.
  Default Value: `'1 of 1'`

#### doFilterPrimitive : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 609

  Gets the command to toggle a filter that renders only a selected primitive

#### doFilterTile : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 717

  Gets the command to toggle a filter that renders only a selected tile

#### doSuspendUpdates : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 681

  Gets the command to toggle whether to suspend tile updates

#### dropDownVisible : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 257

  Gets or sets if the cesium inspector drop down is visible. This property is observable.
  Default Value: `true`

#### filterPrimitive : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 144

  Gets or sets the filter primitive state. This property is observable.
  Default Value: `false`

#### filterTile : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 158

  Gets or sets the filter tile state. This property is observable.
  Default Value: `false`

#### frustums : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 109

  Gets or sets the show frustums state. This property is observable.
  Default Value: `false`

#### frustumStatisticText : String
Widgets/CesiumInspector/CesiumInspectorViewModel.js 215

  Gets or sets the frustum statistic text. This property is observable.
  Default Value: `''`

#### generalSwitchText : String
Widgets/CesiumInspector/CesiumInspectorViewModel.js 285

  Gets or sets if the text on the general section expand button. This property is observable.
  Default Value: `'-'`

#### generalVisible : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 264

  Gets or sets if the general section is visible. This property is observable.
  Default Value: `true`

#### globeDepth : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 172

  Gets or sets the show globe depth state. This property is observable.
  Default Value: `false`

#### hasPickedPrimitive : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 229

  Gets if a primitive has been selected. This property is observable.
  Default Value: `false`

#### hasPickedTile : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 236

  Gets if a tile has been selected. This property is observable
  Default Value: `false`

#### incrementDepthFrustum : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 657

  Gets the command to increment the depth frustum index to be shown

#### performance : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 116

  Gets or sets the show performance display state. This property is observable.
  Default Value: `false`

#### performanceContainer : Element
Widgets/CesiumInspector/CesiumInspectorViewModel.js 537

  Gets the container of the PerformanceDisplay

#### pickDepth : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 179

  Gets or sets the show pick depth state. This property is observable.
  Default Value: `false`

#### pickPimitiveActive : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 243

  Gets if the picking primitive command is active. This property is observable.
  Default Value: `false`

#### pickPrimitive : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 765

  Gets the command to pick a primitive

#### pickTile : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 777

  Gets the command to pick a tile

#### pickTileActive : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 250

  Gets if the picking tile command is active. This property is observable.
  Default Value: `false`

#### primitive : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 864

  Gets or sets the current selected primitive

#### primitiveBoundingSphere : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 130

  Gets or sets the show primitive bounding sphere state. This property is observable.
  Default Value: `false`

#### primitiveReferenceFrame : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 137

  Gets or sets the show primitive reference frame state. This property is observable.
  Default Value: `false`

#### primitivesSwitchText : String
Widgets/CesiumInspector/CesiumInspectorViewModel.js 292

  Gets or sets if the text on the primitive section expand button. This property is observable.
  Default Value: `'+'`

#### primitivesVisible : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 271

  Gets or sets if the primitive section is visible. This property is observable.
  Default Value: `false`

#### scene : Scene
Widgets/CesiumInspector/CesiumInspectorViewModel.js 525

  Gets the scene to control.

#### selectNE : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 819

  Gets the command to pick a tile

#### selectNW : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 804

  Gets the command to pick a tile

#### selectParent : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 789

  Gets the command to pick a tile

#### selectSE : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 849

  Gets the command to pick a tile

#### selectSW : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 834

  Gets the command to pick a tile

#### shaderCacheText : String
Widgets/CesiumInspector/CesiumInspectorViewModel.js 123

  Gets or sets the shader cache text. This property is observable.
  Default Value: `''`

#### showFrustums : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 561

  Gets the command to toggle `Scene.debugShowFrustums`

#### showGlobeDepth : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 633

  Gets the command to toggle the view of the Globe depth buffer

#### showPerformance : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 573

  Gets the command to toggle the visibility of the performance display.

#### showPickDepth : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 645

  Gets the command to toggle the view of the pick depth buffer

#### showPrimitiveBoundingSphere : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 585

  Gets the command to toggle the visibility of a BoundingSphere for a primitive

#### showPrimitiveReferenceFrame : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 597

  Gets the command to toggle the visibility of a `DebugModelMatrixPrimitive` for the model matrix of a primitive

#### showTileBoundingSphere : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 705

  Gets the command to toggle the visibility of a BoundingSphere for a selected tile

#### showTileCoordinates : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 693

  Gets the command to toggle the visibility of tile coordinates

#### showWireframe : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 621

  Gets the command to toggle the view of the Globe as a wireframe

#### suspendUpdates : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 201

  Gets or sets the suspend updates state. This property is observable.
  Default Value: `false`

#### terrainSwitchText : String
Widgets/CesiumInspector/CesiumInspectorViewModel.js 299

  Gets or sets if the text on the terrain section expand button. This property is observable.
  Default Value: `'+'`

#### terrainVisible : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 278

  Gets or sets if the terrain section is visible. This property is observable.
  Default Value: `false`

#### tile : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 899

  Gets or sets the current selected tile

#### tileBoundingSphere : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 151

  Gets or sets the show tile bounding sphere state. This property is observable.
  Default Value: `false`

#### tileCoordinates : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 208

  Gets or sets the show tile coordinates state. This property is observable.
  Default Value: `false`

#### tileText : String
Widgets/CesiumInspector/CesiumInspectorViewModel.js 222

  Gets or sets the selected tile information text. This property is observable.
  Default Value: `''`

#### toggleDropDown : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 549

  Gets the command to toggle the visibility of the drop down.

#### toggleGeneral : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 729

  Gets the command to expand and collapse the general section

#### togglePrimitives : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 741

  Gets the command to expand and collapse the primitives section

#### toggleTerrain : Command
Widgets/CesiumInspector/CesiumInspectorViewModel.js 753

  Gets the command to expand and collapse the terrain section

#### wireframe : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 165

  Gets or sets the show wireframe state. This property is observable.
  Default Value: `false`

### Methods

#### destroy()
Widgets/CesiumInspector/CesiumInspectorViewModel.js 966

  Destroys the widget. Should be called if permanently removing the widget from layout.

#### isDestroyed() → Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 958

  ##### Returns:

  true if the object has been destroyed, false otherwise.