# CesiumInspectorViewModel

#### new Cesium.CesiumInspectorViewModel(scene, performanceContainer)
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 65

The view model for `CesiumInspector`.

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

### Members

#### decrementDepthFrustum : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 674

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

#### depthFrustum : number
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 166

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

Default Value: `1`

#### depthFrustumText : string
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 258

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

Default Value: `''`

#### doFilterPrimitive : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 650

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

#### doFilterTile : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 710

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

#### dropDownVisible : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 230

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

Default Value: `true`

#### filterPrimitive : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 138

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

Default Value: `false`

#### filterTile : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 152

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

Default Value: `false`

#### frustumPlanes : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 103

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

Default Value: `false`

#### frustums : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 96

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

Default Value: `false`

#### frustumStatisticText : string
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 188

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

Default Value: `''`

#### generalVisible : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 237

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

Default Value: `true`

#### hasPickedPrimitive : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 202

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

Default Value: `false`

#### hasPickedTile : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 209

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

Default Value: `false`

#### incrementDepthFrustum : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 662

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

#### performance : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 110

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

Default Value: `false`

#### performanceContainer : Element
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 602

Gets the container of the PerformanceDisplay

#### pickPrimitive : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 758

Gets the command to pick a primitive

#### pickPrimitiveActive : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 216

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

Default Value: `false`

#### pickTile : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 770

Gets the command to pick a tile

#### pickTileActive : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 223

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

Default Value: `false`

#### primitive : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 857

Gets or sets the current selected primitive

#### primitiveBoundingSphere : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 124

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

Default Value: `false`

#### primitiveReferenceFrame : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 131

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

Default Value: `false`

#### primitivesVisible : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 244

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

Default Value: `false`

#### scene : Scene
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 590

Gets the scene to control.

#### selectNE : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 812

Gets the command to pick a tile

#### selectNW : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 797

Gets the command to pick a tile

#### selectParent : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 782

Gets the command to pick a tile

#### selectSE : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 842

Gets the command to pick a tile

#### selectSW : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 827

Gets the command to pick a tile

#### shaderCacheText : string
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 117

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

Default Value: `''`

#### showPrimitiveBoundingSphere : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 626

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

#### showPrimitiveReferenceFrame : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 638

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

#### showTileBoundingSphere : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 698

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

#### showTileCoordinates : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 686

Gets the command to toggle the visibility of tile coordinates

#### suspendUpdates : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 174

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

Default Value: `false`

#### terrainVisible : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 251

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

Default Value: `false`

#### tile : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 891

Gets or sets the current selected tile

#### tileBoundingSphere : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 145

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

Default Value: `false`

#### tileCoordinates : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 181

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

Default Value: `false`

#### tileText : string
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 195

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

Default Value: `''`

#### toggleDropDown : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 614

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

#### toggleGeneral : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 722

Gets the command to expand and collapse the general section

#### togglePrimitives : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 734

Gets the command to expand and collapse the primitives section

#### toggleTerrain : Command
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 746

Gets the command to expand and collapse the terrain section

#### wireframe : boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 159

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

Default Value: `false`

### Methods

#### destroy()
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 961

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

#### isDestroyed() → boolean
widgets/Source/CesiumInspector/CesiumInspectorViewModel.js 953

##### Returns:

true if the object has been destroyed, false otherwise.

Need help? The fastest way to get answers is from the community and team on the Cesium Forum.