# CesiumInspectorViewModel

#### new Cesium.CesiumInspectorViewModel(scene, performanceContainer)
Widgets/CesiumInspector/CesiumInspectorViewModel.js 74

The view model for `CesiumInspector`.

Name | Type | Description
--- | --- | ---
`scene` | Scene | The scene instance to use.
`performanceContainer` | PerformanceContainer | The instance to use for performance container.

### Members

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

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

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

Gets or sets the index of the depth frustum to display. This property is observable.

Default Value: `1`

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

Gets or sets the index of the depth frustum text. This property is observable.

Default Value: `''`

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

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

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

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

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

Gets or sets if the cesium inspector drop down is visible. This property is observable.

Default Value: `true`

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

Gets or sets the filter primitive state. This property is observable.

Default Value: `false`

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

Gets or sets the filter tile state. This property is observable.

Default Value: `false`

#### frustumPlanes : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 112

Gets or sets the show frustum planes state. This property is observable.

Default Value: `false`

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

Gets or sets the show frustums state. This property is observable.

Default Value: `false`

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

Gets or sets the frustum statistic text. This property is observable.

Default Value: `''`

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

Gets or sets if the general section is visible. This property is observable.

Default Value: `true`

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

Gets or sets the show globe depth state. This property is observable.

Default Value: `false`

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

Gets if a primitive has been selected. This property is observable.

Default Value: `false`

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

Gets if a tile has been selected. This property is observable

Default Value: `false`

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

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

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

Gets or sets the show performance display state. This property is observable.

Default Value: `false`

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

Gets the container of the PerformanceDisplay

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

Gets or sets the show pick depth state. This property is observable.

Default Value: `false`

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

Gets the command to pick a primitive

#### pickPrimitiveActive : Boolean
Widgets/CesiumInspector/CesiumInspectorViewModel.js 239

Gets if the picking primitive command is active. This property is observable.

Default Value: `false`

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

Gets the command to pick a tile

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

Gets if the picking tile command is active. This property is observable.

Default Value: `false`

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

Gets or sets the current selected primitive

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

Gets or sets the show primitive bounding sphere state. This property is observable.

Default Value: `false`

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

Gets or sets the show primitive reference frame state. This property is observable.

Default Value: `false`

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

Gets or sets if the primitive section is visible. This property is observable.

Default Value: `false`

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

Gets the scene to control.

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

Gets the command to pick a tile

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

Gets the command to pick a tile

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

Gets the command to pick a tile

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

Gets the command to pick a tile

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

Gets the command to pick a tile

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

Gets or sets the shader cache text. This property is observable.

Default Value: `''`

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

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

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

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

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

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

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

Gets the command to toggle the visibility of tile coordinates

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

Gets or sets the suspend updates state. This property is observable.

Default Value: `false`

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

Gets or sets if the terrain section is visible. This property is observable.

Default Value: `false`

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

Gets or sets the current selected tile

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

Gets or sets the show tile bounding sphere state. This property is observable.

Default Value: `false`

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

Gets or sets the show tile coordinates state. This property is observable.

Default Value: `false`

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

Gets or sets the selected tile information text. This property is observable.

Default Value: `''`

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

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

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

Gets the command to expand and collapse the general section

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

Gets the command to expand and collapse the primitives section

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

Gets the command to expand and collapse the terrain section

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

Gets or sets the show wireframe state. This property is observable.

Default Value: `false`

### Methods

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

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

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

##### Returns:

true if the object has been destroyed, false otherwise.