# Cesium3DTilesInspectorViewModel

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

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 867

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

Default Value: `0`

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

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 388

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

Default Value: `Cesium3DTileColorBlendMode.HIGHLIGHT`

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

Gets the available blend modes

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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

Default Value: `0.00278`

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

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 762

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

Default Value: `4.0`

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

Gets the editor error message

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

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

Default Value: `false`

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

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

Default Value: `1.0`

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

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

Default Value: `1.0`

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

Gets the current feature of the view model.

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

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

Default Value: `false`

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

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

Default Value: `1.0`

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

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 241

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

Default Value: `true`

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

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 273

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

Default Value: `false`

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

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

Default Value: `0`

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

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

Default Value: `16`

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

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

Default Value: `false;`

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

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

Default Value: `false`

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

Gets the performance container

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

Gets or sets the pick state

Default Value: `false`

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

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

Default Value: `true`

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

Gets the pick statistics text. This property is observable.

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

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 337

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

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

Gets the scene

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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 233

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

Default Value: `false`

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

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 549

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

Default Value: `false`

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

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

Default Value: `true`

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

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

Default Value: `false`

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

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 1027

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 983

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 1145

Gets the statistics text. This property is observable.

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

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

Default Value: `'{}'`

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

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

Default Value: `false`

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

Gets the current tile of the view model

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

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

Default Value: `false`

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

Gets or sets the tileset of the view model.

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

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

Default Value: `false`

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

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

Default Value: `false`

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

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 1554

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 1421

Compiles the style in the style editor.

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

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

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

##### Returns:

true if the object has been destroyed, false otherwise.

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

Handles key press events on the style editor.

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

Toggles the visibility of the display section

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

Toggles the inspector visibility

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

Toggles the visibility of the logging section

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

Toggles the visibility of the optimization section

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

Toggles the pick tileset mode

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

Toggles the visibility of the style section

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

Toggles the visibility of the tile Debug Info section

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

Toggles the visibility of the tileset section

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

Toggles the visibility of the update section

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

Trims tile cache