new CesiumInspectorViewModel(scene)
The view model for
CesiumInspector
.
Parameters:
Name | Type | Description |
---|---|---|
scene |
Scene | The scene instance to use. |
Throws:
-
scene is required.
- Type
- DeveloperError
Members
decrementDepthFrustum :Command
Gets the command to decrement the depth frustum index to be shown
Type:
depthFrustum :Number
Gets or sets the index of the depth frustum to display. This property is observable.
Type:
- Number
- Default Value:
- 1
- Source:
depthFrustumText :String
Gets or sets the index of the depth frustum text. This property is observable.
Type:
- String
- Default Value:
- '1 of 1'
- Source:
doFilterPrimitive :Command
Gets the command to toggle a filter that renders only a selected primitive
Type:
doFilterTile :Command
Gets the command to toggle a filter that renders only a selected tile
Type:
doSuspendUpdates :Command
Gets the command to toggle whether to suspend tile updates
Type:
dropDownVisible :Boolean
Gets or sets if the cesium inspector drop down is visible. This property is observable.
Type:
- Boolean
- Default Value:
- true
- Source:
filterPrimitive :Boolean
Gets or sets the filter primitive state. This property is observable.
Type:
- Boolean
- Default Value:
- false
- Source:
filterTile :Boolean
Gets or sets the filter tile state. This property is observable.
Type:
- Boolean
- Default Value:
- false
- Source:
frustums :Boolean
Gets or sets the show frustums state. This property is observable.
Type:
- Boolean
- Default Value:
- false
- Source:
frustumStatisticText :String
Gets or sets the frustum statistic text. This property is observable.
Type:
- String
- Default Value:
- ''
- Source:
generalSwitchText :String
Gets or sets if the text on the general section expand button. This property is observable.
Type:
- String
- Default Value:
- '-'
- Source:
generalVisible :Boolean
Gets or sets if the general section is visible. This property is observable.
Type:
- Boolean
- Default Value:
- true
- Source:
globeDepth :Boolean
Gets or sets the show globe depth state. This property is observable.
Type:
- Boolean
- Default Value:
- false
- Source:
hasPickedPrimitive :Boolean
Gets if a primitive has been selected. This property is observable.
Type:
- Boolean
- Default Value:
- false
- Source:
hasPickedTile :Boolean
Gets if a tile has been selected. This property is observable
Type:
- Boolean
- Default Value:
- false
- Source:
incrementDepthFrustum :Command
Gets the command to increment the depth frustum index to be shown
Type:
performance :Boolean
Gets or sets the show performance display state. This property is observable.
Type:
- Boolean
- Default Value:
- false
- Source:
performanceContainer :Element
Gets the container of the PerformanceDisplay
Type:
- Element
pickDepth :Boolean
Gets or sets the show pick depth state. This property is observable.
Type:
- Boolean
- Default Value:
- false
- Source:
pickPimitiveActive :Boolean
Gets if the picking primitive command is active. This property is observable.
Type:
- Boolean
- Default Value:
- false
- Source:
pickPrimitive :Command
Gets the command to pick a primitive
Type:
pickTile :Command
Gets the command to pick a tile
Type:
pickTileActive :Boolean
Gets if the picking tile command is active. This property is observable.
Type:
- Boolean
- Default Value:
- false
- Source:
primitive :Command
Gets or sets the current selected primitive
Type:
primitiveBoundingSphere :Boolean
Gets or sets the show primitive bounding sphere state. This property is observable.
Type:
- Boolean
- Default Value:
- false
- Source:
primitiveReferenceFrame :Boolean
Gets or sets the show primitive reference frame state. This property is observable.
Type:
- Boolean
- Default Value:
- false
- Source:
primitivesSwitchText :String
Gets or sets if the text on the primitive section expand button. This property is observable.
Type:
- String
- Default Value:
- '+'
- Source:
primitivesVisible :Boolean
Gets or sets if the primitive section is visible. This property is observable.
Type:
- Boolean
- Default Value:
- false
- Source:
scene :Scene
Gets the scene to control.
Type:
selectNE :Command
Gets the command to pick a tile
Type:
selectNW :Command
Gets the command to pick a tile
Type:
selectParent :Command
Gets the command to pick a tile
Type:
selectSE :Command
Gets the command to pick a tile
Type:
selectSW :Command
Gets the command to pick a tile
Type:
shaderCacheText :String
Gets or sets the shader cache text. This property is observable.
Type:
- String
- Default Value:
- ''
- Source:
showFrustums :Command
Gets the command to toggle
Scene.debugShowFrustums
Type:
showGlobeDepth :Command
Gets the command to toggle the view of the Globe depth buffer
Type:
showPerformance :Command
Gets the command to toggle the visibility of the performance display.
Type:
showPickDepth :Command
Gets the command to toggle the view of the pick depth buffer
Type:
showPrimitiveBoundingSphere :Command
Gets the command to toggle the visibility of a BoundingSphere for a primitive
Type:
showPrimitiveReferenceFrame :Command
Gets the command to toggle the visibility of a
DebugModelMatrixPrimitive
for the model matrix of a primitive
Type:
showTileBoundingSphere :Command
Gets the command to toggle the visibility of a BoundingSphere for a selected tile
Type:
showTileCoordinates :Command
Gets the command to toggle the visibility of tile coordinates
Type:
showWireframe :Command
Gets the command to toggle the view of the Globe as a wireframe
Type:
suspendUpdates :Boolean
Gets or sets the suspend updates state. This property is observable.
Type:
- Boolean
- Default Value:
- false
- Source:
terrainSwitchText :String
Gets or sets if the text on the terrain section expand button. This property is observable.
Type:
- String
- Default Value:
- '+'
- Source:
terrainVisible :Boolean
Gets or sets if the terrain section is visible. This property is observable.
Type:
- Boolean
- Default Value:
- false
- Source:
tile :Command
Gets or sets the current selected tile
Type:
tileBoundingSphere :Boolean
Gets or sets the show tile bounding sphere state. This property is observable.
Type:
- Boolean
- Default Value:
- false
- Source:
tileCoordinates :Boolean
Gets or sets the show tile coordinates state. This property is observable.
Type:
- Boolean
- Default Value:
- false
- Source:
tileText :String
Gets or sets the selected tile information text. This property is observable.
Type:
- String
- Default Value:
- ''
- Source:
toggleDropDown :Command
Gets the command to toggle the visibility of the drop down.
Type:
toggleGeneral :Command
Gets the command to expand and collapse the general section
Type:
togglePrimitives :Command
Gets the command to expand and collapse the primitives section
Type:
toggleTerrain :Command
Gets the command to expand and collapse the terrain section
Type:
wireframe :Boolean
Gets or sets the show wireframe state. This property is observable.
Type:
- Boolean
- Default Value:
- false
- Source:
Methods
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.
- Type
- Boolean