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 |
成员变量
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
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
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
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
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.
pointCloudShading : Boolean
Gets or sets the flag to enable point cloud shading. This property is observable.
-
Default Value:
false
readonlyproperties : Array.<String>
Gets the names of the properties in the tileset. This property is observable.
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:
false
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
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
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
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
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
内置方法
staticCesium.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 |
返回值:
The formatted statistics
Compiles the style in the style editor.
Destroys the widget. Should be called if permanently
removing the widget from layout.
返回值:
true if the object has been destroyed, false otherwise.
styleEditorKeyPress()
Handles key press events on the style editor.
Toggles the visibility of the display section
toggleInspector()
Toggles the inspector visibility
Toggles the visibility of the logging section
toggleOptimization()
Toggles the visibility of the optimization section
togglePickTileset()
Toggles the pick tileset mode
Toggles the visibility of the style section
toggleTileDebugLabels()
Toggles the visibility of the tile Debug Info section
Toggles the visibility of the tileset section
Toggles the visibility of the update section
Trims tile cache