Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

  • new DragManager(id?: string, effectMaterial?: IMaterialAbstractData): DragManager

Accessors

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

  • Parameters

    • value: undefined | IMaterialAbstractData

    Returns void

  • 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.

    Returns IInteractionFilterOptions

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

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

  • Returns undefined | IViewportApi

  • Parameters

    Returns void

Methods

  • addDragConstraint(constraint: IDragConstraint): undefined | string
  • Add a new drag constraint. Returns a token that is used for removing the drag constraint via removeRestriction.

    deprecated

    This method is deprecated. Please use addRestriction instead.

    Parameters

    • constraint: IDragConstraint

    Returns undefined | string

  • 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
  • removeDragConstraint(token: string): boolean
  • Remove the drag constraint that was added via removeRestriction.

    deprecated

    This method is deprecated. Please use removeRestriction instead.

    Parameters

    • token: string

    Returns boolean

  • removeNode(event?: PointerEvent, ray?: IRay): void
  • Remove the node as the currently used drag node.

    Parameters

    • Optional event: PointerEvent
    • Optional ray: IRay

    Returns void

  • removeRestriction(token: string): boolean
  • Removes the restriction with the given token.

    Parameters

    • token: string

    Returns boolean

  • removeRestrictions(): void
  • Removes all restrictions.

    Returns void

  • setNode(node: ITreeNode, geometryData?: IGeometryData, distance?: number, intersectionPoint?: vec3, event?: PointerEvent, ray?: IRay): void
  • Set the current dragged node. This will serve as the start of the drag event. This function is also called internally at onDown events.

    Parameters

    • node: ITreeNode
    • Optional geometryData: IGeometryData
    • distance: number = 0
    • intersectionPoint: vec3 = ...
    • Optional event: PointerEvent
    • ray: IRay = ...

    Returns void