Reference Source
import {Toolbar} from 'xeokit-viewer/src/toolbar/Toolbar.js'
public class | source

Toolbar

Extends:

Controller → Toolbar

UI controller for a xeokit Viewer toolbar.

Member Summary

Public Members
public

Manages BCF viewpoints.

public

Controls first person mode.

public

Flies the camera to show the entire model in view, from the current viewing angle.

public

Click-to-hide mode.

public

Controls the NavCube.

public

Controls orthographic mode.

public

Click-to-query-element mode.

public

Resets the viewer to the state right after the most recent model was loaded.

public

Controls section planes.

public

Click-to-select mode.

Inherited Summary

From class Controller
public

server: *

public

viewer: *

public
public

Destroys this Controller.

public

error(message: String)

Logs an error for this Controller to the JavaScript console.

public

fire(event: String, value: Object, forget: Boolean)

Fires an event on this Controller.

public

Gets whether or not this Controller is active.

public

Gets whether or not this Controller is enabled.

public

Returns true if there exist any subscribers to the given event on this Controller.

public

log(message: String)

Logs a console debugging message for this Controller.

public

off(subId: String)

Cancels an event subscription that was previously made with Controller#on or Controller#once.

public

on(event: String, callback: Function, scope: Object): String

Subscribes to an event on this Controller.

public

once(event: String, callback: Function, scope: Object)

Subscribes to the next occurrence of the given event, then un-subscribes as soon as the event is handled.

public

setActive(active: boolean)

Activates or deactivates this Controller.

public

setEnabled(enabled: boolean)

Enables or disables this Controller.

public

warn(message: String)

Logs a warning for this Controller to the JavaScript console.

Public Members

public bcf: BCFMode source

Manages BCF viewpoints.

public firstPerson: FirstPersonMode source

Controls first person mode.

public fit: FitAction source

Flies the camera to show the entire model in view, from the current viewing angle.

public hide: HideMode source

Click-to-hide mode.

public navCube: NavCubeMode source

Controls the NavCube.

public ortho: OrthoMode source

Controls orthographic mode.

public query: QueryMode source

Click-to-query-element mode.

public reset: ResetAction source

Resets the viewer to the state right after the most recent model was loaded.

public section: SectionMode source

Controls section planes.

public select: SelectMode source

Click-to-select mode.