# Cesium3DTilesInspectorViewModel

#### new Cesium.Cesium3DTilesInspectorViewModel(scene, performanceContainer)
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 184

The view model for `Cesium3DTilesInspector`.

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

### Members

#### baseResolution : Number
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 870

Gets or sets the base resolution. This property is observable.

Default Value: `0`

#### baseScreenSpaceError : Number
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1008

Gets or sets the screen space error that must be reached before skipping levels of detail. This property is observable.

Default Value: `1024`

#### colorBlendMode : Cesium3DTileColorBlendMode
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 382

Gets or sets the color blend mode. This property is observable.

Default Value: `Cesium3DTileColorBlendMode.HIGHLIGHT`

#### readonly colorBlendModes : Array.<Object>
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1171

Gets the available blend modes

#### colorize : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 463

Gets or sets the flag to colorize tiles. This property is observable.

Default Value: `false`

#### displayVisible : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 251

Gets or sets the flag to show the display section. This property is observable.

Default Value: `false`

#### dynamicScreenSpaceError : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 361

Gets or sets the flag to enable dynamic screen space error. This property is observable.

Default Value: `false`

#### dynamicScreenSpaceErrorDensity : Number
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 719

Gets or sets the dynamic screen space error density. This property is observable.

Default Value: `0.00278`

#### dynamicScreenSpaceErrorDensitySliderValue : Number
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 729

Gets or sets the dynamic screen space error density slider value. This allows the slider to be exponential because values tend to be closer to 0 than 1. This property is observable.

Default Value: `0.00278`

#### dynamicScreenSpaceErrorFactor : Number
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 760

Gets or sets the dynamic screen space error factor. This property is observable.

Default Value: `4.0`

#### readonly editorError : String
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1183

Gets the editor error message

#### eyeDomeLighting : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 890

Gets or sets the flag to enable eye dome lighting. This property is observable.

Default Value: `false`

#### eyeDomeLightingRadius : Number
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 936

Gets or sets the eye dome lighting radius. This property is observable.

Default Value: `1.0`

#### eyeDomeLightingStrength : Number
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 913

Gets or sets the eye dome lighting strength. This property is observable.

Default Value: `1.0`

#### feature : Cesium3DTileFeature
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1280

Gets the current feature of the view model.

#### freezeFrame : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 569

Gets or sets the flag to suspend updates. This property is observable.

Default Value: `false`

#### geometricErrorScale : Number
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 822

Gets or sets the geometric error scale. This property is observable.

Default Value: `1.0`

#### immediatelyLoadDesiredLevelOfDetail : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1050

Gets or sets the flag which, when true, only tiles that meet the maximum screen space error will ever be downloaded. This property is observable.

Default Value: `false`

#### inspectorVisible : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 235

Gets or sets the flag to show the inspector. This property is observable.

Default Value: `true`

#### loadSiblings : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1070

Gets or sets the flag which determines whether siblings of visible tiles are always downloaded during traversal. This property is observable

Default Value: `false`

#### loggingVisible : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 267

Gets or sets the flag to show the logging section. This property is observable.

Default Value: `false`

#### maximumAttenuation : Number
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 846

Gets or sets the maximum attenuation. This property is observable.

Default Value: `0`

#### maximumScreenSpaceError : Number
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 696

Gets or sets the maximum screen space error. This property is observable.

Default Value: `16`

#### optimizationVisible : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 291

Gets or sets the flag to show the optimization info section. This property is observable.

Default Value: `false;`

#### performance : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 211

Gets or sets the flag to enable performance display. This property is observable.

Default Value: `false`

#### readonly performanceContainer : HTMLElement
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1136

Gets the performance container

#### pickActive : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 944

Gets or sets the pick state

Default Value: `false`

#### picking : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 442

Gets or sets the flag to enable picking. This property is observable.

Default Value: `true`

#### readonly pickStatisticsText : String
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1159

Gets the pick statistics text. This property is observable.

#### pointCloudShading : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 799

Gets or sets the flag to enable point cloud shading. This property is observable.

Default Value: `false`

#### readonly properties : Array.<String>
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 331

Gets the names of the properties in the tileset. This property is observable.

#### readonly scene : Scene
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1125

Gets the scene

#### showBoundingVolumes : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 505

Gets or sets the flag to show bounding volumes. This property is observable.

Default Value: `false`

#### showContentBoundingVolumes : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 526

Gets or sets the flag to show content volumes. This property is observable.

Default Value: `false`

#### showGeometricError : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 610

Gets or sets the flag to show tile geometric error. This property is observable.

Default Value: `false`

#### showMemoryUsage : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 652

Displays the memory used per tile. This property is observable.

Default Value: `false`

#### showOnlyPickedTileDebugLabel : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 589

Gets or sets the flag to show debug labels only for the currently picked tile. This property is observable.

Default Value: `false`

#### showPickStatistics : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 227

Gets or sets the flag to show pick statistics. This property is observable.

Default Value: `false`

#### showRenderingStatistics : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 631

Displays the number of commands, points, triangles and features used per tile. This property is observable.

Default Value: `false`

#### showRequestVolumes : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 547

Gets or sets the flag to show request volumes. This property is observable.

Default Value: `false`

#### showStatistics : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 219

Gets or sets the flag to show statistics. This property is observable.

Default Value: `true`

#### showUrl : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 673

Gets or sets the flag to show the tile url. This property is observable.

Default Value: `false`

#### skipLevelOfDetail : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 964

Gets or sets the flag to determine if level of detail skipping should be applied during the traversal. This property is observable.

Default Value: `true`

#### skipLevels : Number
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1030

Gets or sets the constant defining the minimum number of levels to skip when loading tiles. This property is observable.

Default Value: `1`

#### skipScreenSpaceErrorFactor : Number
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 986

Gets or sets the multiplier defining the minimum screen space error to skip. This property is observable.

Default Value: `16`

#### readonly statisticsText : String
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1148

Gets the statistics text. This property is observable.

#### styleString : String
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 299

Gets or sets the JSON for the tileset style. This property is observable.

Default Value: `'{}'`

#### styleVisible : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 275

Gets or sets the flag to show the style section. This property is observable.

Default Value: `false`

#### tile : Cesium3DTile
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1315

Gets the current tile of the view model

#### tileDebugLabelsVisible : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 283

Gets or sets the flag to show the tile info section. This property is observable.

Default Value: `false`

#### tileset : Cesium3DTileset
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1194

Gets or sets the tileset of the view model.

#### tilesetVisible : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 243

Gets or sets the flag to show the tileset section. This property is observable.

Default Value: `false`

#### updateVisible : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 259

Gets or sets the flag to show the update section. This property is observable.

Default Value: `false`

#### wireframe : Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 484

Gets or sets the flag to draw with wireframe. This property is observable.

Default Value: `false`

### Methods

#### static Cesium.Cesium3DTilesInspectorViewModel.getStatistics(tileset, isPick) → String
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1575

Generates an HTML string of the statistics

Name | Type | Description
--- | --- | ---
`tileset` | Cesium3DTileset | The tileset
`isPick` | Boolean | Whether this is getting the statistics for the pick pass

##### Returns:

The formatted statistics

#### compileStyle()
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1438

Compiles the style in the style editor.

#### destroy()
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1555

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

#### isDestroyed() → Boolean
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1547

##### Returns:

true if the object has been destroyed, false otherwise.

#### styleEditorKeyPress()
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1463

Handles key press events on the style editor.

#### toggleDisplay()
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1387

Toggles the visibility of the display section

#### toggleInspector()
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1373

Toggles the inspector visibility

#### toggleLogging()
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1401

Toggles the visibility of the logging section

#### toggleOptimization()
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1422

Toggles the visibility of the optimization section

#### togglePickTileset()
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1366

Toggles the pick tileset mode

#### toggleStyle()
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1408

Toggles the visibility of the style section

#### toggleTileDebugLabels()
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1415

Toggles the visibility of the tile Debug Info section

#### toggleTileset()
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1380

Toggles the visibility of the tileset section

#### toggleUpdate()
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1394

Toggles the visibility of the update section

#### trimTilesCache()
Widgets/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1429

Trims tile cache