Class vrml.external.Browser
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vrml.external.Browser

vrml.external.Browser

public class Browser

Constructor Index

 o Browser()

Method Index

 o addRoute(Node, String, Node, String)
Add a route between the specified eventOut and eventIn of the given nodes.
 o createVrmlFromString(String)
Parse STRING into a VRML scene and return the list of root nodes for the resulting scene.
 o createVrmlFromURL(String[], Node, String)
Tells the browser to load a VRML scene from the passed URL or URLs.
 o deleteRoute(Node, String, Node, String)
Delete a route between the specified eventOut and eventIn of the given nodes.
 o getBrowser(Applet)
Return an instance of the Browser class.
 o getBrowser(Applet, String, int)
Return an instance of the Browser class.
 o getCurrentFrameRate()
Get the current frame rate of the browser, or 0.0 if not available.
 o getCurrentSpeed()
Get the current velocity of the bound viewpoint in meters/sec, if available, or 0.0 if not.
 o getName()
Get the name of the VRML browser.
 o getNode(String)
Get a DEFed node by name.
 o getVersion()
Get the version of the VRML browser.
 o getWorldURL()
Get the URL for the root of the current world, or an empty string if not available.
 o loadURL(String[], String[])
Load the given URL with the passed parameters (as described in the Anchor node).
 o replaceWorld(Node[])
Replace the current world with the passed array of nodes.
 o setDescription(String)
Set the description of the current world.
 o startVRwave(Scene)
 o stopVRwave(Scene)

Constructors

 o Browser
  public Browser()

Methods

 o getName
  public String getName()
Get the name of the VRML browser.
 o getVersion
  public String getVersion()
Get the version of the VRML browser.
 o getCurrentSpeed
  public float getCurrentSpeed()
Get the current velocity of the bound viewpoint in meters/sec, if available, or 0.0 if not.
 o getCurrentFrameRate
  public float getCurrentFrameRate()
Get the current frame rate of the browser, or 0.0 if not available.
 o getWorldURL
  public String getWorldURL()
Get the URL for the root of the current world, or an empty string if not available.
 o replaceWorld
  public void replaceWorld(Node nodes[]) throws IllegalArgumentException
Replace the current world with the passed array of nodes.
 o loadURL
  public void loadURL(String url[],
                      String parameter[])
Load the given URL with the passed parameters (as described in the Anchor node).
 o setDescription
  public void setDescription(String description)
Set the description of the current world. To clear the description, pass an empty string as argument.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o getBrowser
  public static Browser getBrowser(Applet pApplet)
Return an instance of the Browser class.
 o getBrowser
  public static Browser getBrowser(Applet pApplet,
                                   String frameName,
                                   int index)
Return an instance of the Browser class.
 o startVRwave
  public static void startVRwave(Scene scene)
 o stopVRwave
  public static void stopVRwave(Scene scene)

All Packages  Class Hierarchy  This Package  Previous  Next  Index