VoxelInspectorViewModel

new Ditap.VoxelInspectorViewModel(scene)

The view model for VoxelInspector.
Name Type Description
scene Scene The scene instance to use.

Members

readonly scene : Scene

Gets the scene

voxelPrimitive : VoxelPrimitive

Gets or sets the primitive of the view model.

Methods

compileShader()

Compiles the shader in the shader editor.

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.

shaderEditorKeyPress()

Handles key press events on the shader editor.

toggleBounds()

Toggles the visibility of the bounds section

toggleClipping()

Toggles the visibility of the clipping section

toggleDisplay()

Toggles the visibility of the display section

toggleInspector()

Toggles the inspector visibility

toggleShader()

Toggles the visibility of the shader section

toggleTransform()

Toggles the visibility of the transform section