The SelectionMenu can be used to provide a custom menu for the selected SceneElements. A show and hide callback has to be provided to implement the custom menu. The SelectionMenu only works in combination with a default tool derived from the SelectionDefault tool.

Hierarchy

  • SelectionMenu

Constructors

Properties

Accessors

Methods

Constructors

  • Creates and registers a new SelectionMenu.

    Parameters

    • pApp: Application

      Reference to the core application.

    • pShowCallback: ((pRectMin: Vector2, pRectMax: Vector2, pView: View) => void)

      Called if the menu should be shown. A 2d bounding rect in viewer coordinates is given for the current selection.

        • (pRectMin: Vector2, pRectMax: Vector2, pView: View): void
        • Parameters

          • pRectMin: Vector2
          • pRectMax: Vector2
          • pView: View

          Returns void

    • pHideCallback: (() => void)

      Called if the menu should be hidden.

        • (): void
        • Returns void

    Returns SelectionMenu

Properties

deactivateOnToolStart: boolean

If true the menu gets deactivated as sonn as a tool other than the default tool gets started. (default: true)

Accessors

  • get active(): boolean
  • Returns boolean

  • set active(pValue: boolean): void
  • Parameters

    • pValue: boolean

    Returns void

Methods

  • Disposes this menu.

    Returns void

Generated using TypeDoc