Skip to content

KBE3D / KBCore / Cesium / CesiumInspectorViewModel

类: CesiumInspectorViewModel

The view model for CesiumInspector.

参数

The scene instance to use.

参数

The instance to use for performance container.

属性

frustums

frustums: boolean

Gets or sets the show frustums state. This property is observable.


frustumPlanes

frustumPlanes: boolean

Gets or sets the show frustum planes state. This property is observable.


performance

performance: boolean

Gets or sets the show performance display state. This property is observable.


shaderCacheText

shaderCacheText: string

Gets or sets the shader cache text. This property is observable.


primitiveBoundingSphere

primitiveBoundingSphere: boolean

Gets or sets the show primitive bounding sphere state. This property is observable.


primitiveReferenceFrame

primitiveReferenceFrame: boolean

Gets or sets the show primitive reference frame state. This property is observable.


filterPrimitive

filterPrimitive: boolean

Gets or sets the filter primitive state. This property is observable.


tileBoundingSphere

tileBoundingSphere: boolean

Gets or sets the show tile bounding sphere state. This property is observable.


filterTile

filterTile: boolean

Gets or sets the filter tile state. This property is observable.


wireframe

wireframe: boolean

Gets or sets the show wireframe state. This property is observable.


depthFrustum

depthFrustum: number

Gets or sets the index of the depth frustum to display. This property is observable.


suspendUpdates

suspendUpdates: boolean

Gets or sets the suspend updates state. This property is observable.


tileCoordinates

tileCoordinates: boolean

Gets or sets the show tile coordinates state. This property is observable.


frustumStatisticText

frustumStatisticText: string

Gets or sets the frustum statistic text. This property is observable.


tileText

tileText: string

Gets or sets the selected tile information text. This property is observable.


hasPickedPrimitive

hasPickedPrimitive: boolean

Gets if a primitive has been selected. This property is observable.


hasPickedTile

hasPickedTile: boolean

Gets if a tile has been selected. This property is observable


pickPrimitiveActive

pickPrimitiveActive: boolean

Gets if the picking primitive command is active. This property is observable.


pickTileActive

pickTileActive: boolean

Gets if the picking tile command is active. This property is observable.


dropDownVisible: boolean

Gets or sets if the cesium inspector drop down is visible. This property is observable.


generalVisible

generalVisible: boolean

Gets or sets if the general section is visible. This property is observable.


primitivesVisible

primitivesVisible: boolean

Gets or sets if the primitive section is visible. This property is observable.


terrainVisible

terrainVisible: boolean

Gets or sets if the terrain section is visible. This property is observable.


depthFrustumText

depthFrustumText: string

Gets or sets the index of the depth frustum text. This property is observable.


scene

scene: Scene

Gets the scene to control.


performanceContainer

performanceContainer: Element

Gets the container of the PerformanceDisplay


toggleDropDown

toggleDropDown: Command

Gets the command to toggle the visibility of the drop down.


showPrimitiveBoundingSphere

showPrimitiveBoundingSphere: Command

Gets the command to toggle the visibility of a BoundingSphere for a primitive


showPrimitiveReferenceFrame

showPrimitiveReferenceFrame: Command

Gets the command to toggle the visibility of a DebugModelMatrixPrimitive for the model matrix of a primitive


doFilterPrimitive

doFilterPrimitive: Command

Gets the command to toggle a filter that renders only a selected primitive


incrementDepthFrustum

incrementDepthFrustum: Command

Gets the command to increment the depth frustum index to be shown


decrementDepthFrustum

decrementDepthFrustum: Command

Gets the command to decrement the depth frustum index to be shown


showTileCoordinates

showTileCoordinates: Command

Gets the command to toggle the visibility of tile coordinates


showTileBoundingSphere

showTileBoundingSphere: Command

Gets the command to toggle the visibility of a BoundingSphere for a selected tile


doFilterTile

doFilterTile: Command

Gets the command to toggle a filter that renders only a selected tile


toggleGeneral

toggleGeneral: Command

Gets the command to expand and collapse the general section


togglePrimitives

togglePrimitives: Command

Gets the command to expand and collapse the primitives section


toggleTerrain

toggleTerrain: Command

Gets the command to expand and collapse the terrain section


pickPrimitive

pickPrimitive: Command

Gets the command to pick a primitive


pickTile

pickTile: Command

Gets the command to pick a tile


selectParent

selectParent: Command

Gets the command to pick a tile


selectNW

selectNW: Command

Gets the command to pick a tile


selectNE

selectNE: Command

Gets the command to pick a tile


selectSW

selectSW: Command

Gets the command to pick a tile


selectSE

selectSE: Command

Gets the command to pick a tile


primitive

primitive: Command

Gets or sets the current selected primitive


tile

tile: Command

Gets or sets the current selected tile

方法

isDestroyed()

isDestroyed(): boolean

返回

boolean

true if the object has been destroyed, false otherwise.


destroy()

destroy(): void

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

返回

void

构造函数

构造函数

new CesiumInspectorViewModel(scene: Scene, performanceContainer: Element): CesiumInspectorViewModel

参数

scene

Scene

performanceContainer

Element

返回

CesiumInspectorViewModel

KBE3D @3.0.0 Copyright © 2024-present KBE3D