Main Content

addRoute

Class: Aero.VirtualRealityAnimation
Namespace: Aero

Add VRML ROUTE statement to virtual reality animation object

Syntax

addRoute(h,nodeOut,eventOut,nodeIn,eventIn)

Description

addRoute(h,nodeOut,eventOut,nodeIn,eventIn) adds a VRML ROUTE statement to the virtual reality animation object, where nodeOut is the node from which information is routed, eventOut is the event (property), nodeIn is the node to which information is routed, and eventIn is the receiving event (property).

Input Arguments

expand all

Virtual reality animation object, specified as an Aero.VirtualRealityAnimation object.

Node from which information is routed, specified as a character value or string scalar.

Example: 'Plane'

Data Types: char | string

Event to be routed to eventIn, specified as a character value or string scalar.

Example: 'translation'

Data Types: char | string

Node to which information is routed, specified as a character value or string scalar.

Example: 'Camera1'

Data Types: char | string

Receive event routed from eventOut, specified as a character value or string scalar.

Example: 'translation'

Data Types: char | string

Examples

expand all

This example shows how to add a ROUTE command to connect the Plane position to the Camera1 node.

h = Aero.VirtualRealityAnimation;
h.VRWorldFilename = 'asttkoff.wrl';
initialize(h);
addNode(h,'Lynx','chaseHelicopter.wrl');
addRoute(h,'Plane','translation','Camera1','translation');

Version History

Introduced in R2007b