Skip to main content

publicgetRenderingEngine

Callable


  • Method to retrieve a RenderingEngine by its unique identifier.

    @example

    How to get a RenderingEngine that was created earlier:

    import { RenderingEngine, getRenderingEngine } from 'vtkjs-viewport';

    const renderingEngine = new RenderingEngine('my-engine');

    // getting reference to rendering engine later...
    const renderingEngine = getRenderingEngine('my-engine');

    Parameters

    • id: string

      The identifier that was used to create the RenderingEngine

    Returns IRenderingEngine | undefined

    the matching RenderingEngine, or undefined if there is no match