Options
Menu

Class TraverserBase

Picks a 3d object from a view or scene by 3D raycast calculations. Performs an initial coarse boundary calculation to return a subset of entities whose bounding volumes intersect with the specified ray, then triggers an optional picking collider on individual renderable objects to further determine the precise values of the picking ray collision.

class

away.pick.RaycastPicker

Hierarchy

  • EventDispatcher

Index

Constructors

constructor

  • Returns TraverserBase

Properties

Static entityNames

entityNames: Array<string>

Static renderableNames

renderableNames: Array<string>

Methods

addEventListener

  • addEventListener(type: string, listener: function): void
  • Add an event listener

    method

    addEventListener

    Parameters

    • type: string
    • listener: function
        • (event: EventBase): void
        • Parameters

          • event: EventBase

          Returns void

    Returns void

applyEntity

  • applyEntity(entity: IEntity): void
  • Parameters

    Returns void

applyRenderable

  • Parameters

    Returns void

dispatchEvent

  • dispatchEvent(event: EventBase): void
  • Dispatch an event

    method

    dispatchEvent

    Parameters

    • event: EventBase

    Returns void

dispose

  • dispose(): void
  • Returns void

enterNode

  • enterNode(node: INode): boolean
  • Returns true if the current node is at least partly in the frustum. If so, the partition node knows to pass on the traverser to its children.

    Parameters

    • node: INode

      The Partition3DNode object to frustum-test.

    Returns boolean

hasEventListener

  • hasEventListener(type: string, listener?: function): boolean
  • check if an object has an event listener assigned to it

    method

    hasListener

    Parameters

    • type: string
    • Optional listener: function
        • (event: EventBase): void
        • Parameters

          • event: EventBase

          Returns void

    Returns boolean

removeEventListener

  • removeEventListener(type: string, listener: function): void
  • Remove an event listener

    method

    removeEventListener

    Parameters

    • type: string
    • listener: function
        • (event: EventBase): void
        • Parameters

          • event: EventBase

          Returns void

    Returns void

Static addEntityName

  • addEntityName(name: string): string
  • Parameters

    • name: string

    Returns string

Static addRenderableName

  • addRenderableName(name: string): string
  • Parameters

    • name: string

    Returns string

Generated using TypeDoc