Creates a new route.
Declaring type: Browser
Namespace: Vrml.EAI
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void AddRoute (
        Node fromNode,
        string eventOut,
        Node toNode,
        string eventIn
) 
Parameters
fromNode
The node that sends events.
eventOut
The name of the event-out slot that sends events.
toNode
The node that receives events.
eventIn
The name of the event-in slot that receives events.
Collapse/Expand Example
The following example demonstrates how to create a route from the fraction_changed event-out slot of a TimeSensor node to the set_fraction event-in slot of a PositionInterpolator node:
C#
Vrml.EAI.Browser browser = ...;
Vrml.EAI.Node timeSensor = ...;
Vrml.EAI.Node positionInterpolator = ...;
browser.AddRoute(timeSensor, "fraction_changed", positionInterpolator, "set_fraction");