Appearance
KBE3D / KBCore / Cesium / VoxelInspectorViewModel
类: VoxelInspectorViewModel
The view model for VoxelInspector.
参数
The scene instance to use.
属性
scene
readonlyscene:Scene
Gets the scene
voxelPrimitive
voxelPrimitive:
VoxelPrimitive
Gets or sets the primitive of the view model.
方法
toggleInspector()
toggleInspector():
void
Toggles the inspector visibility
返回
void
toggleDisplay()
toggleDisplay():
void
Toggles the visibility of the display section
返回
void
toggleTransform()
toggleTransform():
void
Toggles the visibility of the transform section
返回
void
toggleBounds()
toggleBounds():
void
Toggles the visibility of the bounds section
返回
void
toggleClipping()
toggleClipping():
void
Toggles the visibility of the clipping section
返回
void
toggleShader()
toggleShader():
void
Toggles the visibility of the shader section
返回
void
compileShader()
compileShader():
void
Compiles the shader in the shader editor.
返回
void
shaderEditorKeyPress()
shaderEditorKeyPress():
void
Handles key press events on the shader editor.
返回
void
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 VoxelInspectorViewModel(
scene:Scene):VoxelInspectorViewModel
参数
scene
返回
VoxelInspectorViewModel
