Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractInteractionManager Abstract

Hierarchy

Implements

Index

Constructors

Properties

A filter that is applied during the intersection process. While intersecting, only nodes where this filter applies will be evaluated. The filters can be set per INTERACTION_STATE.

Accessors

  • get effectMaterial(): undefined | IMaterialAbstractData
  • set effectMaterial(value: undefined | IMaterialAbstractData): void
  • The effect material that is applied to the node once the effect (selection, hovering or dragging) is active. If no effect material is applied, the effect will not be changed. (Note that this is only for backwards compatibility, use interactionEffect instead)

    Returns undefined | IMaterialAbstractData

  • The effect material that is applied to the node once the effect (selection, hovering or dragging) is active. If no effect material is applied, the effect will not be changed. (Note that this is only for backwards compatibility, use interactionEffect instead)

    Parameters

    • value: undefined | IMaterialAbstractData

    Returns void

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

    • [key: string]: ITreeNode[]
  • get id(): string
  • get interactionEffect(): undefined | IInteractionEffect
  • set interactionEffect(value: undefined | IInteractionEffect): void
  • The effect that is applied to the node once the effect (selection, hovering or dragging) is active. If no interaction effect is applied, the effect will not be changed.

    Returns undefined | IInteractionEffect

  • The effect that is applied to the node once the effect (selection, hovering or dragging) is active. If no interaction effect is applied, the effect will not be changed.

    Parameters

    • value: undefined | IInteractionEffect

    Returns void

Methods

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

    Parameters

    Returns 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

  • 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