Cesium3DTilesInspectorViewModel

new Cesium.Cesium3DTilesInspectorViewModel(scene, performanceContainer)

The view model for Cesium3DTilesInspector.
Name Type Description
scene Scene The scene instance to use.
performanceContainer HTMLElement The container for the performance display

Members

staticCesium.Cesium3DTilesInspectorViewModel.getStatistics

Generates an HTML string of the statistics

baseScreenSpaceError : Number

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

Gets or sets the color blend mode. This property is observable.
Default Value: Cesium3DTileColorBlendMode.HIGHLIGHT

readonlycolorBlendModes : Array.<Object>

Gets the available blend modes

colorize : Boolean

Gets or sets the flag to colorize tiles. This property is observable.
Default Value: false

displayVisible : Boolean

Gets or sets the flag to show the display section. This property is observable.
Default Value: false

dynamicScreenSpaceError : Boolean

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

dynamicScreenSpaceErrorDensity : Number

Gets or sets the dynamic screen space error density. This property is observable.
Default Value: 0.00278

dynamicScreenSpaceErrorDensitySliderValue : Number

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

Gets or sets the dynamic screen space error factor. This property is observable.
Default Value: 4.0

readonlyeditorError : String

Gets the editor error message
Gets the current feature of the view model.

freezeFrame : Boolean

Gets or sets the flag to suspend updates. This property is observable.
Default Value: false

immediatelyLoadDesiredLevelOfDetail : Boolean

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

Gets or sets the flag to show the inspector. This property is observable.
Default Value: true

loadSiblings : Boolean

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

Gets or sets the flag to show the logging section. This property is observable.
Default Value: false

maximumScreenSpaceError : Number

Gets or sets the maximum screen space error. This property is observable.
Default Value: 16

optimizationVisible : Boolean

Gets or sets the flag to show the optimization info section. This property is observable.
Default Value: false;

performance : Boolean

Gets or sets the flag to enable performance display. This property is observable.
Default Value: false

readonlyperformanceContainer : HTMLElement

Gets the performance container

pickActive : Boolean

Gets or sets the pick state
Default Value: false

picking : Boolean

Gets or sets the flag to enable picking. This property is observable.
Default Value: true

readonlypickStatisticsText : String

Gets the pick statistics text. This property is observable.

readonlyproperties : Array.<String>

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

readonlyscene : Scene

Gets the scene

showBoundingVolumes : Boolean

Gets or sets the flag to show bounding volumes. This property is observable.
Default Value: false

showContentBoundingVolumes : Boolean

Gets or sets the flag to show content volumes. This property is observable.
Default Value: false

showGeometricError : Boolean

Gets or sets the flag to show tile geometric error. This property is observable.
Default Value: false

showOnlyPickedTileDebugLabel : Boolean

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

showPickStatistics : Boolean

Gets or sets the flag to show pick statistics. This property is observable.
Default Value: false

showRequestVolumes : Boolean

Gets or sets the flag to show request volumes. This property is observable.
Default Value: false

showStatistics : Boolean

Gets or sets the flag to show statistics. This property is observable.
Default Value: true

skipLevelOfDetail : Boolean

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

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

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

readonlystatisticsText : String

Gets the statistics text. This property is observable.

styleString : String

Gets or sets the JSON for the tileset style. This property is observable.
Default Value: '{}'

styleVisible : Boolean

Gets or sets the flag to show the style section. This property is observable.
Default Value: false

tile : Cesium3DTile

Gets the current tile of the view model

tileDebugLabelsVisible : Boolean

Gets or sets the flag to show the tile info section. This property is observable.
Default Value: false

tileset : Cesium3DTileset

Gets or sets the tileset of the view model.

tilesetVisible : Boolean

Gets or sets the flag to show the tileset section. This property is observable.
Default Value: false

updateVisible : Boolean

Gets or sets the flag to show the update section. This property is observable.
Default Value: false

wireframe : Boolean

Gets or sets the flag to draw with wireframe. This property is observable.
Default Value: false

Methods

compileStyle()

Compiles the style in the style editor.

destroy()

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

isDestroyed()Boolean

Returns:
true if the object has been destroyed, false otherwise.

styleEditorKeyPress()

Handles key press events on the style editor.

toggleDisplay()

Toggles the visibility of the display section

toggleInspector()

Toggles the inspector visibility

toggleLogging()

Toggles the visibility of the logging section

toggleOptimization()

Toggles the visibility of the optimization section

togglePickTileset()

Toggles the pick tileset mode

toggleStyle()

Toggles the visibility of the style section

toggleTileDebugLabels()

Toggles the visibility of the tile Debug Info section

toggleTileset()

Toggles the visibility of the tileset section

toggleUpdate()

Toggles the visibility of the update section

trimTilesCache()

Trims tile cache