Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SceneLayerInterface

A scene layer that displays objects in the 3D scene. This interface serves as a template to construct your own custom data layers. Public methods described in this class act as callbacks to particular events occurring in the view (Main or Map view) to which the scene layer is added.

Note: The mouse or touch event callbacks can also be added to individual THREE.Mesh objects inside data layers. In case of multiple callbacks, Mesh objects are prioritized over data layers. For a complete reference of all of the events supported on THREE.Mesh, see: MouseEventReceiverInterface

Hierarchy

Implemented by

Index

Properties

targetViewport

targetViewport: ViewportInterface

Target viewport

visible

visible: boolean

Layer visibility

Methods

onAfterRender

  • onAfterRender(camera: Camera): void
  • Called after rendering of all viewports

    Parameters

    • camera: Camera

      Camera used to render the view

    Returns void

onAfterRenderViewport

  • Called after rendering of a viewport

    Parameters

    Returns void

onBeforeRender

  • onBeforeRender(camera: Camera): void
  • Called before rendering

    Parameters

    • camera: Camera

      Camera used to render the view

    Returns void

onBeforeRenderViewport

  • Called before rendering a viewport

    Parameters

    Returns void

onCameraMoveEnd

  • onCameraMoveEnd(asyncWork: Promise<void>): void
  • Called shortly after the camera has stopped moving

    Parameters

    • asyncWork: Promise<void>

      Promise which blocks until the AbstractViewInterface has completed any asynchronous work, independent of whether it rejects or resolves.

    Returns void

onClick

  • Called for mouse clicks and taps

    Parameters

    Returns boolean

    Return true to consume the event, false to pass it on

onContextMenu

  • Called when the context menu is about to be shown

    Return context menu items from this method to add them to the context menu. Return undefined (or do not implement the method) if you do not want to add an entry from the specific layer. Return false to prevent the context menu from opening.

    Parameters

    Returns OnContextMenuResult

    List of context menu items

onDoubleClick

  • Called for double clicks and double taps

    Parameters

    Returns boolean

    Return true to consume the event, false to pass it on

onHold

  • Called for click-and-hold and touch-and-hold

    Parameters

    Returns boolean

    Return true to consume the event, false to pass it on

onKeyDown

  • onKeyDown(event: KeyboardEvent): boolean
  • Called when a key is pressed down

    Parameters

    • event: KeyboardEvent

      Key event data

    Returns boolean

    Return true to consume the event, false to pass it on to other layers

onKeyUp

  • onKeyUp(event: KeyboardEvent): boolean
  • Called when a key is released

    note

    released keys on a physical keyboard connected to an iOS device do not fire the keyup event

    Parameters

    • event: KeyboardEvent

      Key event data

    Returns boolean

    Return true to consume the event, false to pass it on to other layers

onMouseMove

onMouseWheel

  • Called when the mouse wheel is used

    Parameters

    Returns boolean

    Return true to consume the event, false to pass it on

onTransitionEnd

onTransitionStart

Generated using TypeDoc