# CesiumInspectorViewModel

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

  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 667

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

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

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

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

  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 607

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

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

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

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

  Gets the command to toggle whether to suspend tile updates

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  Gets the container of the PerformanceDisplay

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

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

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

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

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

  Gets the command to pick a primitive

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

  Gets the command to pick a tile

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

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

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

  Gets or sets the current selected primitive

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

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

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

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

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

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

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

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

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

  Gets the scene to control.

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

  Gets the command to pick a tile

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

  Gets the command to pick a tile

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

  Gets the command to pick a tile

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

  Gets the command to pick a tile

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

  Gets the command to pick a tile

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

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

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

  Gets the command to toggle `Scene.debugShowFrustums`

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

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

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

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

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

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

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

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

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

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

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

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

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

  Gets the command to toggle the visibility of tile coordinates

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

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

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

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

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

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

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

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

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

  Gets or sets the current selected tile

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

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

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

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

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

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

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

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

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

  Gets the command to expand and collapse the general section

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

  Gets the command to expand and collapse the primitives section

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

  Gets the command to expand and collapse the terrain section

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

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

### Methods

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

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

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

  ##### Returns:

  true if the object has been destroyed, false otherwise.