Skip to main content

Function: getRenderingEngine()

getRenderingEngine(id): IRenderingEngine | undefined

Method to retrieve a RenderingEngine by its unique identifier.

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

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');

Defined in

packages/core/src/RenderingEngine/getRenderingEngine.ts:22