|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvrml.Browser
public class Browser
The browser interface provides a mechanism for scripts contained by Script nodes to get and set browser state.
Method Summary | |
---|---|
void |
addRoute(BaseNode fromNode,
java.lang.String fromEventOut,
BaseNode toNode,
java.lang.String toEventIn)
Add a route between the given event names for the given nodes. |
BaseNode[] |
createVrmlFromString(java.lang.String vrmlSyntax)
This method parses a string consisting of VRML statements, establishes any PROTO and EXTERNPROTO declarations and routes, and returns an MFNode value containing the set of nodes in those statements. |
void |
createVrmlFromURL(java.lang.String[] url,
BaseNode node,
java.lang.String event)
Instructs the browser to load a VRML scene description from the given URL or URLs. |
void |
deleteRoute(BaseNode fromNode,
java.lang.String fromEventOut,
BaseNode toNode,
java.lang.String toEventIn)
Delete a route between the given event names for the given nodes. |
float |
getCurrentFrameRate()
Return the current frame rate in frames/second. |
float |
getCurrentSpeed()
Returns the average navigation speed for the currently bound NavigationInfo node in meters/second. |
java.lang.String |
getName()
Name of the browser currently in use. |
java.lang.String |
getVersion()
Version of the browser currently in use. |
java.lang.String |
getWorldURL()
Return the URL for the root of the currently loaded world. |
void |
loadURL(java.lang.String[] url,
java.lang.String[] parameter)
Loads the first recognized URL from the specified url field with the passed parameters. |
void |
replaceWorld(BaseNode[] nodes)
Replaces the current world with the world represented by the passed nodes. |
void |
setDescription(java.lang.String description)
Sets the passed string as the current description |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getName()
public java.lang.String getVersion()
public float getCurrentSpeed()
public float getCurrentFrameRate()
public java.lang.String getWorldURL()
public void replaceWorld(BaseNode[] nodes)
nodes
- New worldpublic BaseNode[] createVrmlFromString(java.lang.String vrmlSyntax) throws InvalidVRMLSyntaxException
vrmlSyntax
- VRML statements
InvalidVRMLSyntaxException
- If invalid syntax in stringpublic void createVrmlFromURL(java.lang.String[] url, BaseNode node, java.lang.String event) throws InvalidVRMLSyntaxException
url
- array of URLsnode
- node to send event toevent
- event to send to node
InvalidVRMLSyntaxException
- If URL contain invalid syntaxpublic void addRoute(BaseNode fromNode, java.lang.String fromEventOut, BaseNode toNode, java.lang.String toEventIn)
fromNode
- Node where route originatesfromEvenOut
- Event Out where route originatestoNode
- Node where route endstoEventIn
- Event In where route endspublic void deleteRoute(BaseNode fromNode, java.lang.String fromEventOut, BaseNode toNode, java.lang.String toEventIn)
fromNode
- Node where route originatesfromEvenOut
- Event Out where route originatestoNode
- Node where route endstoEventIn
- Event In where route endspublic void loadURL(java.lang.String[] url, java.lang.String[] parameter) throws InvalidVRMLSyntaxException
url
- array of URLsparameter
- parameters to load URL with
InvalidVRMLSyntaxException
- If URL has invalid VRML syntaxpublic void setDescription(java.lang.String description)
description
- New description
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |