BimCT SDK / WebGL2 Viewer
    Preparing search index...

    Class BimCTToolbar

    Represents a toolbar for BIM CT (Building Information Modeling Construction Toolkit). This toolbar provides various tools and functionalities for interacting with the BIM model.

    The toolbar includes items such as selection, pick mode, projection, shaders, cutting sections, regions, and markups. It also handles the responsiveness of submenus and manages the expanded/collapsed state of the toolbar.

    Index

    Constructors

    Accessors

    • get toolbarExpandedEvent(): IEvent<BimCTToolbar, boolean>

      Returns IEvent<BimCTToolbar, boolean>

      The renderer.

    • set onMarkupSave(saveAction: MarkupPreSaveAction): void

      Sets the save action for the markup toolbar.

      Parameters

      • saveAction: MarkupPreSaveAction

        The save action.

      Returns void

    • set onMarkupEditClose(closeAction: MarkupCloseAction): void

      Sets the close action for the markup toolbar.

      Parameters

      • closeAction: MarkupCloseAction

        The close action for the markup toolbar.

      Returns void

    • get div(): HTMLDivElement

      Gets the main wrapper div.

      Returns HTMLDivElement

      The main wrapper div.

    Methods

    • Checks if the transform mode is on.

      Returns boolean

      The transform mode state.

    • Updates the toolbar based on the camera state.

      Parameters

      • state: CameraState

        The camera state.

      • animate: boolean

        Indicates if the transition should be animated.

      • distatchStateChanged: boolean = true

      Returns Promise<void>

    • Sets the expanded state of the toolbar.

      Parameters

      • expanded: boolean

        The expanded state.

      Returns void

    • Checks if the toolbar is expanded.

      Returns boolean

      The expanded state.

    • Parameters

      • val: boolean

      Returns void

    • Refreshes the toolbar.

      Returns void

    • Opens a submenu item.

      Parameters

      • value: SubmenuToolbarItem

        The submenu item to open.

      Returns void

    • Hides the submenus of the toolbar.

      Returns void

    • Handles the menu state change event.

      Returns void