麻辣GIS微信平台

更多 GIS 干货

微信关注不错过

Cesium API - Cesium3DTilesInspectorViewModel 中文文档

本文介绍下Cesium中 Cesium3DTilesInspectorViewModel API的详细使用说明。

Cesium3DTilesInspectorViewModel API 调用方法

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

成员变量

Gets or sets the base resolution. This property is observable.
Default Value: 0
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
Gets the available blend modes
Gets or sets the flag to colorize tiles. This property is observable.
Default Value: false
Gets or sets the flag to show the display section. This property is observable.
Default Value: false
Gets or sets the flag to enable dynamic screen space error. This property is observable.
Default Value: false
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
Gets or sets the dynamic screen space error factor. This property is observable.
Default Value: 4.0
Gets the editor error message
Gets or sets the flag to enable eye dome lighting. This property is observable.
Default Value: false
Gets or sets the eye dome lighting radius. This property is observable.
Default Value: 1.0
Gets or sets the eye dome lighting strength. This property is observable.
Default Value: 1.0
Gets the current feature of the view model.
Gets or sets the flag to suspend updates. This property is observable.
Default Value: false
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
Gets or sets the flag to show the inspector. This property is observable.
Default Value: true
Gets or sets the flag which determines whether siblings of visible tiles are always downloaded during traversal. This property is observable
Default Value: false
Gets or sets the flag to show the logging section. This property is observable.
Default Value: false
Gets or sets the maximum attenuation. This property is observable.
Default Value: 0
Gets or sets the maximum screen space error. This property is observable.
Default Value: 16
Gets or sets the flag to show the optimization info section. This property is observable.
Default Value: false;
Gets or sets the flag to enable performance display. This property is observable.
Default Value: false
Gets the performance container
Gets or sets the pick state
Default Value: false
Gets or sets the flag to enable picking. This property is observable.
Default Value: true
Gets the pick statistics text. This property is observable.
Gets or sets the flag to enable point cloud shading. This property is observable.
Default Value: false
Gets the names of the properties in the tileset. This property is observable.
Gets the scene
Gets or sets the flag to show bounding volumes. This property is observable.
Default Value: false
Gets or sets the flag to show content volumes. This property is observable.
Default Value: false
Gets or sets the flag to show tile geometric error. This property is observable.
Default Value: false
Displays the memory used per tile. This property is observable.
Default Value: false
Gets or sets the flag to show debug labels only for the currently picked tile. This property is observable.
Default Value: false
Gets or sets the flag to show pick statistics. This property is observable.
Default Value: false
Displays the number of commands, points, triangles and features used per tile. This property is observable.
Default Value: false
Gets or sets the flag to show request volumes. This property is observable.
Default Value: false
Gets or sets the flag to show statistics. This property is observable.
Default Value: true
Gets or sets the flag to show the tile url. This property is observable.
Default Value: false
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
Gets or sets the constant defining the minimum number of levels to skip when loading tiles. This property is observable.
Default Value: 1
Gets or sets the multiplier defining the minimum screen space error to skip. This property is observable.
Default Value: 16
Gets the statistics text. This property is observable.
Gets or sets the JSON for the tileset style. This property is observable.
Default Value: '{}'
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
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.
Gets or sets the flag to show the tileset section. This property is observable.
Default Value: false
Gets or sets the flag to show the update section. This property is observable.
Default Value: false
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.
Handles key press events on the style editor.
Toggles the visibility of the display section
Toggles the inspector visibility
Toggles the visibility of the logging section
Toggles the visibility of the optimization section
Toggles the pick tileset mode
Toggles the visibility of the style section
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

其他API

Cesium中文API文档手册(v1.63.1版本)参考:《Cesium中文API文档手册(v1.63.1版本)

相关阅读

麻辣GIS-Sailor

作者:

GIS爱好者,学GIS,更爱玩GIS。

声明

1.本文所分享的所有需要用户下载使用的内容(包括但不限于软件、数据、图片)来自于网络或者麻辣GIS粉丝自行分享,版权归该下载资源的合法拥有者所有,如有侵权请第一时间联系本站删除。

2.下载内容仅限个人学习使用,请切勿用作商用等其他用途,否则后果自负。

手机阅读
公众号关注
知识星球
手机阅读
麻辣GIS微信公众号关注
最新GIS干货
关注麻辣GIS知识星球
私享圈子

留言板(小编看到第一时间回复)