Class: EventRouter

EventRouter()

Base event routing class.

Constructor

new EventRouter()

Source:

Classes

EventRouter

Members

debug

Change listeners receive changes applied to all shared objects
Source:

Methods

addChangeListener()

Add a listener to remote events
Source:

changeObject(obj)

Apply remote changes to an object.
Parameters:
Name Type Description
obj VRObject
Source:

getRootNode(obj)

Get root node of a VRObject
Parameters:
Name Type Description
obj VRObject
Source:

log()

Optionally log something
Source:

notifyListeners()

Notify listeners of remote changes
Source:

removeChangeListener()

Remove listener to remote events
Source:

routeEvent(obj, field)

Called when applying changes other than rotation and translation: executes a method if such a method exists, passing it a current instance of associated VRObject.
Parameters:
Name Type Description
obj VRObject VRObject to apply change to
field * member field to set or method to execute
Source: