Class InfiniteFactory

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. The MetadataManagerInterface is linked to a DirectorySessionInterface and a DataSessionInterface. When a DMU loading is in process, the InfiniteEngineInterface is updated accordingly from the MetadataManagerInterface.

The bound MetadataManagerInterface cannot be changed, and two session loadings in parallel are not handled.

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

// created previously
let lMetadataManager : MetadataManagerInterface;
// the callback when a pick request is completed
let onPicking : tListenerCallback;

// create an infinite engine
const lInfiniteEngine : InfiniteEngineInterface = InfiniteFactory.CreateInfiniteEngine(lMetadataManager);
// get the html element that will host the 3d rendering
const lView3D: HTMLElement = <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](../interfaces/InfiniteEngineInterface.html) for more information.
Factories

See

InfiniteEngineInterface

Hierarchy

  • InfiniteFactory

Constructors

Methods