Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PoiBatchRegistry

internal

Contains all [[PoiBatch]]es. Selects (and initializes) the correct batch for a POI.

Hierarchy

  • PoiBatchRegistry

Index

Constructors

constructor

  • new PoiBatchRegistry(m_rendererCapabilities: WebGLCapabilities): PoiBatchRegistry

Methods

addPoi

  • addPoi(poiInfo: PoiInfo, screenBox: Box, viewDistance: number, opacity: number): void
  • Render a POI image at the specified location.

    Parameters

    • poiInfo: PoiInfo

      PoiInfo containing information for rendering the POI icon.

    • screenBox: Box

      Box to render icon into in 2D coordinates.

    • viewDistance: number

      Box's distance to camera.

    • opacity: number

      Opacity of icon to allow fade in/out.

    Returns void

pickTextElements

  • pickTextElements(screenPosition: Vector2, pickCallback: (pickData: any | undefined) => void): void
  • Fill the picking results for the pixel with the given screen coordinate. If multiple PoiInfos are found, the order of the results is unspecified.

    Parameters

    • screenPosition: Vector2

      Screen coordinate of picking position.

    • pickCallback: (pickData: any | undefined) => void

      Callback to be called for every picked element.

        • (pickData: any | undefined): void
        • Parameters

          • pickData: any | undefined

          Returns void

    Returns void

registerPoi

reset

  • reset(): void

update

  • update(): void

updateMemoryUsage

Generated using TypeDoc