Class vrml.external.Browser
All Packages Class Hierarchy This Package Previous Next Index
Class vrml.external.Browser
vrml.external.Browser
- public class Browser
-
Browser()
-
-
addRoute(Node, String, Node, String)
- Add a route between the specified eventOut and eventIn of the
given nodes.
-
createVrmlFromString(String)
- Parse STRING into a VRML scene and return the list of root
nodes for the resulting scene.
-
createVrmlFromURL(String[], Node, String)
- Tells the browser to load a VRML scene from the passed URL or
URLs.
-
deleteRoute(Node, String, Node, String)
- Delete a route between the specified eventOut and eventIn of the
given nodes.
-
getBrowser(Applet)
- Return an instance of the Browser class.
-
getBrowser(Applet, String, int)
- Return an instance of the Browser class.
-
getCurrentFrameRate()
- Get the current frame rate of the browser, or 0.0 if not available.
-
getCurrentSpeed()
- Get the current velocity of the bound viewpoint in meters/sec,
if available, or 0.0 if not.
-
getName()
- Get the name of the VRML browser.
-
getNode(String)
- Get a DEFed node by name.
-
getVersion()
- Get the version of the VRML browser.
-
getWorldURL()
- Get the URL for the root of the current world, or an empty string
if not available.
-
loadURL(String[], String[])
- Load the given URL with the passed parameters (as described
in the Anchor node).
-
replaceWorld(Node[])
- Replace the current world with the passed array of nodes.
-
setDescription(String)
- Set the description of the current world.
-
startVRwave(Scene)
-
-
stopVRwave(Scene)
-
Browser
public Browser()
getName
public String getName()
- Get the name of the VRML browser.
getVersion
public String getVersion()
- Get the version of the VRML browser.
getCurrentSpeed
public float getCurrentSpeed()
- Get the current velocity of the bound viewpoint in meters/sec,
if available, or 0.0 if not.
getCurrentFrameRate
public float getCurrentFrameRate()
- Get the current frame rate of the browser, or 0.0 if not available.
getWorldURL
public String getWorldURL()
- Get the URL for the root of the current world, or an empty string
if not available.
replaceWorld
public void replaceWorld(Node nodes[]) throws IllegalArgumentException
- Replace the current world with the passed array of nodes.
loadURL
public void loadURL(String url[],
String parameter[])
- Load the given URL with the passed parameters (as described
in the Anchor node).
setDescription
public void setDescription(String description)
- Set the description of the current world. To clear the description,
pass an empty string as argument.
createVrmlFromString
public Node[] createVrmlFromString(String vrmlSyntax) throws InvalidVrmlException
- Parse STRING into a VRML scene and return the list of root
nodes for the resulting scene.
createVrmlFromURL
public void createVrmlFromURL(String url[],
Node node,
String event)
- Tells the browser to load a VRML scene from the passed URL or
URLs. After the scene is loaded, an event is sent to the MFNode
eventIn in node NODE named by the EVENT argument.
getNode
public Node getNode(String name) throws InvalidNodeException
- Get a DEFed node by name. Nodes given names in the root scene are
available to this method, DEFed nodes in inlines, as well as DEFed
nodes returned from createVrmlFromString/URL are not.
addRoute
public void addRoute(Node fromNode,
String fromEventOut,
Node toNode,
String toEventIn) throws IllegalArgumentException
- Add a route between the specified eventOut and eventIn of the
given nodes.
deleteRoute
public void deleteRoute(Node fromNode,
String fromEventOut,
Node toNode,
String toEventIn) throws IllegalArgumentException
- Delete a route between the specified eventOut and eventIn of the
given nodes.
getBrowser
public static Browser getBrowser(Applet pApplet)
- Return an instance of the Browser class.
getBrowser
public static Browser getBrowser(Applet pApplet,
String frameName,
int index)
- Return an instance of the Browser class.
startVRwave
public static void startVRwave(Scene scene)
stopVRwave
public static void stopVRwave(Scene scene)
All Packages Class Hierarchy This Package Previous Next Index