# CesiumInspectorViewModel

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

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/CesiumInspector/CesiumInspectorViewModel.js 702

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

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

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

Default Value: `1`

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

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

Default Value: `''`

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

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

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

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

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

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

Default Value: `true`

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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

Default Value: `''`

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

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

Default Value: `true`

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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

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

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

Default Value: `false`

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

Gets the container of the PerformanceDisplay

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

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

Default Value: `false`

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

Gets the command to pick a primitive

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

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

Default Value: `false`

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

Gets the command to pick a tile

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

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

Default Value: `false`

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

Gets or sets the current selected primitive

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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

Default Value: `false`

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

Gets the scene to control.

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

Gets the command to pick a tile

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

Gets the command to pick a tile

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

Gets the command to pick a tile

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

Gets the command to pick a tile

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

Gets the command to pick a tile

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

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

Default Value: `''`

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

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

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

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

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

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

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

Gets the command to toggle the visibility of tile coordinates

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

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

Default Value: `false`

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

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

Default Value: `false`

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

Gets or sets the current selected tile

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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

Default Value: `''`

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

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

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

Gets the command to expand and collapse the general section

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

Gets the command to expand and collapse the primitives section

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

Gets the command to expand and collapse the terrain section

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

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

Default Value: `false`

### Methods

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

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

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

##### Returns:

true if the object has been destroyed, false otherwise.