Viewer - Interaction
    Preparing search index...

    Interface ISelectEvent

    Definition of the select event. These events are sent for select specific events (EVENTTYPE_INTERACTION).

    interface ISelectEvent {
        manager: IInteractionManager;
        node: ITreeNode;
        viewportId: string;
        event?: PointerEvent;
        groupedNodes?: ITreeNode[];
        intersectionPoint?: vec3;
        ray?: IRay;
        reselection?: boolean;
    }

    Hierarchy

    • IViewportEvent
      • ISelectEvent
    Index

    Properties

    The manager that emitted this event.

    node: ITreeNode

    The node being selected.

    viewportId: string
    event?: PointerEvent

    The original event that triggered the selection. Only provided if it was not a manual selection.

    groupedNodes?: ITreeNode[]

    All nodes in the scene tree that share the same groupId and are therefore interacted with at the same time.

    intersectionPoint?: vec3

    The intersection point of the ray with the node. Only provided on SELECT_ON.

    ray?: IRay

    The ray of the selection process. Only provided on SELECT_ON and only if it was not a manual selection.

    reselection?: boolean

    If the deselection happened due to another selection.