    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 | bcf : BCFMode Manages BCF viewpoints. |
public | firstPerson : FirstPersonMode Controls first person mode. |
public | fit : FitAction Flies the camera to show the entire model in view, from the current viewing angle. |
public | hide : HideMode Click-to-hide mode. |
public | navCube : NavCubeMode Controls the NavCube. |
public | ortho : OrthoMode Controls orthographic mode. |
public | query : QueryMode Click-to-query-element mode. |
public | reset : ResetAction Resets the viewer to the state right after the most recent model was loaded. |
public | section : SectionMode Controls section planes. |
public | select : SelectMode Click-to-select mode. |

## Inherited Summary

From class Controller
public | server : * |
public | viewer : * |
public | viewerUI : * |
public | destroy () 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 | getActive (): boolean Gets whether or not this Controller is active. |
public | getEnabled (): boolean Gets whether or not this Controller is enabled. |
public | hasSubs (event: String): Boolean 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.