SynchronizerManager
Index
Functions
createSynchronizer
Parameters
synchronizerId: string
The id of the synchronizer.
eventName: string
The name of the event that will be emitted by the synchronizer.
eventHandler: default
The event handler that will be called when the event is emitted.
Returns Synchronizer
A reference to the synchronizer.
destroy
“Destroy all synchronizers.”
Returns void
destroySynchronizer
Destroy a synchronizer by its ID.
Parameters
synchronizerId: string
The id of the synchronizer to destroy.
Returns void
getAllSynchronizers
Return the array of synchronizers
Returns Synchronizer[]
An array of synchronizers.
getSynchronizer
Get the synchronizer with the given id from the state.
Parameters
synchronizerId: string
The id of the synchronizer to be retrieved.
Returns Synchronizer | void
A synchronizer object.
getSynchronizersForViewport
It returns all synchronizers that are not disabled and have a source viewport with the given rendering engine Id and viewport Id
Parameters
viewportId: string
The Id of the viewport
renderingEngineId: string
The Id of the rendering engine
Returns Synchronizer[]
An array of synchronizers
Create a new synchronizer instance from Synchronizer class