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

Properties

targetViewport: ViewportInterface

Target viewport

visible: boolean

Layer visibility

Methods

  • Called after rendering of all viewports

    Parameters

    • camera: Camera

      Camera used to render the view

    Returns void

  • Called after rendering of a viewport

    Parameters

    Returns void

  • Called before rendering

    Parameters

    • camera: Camera

      Camera used to render the view

    Returns void

  • Called before rendering a viewport

    Parameters

    Returns 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

  • Called for mouse clicks and taps

    Returns

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

    Parameters

    Returns boolean

  • Called when a key is pressed down

    Returns

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

    Parameters

    • event: KeyboardEvent

      Key event data

    Returns 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

    Returns

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

    Parameters

    • event: KeyboardEvent

      Key event data

    Returns boolean

  • Called when the mouse wheel is used

    Returns

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

    Parameters

    Returns boolean

Generated using TypeDoc