Skip to main content

Interface: ObjectDB

NovoRender.ObjectDB

Database interface to retrive object's data in scene. Used internally from loaded Scene interface.

Remarks

This interface is usually created automatically based on scene creation. You may make your own implementation for custom data model, e.g. for testing or in-house databases.

Methods

getObjectMetdata

getObjectMetdata(id): Promise<ObjectData>

Get ObjectData by scene object id

Parameters

NameType
idnumber

Returns

Promise<ObjectData>


search(filter, signal): AsyncIterableIterator<HierarcicalObjectReference>

Search for objects.

Remarks

See search for more details.

Parameters

NameTypeDescription
filterSearchOptionsSearchOptions filtering options.
signalAbortSignalAbort request signal.

Returns

AsyncIterableIterator<HierarcicalObjectReference>

Async iterator of HierarcicalObjectReference