# Cesium3DTilesInspectorViewModel

#### new Cesium.Cesium3DTilesInspectorViewModel(scene, performanceContainer)
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 170

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/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 882

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

Default Value: `0`

#### baseScreenSpaceError : number
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1020

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/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 390

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

Default Value: `Cesium3DTileColorBlendMode.HIGHLIGHT`

#### readonly colorBlendModes : Array.<object>
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1195

Gets the available blend modes

#### colorize : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 471

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

Default Value: `false`

#### displayVisible : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 247

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

Default Value: `false`

#### dynamicScreenSpaceError : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 369

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

Default Value: `false`

#### dynamicScreenSpaceErrorDensity : number
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 727

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

Default Value: `2.0e-4`

#### dynamicScreenSpaceErrorDensitySliderValue : number
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 737

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: `2.0e-4`

#### dynamicScreenSpaceErrorFactor : number
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 772

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

Default Value: `24.0`

#### readonly editorError : string
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1207

Gets the editor error message

#### eyeDomeLighting : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 902

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

Default Value: `false`

#### eyeDomeLightingRadius : number
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 948

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

Default Value: `1.0`

#### eyeDomeLightingStrength : number
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 925

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

Default Value: `1.0`

#### feature : Cesium3DTileFeature
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1301

Gets the current feature of the view model.

#### freezeFrame : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 577

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

Default Value: `false`

#### geometricErrorScale : number
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 834

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

Default Value: `1.0`

#### hasEnabledWireframe : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 303

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

Default Value: `false`

#### immediatelyLoadDesiredLevelOfDetail : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1062

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/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 231

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

Default Value: `true`

#### loadSiblings : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1082

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/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 263

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

Default Value: `false`

#### maximumAttenuation : number
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 858

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

Default Value: `0`

#### maximumScreenSpaceError : number
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 704

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

Default Value: `16`

#### optimizationVisible : boolean
widgets/Source/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/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 198

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

Default Value: `false`

#### readonly performanceContainer : HTMLElement
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1148

Gets the performance container

#### pickActive : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 956

Gets or sets the pick state

Default Value: `false`

#### picking : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 450

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

Default Value: `true`

#### readonly pickStatisticsText : string
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1171

Gets the pick statistics text. This property is observable.

#### pointCloudShading : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 811

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

Default Value: `false`

#### readonly properties : Array.<string>
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 339

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

#### readonly resourceCacheStatisticsText : string
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1183

Gets the resource cache statistics text. This property is observable.

#### readonly scene : Scene
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1137

Gets the scene

#### showBoundingVolumes : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 513

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

Default Value: `false`

#### showContentBoundingVolumes : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 534

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

Default Value: `false`

#### showGeometricError : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 618

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

Default Value: `false`

#### showMemoryUsage : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 660

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

Default Value: `false`

#### showOnlyPickedTileDebugLabel : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 597

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/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 214

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

Default Value: `true`

#### showRenderingStatistics : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 639

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

Default Value: `false`

#### showRequestVolumes : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 555

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

Default Value: `false`

#### showResourceCacheStatistics : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 223

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

Default Value: `false`

#### showStatistics : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 206

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

Default Value: `true`

#### showUrl : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 681

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

Default Value: `false`

#### skipLevelOfDetail : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 976

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/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1042

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/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 998

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

Default Value: `16`

#### readonly statisticsText : string
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1160

Gets the statistics text. This property is observable.

#### styleString : string
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 295

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

Default Value: `'{}'`

#### styleVisible : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 271

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

Default Value: `false`

#### tile : Cesium3DTile
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1336

Gets the current tile of the view model

#### tileDebugLabelsVisible : boolean
widgets/Source/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/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1218

Gets or sets the tileset of the view model.

#### tilesetVisible : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 239

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

Default Value: `false`

#### updateVisible : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 255

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

Default Value: `false`

#### wireframe : boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 492

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/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1601

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/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1463

Compiles the style in the style editor.

#### destroy()
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1581

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

#### isDestroyed() → boolean
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1573

##### Returns:

true if the object has been destroyed, false otherwise.

#### styleEditorKeyPress()
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1488

Handles key press events on the style editor.

#### toggleDisplay()
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1412

Toggles the visibility of the display section

#### toggleInspector()
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1398

Toggles the inspector visibility

#### toggleLogging()
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1426

Toggles the visibility of the logging section

#### toggleOptimization()
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1447

Toggles the visibility of the optimization section

#### togglePickTileset()
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1391

Toggles the pick tileset mode

#### toggleStyle()
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1433

Toggles the visibility of the style section

#### toggleTileDebugLabels()
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1440

Toggles the visibility of the tile Debug Info section

#### toggleTileset()
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1405

Toggles the visibility of the tileset section

#### toggleUpdate()
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1419

Toggles the visibility of the update section

#### trimTilesCache()
widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js 1454

Trims tile cache

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