Class DragSelectionViewportInteraction

Selecting objects by spanning a rectangle over them.

Hierarchy (view full)

Constructors

Properties

viewportRenderer: UIViewportRenderer

The viewport this interaction controls.

Accessors

  • get isAvailable(): boolean
  • Virtual

    Determines if the interaction is available.

    Returns boolean

    If the interaction is not available, no events will be forwarded to it. This property allows interactions to determines if all the dependencies are availble for it to execute.

  • get isDragSelectionActive(): boolean
  • Determines if the drag selection is active and engaging with the scene as the primary input mode.

    Returns boolean

  • get viewportCamera(): ViewportCamera
  • The ViewportCamera the interaction controls.

    Returns ViewportCamera

Methods

  • Performs the selection based on the specified region. The region is defined by the AABB that encapuslates regionPointA and regionPointB.

    Parameters

    • regionPointA: Immutable<Vector2>
    • regionPointB: Immutable<Vector2>
    • allowCacheUpdate: boolean

      Determines if the cached object texture can be updated in a blocking call.

    Returns SceneObject[]