|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface X3DExecutionContext
Abstract representation of a complete X3D scene graph.
All queries to this interface return a snapshot of the current information. If the scenegraph changes while the end user has a handle to an map, the map shall not be updated to reflect the new internal state. If the end user adds something to the maps, it shall not be representing in the underlying scene.
| Field Summary | |
|---|---|
static int |
ASCII_ENCODING
VRML 1.0 ASCII encoding |
static int |
BIFS_ENCODING
MPEG-4 BIFS encoding |
static int |
BINARY_ENCODING
Binary encoding |
static int |
LAST_STD_ENCODING
The index to use for the start of a custom encoding representation if an end user wants to build their own custom parser. |
static int |
NO_SCENE
The browser currently does not contain a scene |
static int |
SCRIPTED_ENCODING
The scene was built from userland code using scripting |
static int |
VRML_ENCODING
VRML97 classic encoding (UTF8) |
static int |
XML_ENCODING
XML encoding |
| Method Summary | |
|---|---|
X3DRoute |
addRoute(X3DNode fromX3DNode,
java.lang.String readableField,
X3DNode toX3DNode,
java.lang.String writableField)
Add a route in this scene. |
X3DNode |
createNode(java.lang.String name)
Create a new node in this scene. |
X3DProtoInstance |
createProto(java.lang.String name)
Create a new proto instance in this scene. |
ComponentInfo[] |
getComponents()
Get the list of all the components declared in the scene. |
int |
getEncoding()
Get the encoding of the original file type. |
X3DExternProtoDeclaration |
getExternProtoDeclaration(java.lang.String name)
Get the EXTERNPROTO declaration representing the given name. |
java.lang.String[] |
getExternProtoNames()
Get the list of EXTERNPROTOs declared in this scene. |
X3DNode |
getImportedNode(java.lang.String name)
Get the imported node instance represented by a given name. |
X3DNode |
getNamedNode(java.lang.String name)
Get the node instance represented by the given name. |
java.lang.String[] |
getNamedNodes()
Get a list of the nodes that have been named with DEF or imported using the IMPORT keyword in this scene. |
ProfileInfo |
getProfile()
Get the name of the profile used by this scene. |
X3DProtoDeclaration |
getProtoDeclaration(java.lang.String name)
Get the PROTO declaration representing the given name. |
java.lang.String[] |
getProtosNames()
Get the list of ordinary PROTO's declared in this scene. |
X3DNode[] |
getRootNodes()
Get the list of current root nodes in the scene. |
X3DRoute[] |
getRoutes()
Get the list of ROUTEs in this scene. |
java.lang.String |
getSpecificationVersion()
Get the specification version name that was used to describe this scene. |
java.lang.String |
getWorldURL()
Get the fully qualified URL of this scene. |
void |
removeExternProtoDeclaration(java.lang.String name)
Remove the externproto declaration registered under the given name. |
void |
removeImportedNode(java.lang.String importName)
Remove the IMPORT statement associated with a given local import name. |
void |
removeNamedNode(java.lang.String name)
Calling this method removes any existing mapping between a given literal name and any X3D nodes. |
void |
removeProtoDeclaration(java.lang.String name)
Remove the proto declaration registered under the given name. |
void |
removeRoute(X3DRoute route)
Delete the route from this scene. |
void |
updateExternProtoDeclaration(java.lang.String name,
X3DExternProtoDeclaration externproto)
Add the EXTERNPROTO declaration representing the given name. |
void |
updateImportedNode(java.lang.String exportedName,
java.lang.String importedName,
X3DNode inline)
Create or modify an IMPORT from the specified inline node to a given import name. |
void |
updateNamedNode(java.lang.String nodeName,
X3DNode node)
Calling this method creates an association between a literal name and a node. |
void |
updateProtoDeclaration(java.lang.String name,
X3DProtoDeclaration proto)
Add the PROTO declaration representing the given name. |
| Field Detail |
|---|
static final int NO_SCENE
static final int SCRIPTED_ENCODING
static final int ASCII_ENCODING
static final int VRML_ENCODING
static final int XML_ENCODING
static final int BINARY_ENCODING
static final int BIFS_ENCODING
static final int LAST_STD_ENCODING
| Method Detail |
|---|
java.lang.String getSpecificationVersion()
int getEncoding()
ProfileInfo getProfile()
ComponentInfo[] getComponents()
java.lang.String getWorldURL()
throws InvalidBrowserException
InvalidBrowserException - The dispose method has been called on
this browser reference.
ConnectionException - An error occurred in the connection to the
browser.X3DRoute[] getRoutes()
X3DRoute addRoute(X3DNode fromX3DNode,
java.lang.String readableField,
X3DNode toX3DNode,
java.lang.String writableField)
throws InvalidBrowserException,
InvalidReadableFieldException,
InvalidWritableFieldException,
InvalidNodeException
fromX3DNode - The source node for the routereadableField - The readable field source of the routetoX3DNode - The destination node of the routewritableField - The writable field destination of the route
InvalidReadableFieldException - if the named readable field does not exist
InvalidWritableFieldException - if the named writable field does not exist.
InvalidNodeException - The nominated destination or source node
has been disposed of
InvalidBrowserException - The dispose method has been called on
this browser reference.
ConnectionException - An error occurred in the connection to the
browser.
void removeRoute(X3DRoute route)
throws InvalidBrowserException
route - The route reference to delete
InvalidBrowserException - The dispose method has been called on
this browser reference.java.lang.String[] getProtosNames()
X3DProtoDeclaration getProtoDeclaration(java.lang.String name)
name - The name of the proto to fetch
void updateProtoDeclaration(java.lang.String name,
X3DProtoDeclaration proto)
name - The name to use for the declarationproto - The declaration for the namevoid removeProtoDeclaration(java.lang.String name)
name - The name of the proto to fetchjava.lang.String[] getExternProtoNames()
X3DExternProtoDeclaration getExternProtoDeclaration(java.lang.String name)
name - The name of the externproto to fetch
void updateExternProtoDeclaration(java.lang.String name,
X3DExternProtoDeclaration externproto)
name - The name of the declaractionexternproto - The declaration for the namevoid removeExternProtoDeclaration(java.lang.String name)
name - The name of the externproto to fetchjava.lang.String[] getNamedNodes()
X3DNode instances. If there are no nodes
marked with DEF or IMPORT then the map will be empty.
X3DNode getNamedNode(java.lang.String name)
name - The name of the DEF to fetch
X3DNode getImportedNode(java.lang.String name)
name - The name of the import to fetch
void removeImportedNode(java.lang.String importName)
importName - The local name used in the IMPORT
void updateImportedNode(java.lang.String exportedName,
java.lang.String importedName,
X3DNode inline)
exportedName - The node name as exported from the inlineimportedName - The name to use locally for the imported nodeinline - The "DEF'd Inline" of the IMPORT (ISO 19775:2005).
void updateNamedNode(java.lang.String nodeName,
X3DNode node)
nodeName - The literal name to change.node - The node to map to.void removeNamedNode(java.lang.String name)
name - The literal name of the mapping to remove.X3DNode[] getRootNodes()
X3DNode createNode(java.lang.String name)
name - The node's name to create
InvalidNodeException - The name does not represent a node in the
given list of profile and components for this sceneX3DProtoInstance createProto(java.lang.String name)
name - The proto's name to create
InvalidNodeException - The name does not represent a known proto
declaration in the available namespaces
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||