Options
All
  • Public
  • Public/Protected
  • All
Menu

SelectOnUpManager is a convenience class that extends SelectManager and automatically configures it to select on pointer up events.

This maintains backward compatibility while leveraging the unified SelectManager implementation.

Hierarchy

Index

Constructors

  • new SelectOnUpManager(id?: string, interactionEffect?: IInteractionEffect, deselectOnEmpty?: boolean): SelectOnUpManager

Accessors

  • get deselectOnEmpty(): boolean
  • set deselectOnEmpty(value: boolean): void
  • Returns boolean

  • Parameters

    • value: boolean

    Returns void

  • get effectMaterial(): undefined | IMaterialAbstractData
  • set effectMaterial(value: undefined | IMaterialAbstractData): void
  • Returns undefined | IMaterialAbstractData

  • Parameters

    • value: undefined | IMaterialAbstractData

    Returns void

  • get gatheredGroupedNodes(): {}
  • Returns {}

    • [key: string]: ITreeNode[]
  • get id(): string
  • Returns string

  • get interactionEffect(): undefined | IInteractionEffect
  • set interactionEffect(value: undefined | IInteractionEffect): void
  • Returns undefined | IInteractionEffect

  • Parameters

    • value: undefined | IInteractionEffect

    Returns void

  • get removalKey(): string
  • set removalKey(value: string): void
  • Returns string

  • Parameters

    • value: string

    Returns void

  • Returns undefined | IViewportApi

  • Parameters

    Returns void

Methods

  • Called internally when adding the interaction manager to an interaction engine. Here the viewport is set.

    Parameters

    Returns void

  • deselect(): void
  • For onDown events (pointerdown) this method is called. The pointer event is already translated into a ray. An array of intersections is provided that is the result of an intersection with the ray and the scene with the applied filters. (Note that filters of other InteractionManagers may also apply, therefore you need to sanitize the intersections in that case)

    Parameters

    Returns void

  • For onEnd events (pointerup, pointerout) this method is called. The pointer event is already translated into a ray. An array of intersections is provided that is the result of an intersection with the ray and the scene with the applied filters. (Note that filters of other InteractionManagers may also apply, therefore you need to sanitize the intersections in that case)

    Parameters

    Returns void

  • onKeyDown(event: KeyboardEvent, pointerInCanvas: boolean): void
  • For onKeyDown events this method is called.

    Parameters

    • event: KeyboardEvent
    • pointerInCanvas: boolean

    Returns void

  • onKeyUp(event: KeyboardEvent, pointerInCanvas: boolean): void
  • For onKeyUp events this method is called.

    Parameters

    • event: KeyboardEvent
    • pointerInCanvas: boolean

    Returns void

  • For onMove events (pointermove) this method is called. The pointer event is already translated into a ray. An array of intersections is provided that is the result of an intersection with the ray and the scene with the applied filters. (Note that filters of other InteractionManagers may also apply, therefore you need to sanitize the intersections in that case)

    Parameters

    Returns void

  • remove(): void
  • Called internally to remove the viewport from the manager and to clean up.

    Returns void

  • select(intersection: Omit<IRayTracingIntersection, "type">): void
  • Select a node. The point and distance of the intersection can be freely chosen and are provided in the event callbacks.

    Parameters

    • intersection: Omit<IRayTracingIntersection, "type">

    Returns void