Cesium3DTilesInspectorViewModel

new Ditap.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

baseResolution : number

Gets or sets the base resolution. This property is observable.
Default Value: 0

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

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

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

dynamicScreenSpaceErrorFactor : number

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

readonly editorError : string

Gets the editor error message

eyeDomeLighting : boolean

Gets or sets the flag to enable eye dome lighting. This property is observable.
Default Value: false

eyeDomeLightingRadius : number

Gets or sets the eye dome lighting radius. This property is observable.
Default Value: 1.0

eyeDomeLightingStrength : number

Gets or sets the eye dome lighting strength. This property is observable.
Default Value: 1.0
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

geometricErrorScale : number

Gets or sets the geometric error scale. This property is observable.
Default Value: 1.0

hasEnabledWireframe : boolean

Gets or sets the JSON for the tileset enableDebugWireframe attribute. 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

maximumAttenuation : number

Gets or sets the maximum attenuation. This property is observable.
Default Value: 0

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

readonly performanceContainer : 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

readonly pickStatisticsText : string

Gets the pick statistics text. This property is observable.

pointCloudShading : boolean

Gets or sets the flag to enable point cloud shading. This property is observable.
Default Value: false

readonly properties : Array.<string>

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

readonly resourceCacheStatisticsText : string

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

readonly scene : 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

showMemoryUsage : boolean

Displays the memory used per tile. 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: true

showRenderingStatistics : boolean

Displays the number of commands, points, triangles and features used per tile. 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

showResourceCacheStatistics : boolean

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

showStatistics : boolean

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

showUrl : boolean

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

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

readonly statisticsText : 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

static Ditap.Cesium3DTilesInspectorViewModel.getStatistics(tileset, isPick)string

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()

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