The InfiniteFactory factory is used to create the Infinite engine, responsible for displaying the DMU.

The InfiniteEngineInterface is optional, you may only use metadata requests to query the 3djuump Infinite database. When a DMU loading is in process, the InfiniteEngineInterface is updated accordingly from the bound DataSessionInterface.

/** 
* Sample to illustrate the initialization of an InfiniteEngineInterface.
*/
import { InfiniteEngineInterface, InfiniteFactory, InfiniteEngineInterfaceSignal, tListenerCallback, DataSessionInterface } from 'generated_files/documentation/appinfiniteapi';

// the callback when a pick request is completed
let onPicking : tListenerCallback;
// the Data session, created previously
let lDataSession : DataSessionInterface;

// create an Infinite engine
const lInfiniteEngine : InfiniteEngineInterface = InfiniteFactory.CreateInfiniteEngine();
// bind the data session and the Infinite engine
lDataSession.bindInfiniteEngine(lInfiniteEngine);

// get the html element that will host the 3d rendering
const lView3D: HTMLElement = document.getElementById('rendering');
// bind the rendering to the given div
lInfiniteEngine.setView(lView3D);
// and use anti-aliasing => smoother
lInfiniteEngine.enableAntiAliasing(true);
// register the callback for pick result
lInfiniteEngine.addEventListener(InfiniteEngineInterfaceSignal.Picked, onPicking);

Please refer to the InfiniteEngineInterface for more information.
Factories

Constructors

Methods