# Cesium3DTilesInspectorViewModel

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

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 857

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

Default Value: `0`

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

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 378

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

Default Value: `Cesium3DTileColorBlendMode.HIGHLIGHT`

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

Gets the available blend modes

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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

Default Value: `0.00278`

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

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 752

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

Default Value: `4.0`

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

Gets the editor error message

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

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

Default Value: `false`

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

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

Default Value: `1.0`

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

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

Default Value: `1.0`

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

Gets the current feature of the view model.

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

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

Default Value: `false`

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

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

Default Value: `1.0`

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

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 231

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

Default Value: `true`

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

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 263

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

Default Value: `false`

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

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

Default Value: `0`

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

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

Default Value: `16`

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

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

Default Value: `false;`

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

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

Default Value: `false`

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

Gets the performance container

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

Gets or sets the pick state

Default Value: `false`

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

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

Default Value: `true`

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

Gets the pick statistics text. This property is observable.

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

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 327

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

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

Gets the scene

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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 223

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

Default Value: `false`

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

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 539

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

Default Value: `false`

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

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

Default Value: `true`

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

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

Default Value: `false`

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

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 1017

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 973

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 1135

Gets the statistics text. This property is observable.

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

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

Default Value: `'{}'`

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

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

Default Value: `false`

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

Gets the current tile of the view model

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

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

Default Value: `false`

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

Gets or sets the tileset of the view model.

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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 1544

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 1411

Compiles the style in the style editor.

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

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

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

##### Returns:

true if the object has been destroyed, false otherwise.

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

Handles key press events on the style editor.

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

Toggles the visibility of the display section

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

Toggles the inspector visibility

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

Toggles the visibility of the logging section

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

Toggles the visibility of the optimization section

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

Toggles the pick tileset mode

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

Toggles the visibility of the style section

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

Toggles the visibility of the tile Debug Info section

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

Toggles the visibility of the tileset section

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

Toggles the visibility of the update section

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

Trims tile cache