Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PickHandler

Handles the picking of scene geometry and roads.

internal

Hierarchy

  • PickHandler

Index

Constructors

constructor

  • new PickHandler(mapView: MapView, camera: Camera, enablePickTechnique?: boolean): PickHandler

Properties

Readonly camera

camera: Camera

enablePickTechnique

enablePickTechnique: boolean

Readonly mapView

mapView: MapView

Methods

intersectMapObjects

  • Does a raycast on all objects in the scene; useful for picking.

    Parameters

    • x: number

      The X position in CSS/client coordinates, without the applied display ratio.

    • y: number

      The Y position in CSS/client coordinates, without the applied display ratio.

    • Optional parameters: IntersectParams

      The intersection test behaviour may be adjusted by providing an instance of IntersectParams.

    Returns PickResult[]

    the list of intersection results.

raycasterFromScreenPoint

  • raycasterFromScreenPoint(x: number, y: number): Raycaster
  • Returns a ray caster using the supplied screen positions.

    Parameters

    • x: number

      The X position in css/client coordinates (without applied display ratio).

    • y: number

      The Y position in css/client coordinates (without applied display ratio).

    Returns Raycaster

    Raycaster with origin at the camera and direction based on the supplied x / y screen points.

Generated using TypeDoc