|
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 X3DScene
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 |
|---|
| Fields inherited from interface org.web3d.x3d.sai.X3DExecutionContext |
|---|
ASCII_ENCODING, BIFS_ENCODING, BINARY_ENCODING, LAST_STD_ENCODING, NO_SCENE, SCRIPTED_ENCODING, VRML_ENCODING, XML_ENCODING |
| Method Summary | |
|---|---|
void |
addMetaData(java.lang.String name,
java.lang.String value)
Add a meta tag data item to this scene. |
void |
addRootNode(X3DNode node)
Add a new root node to the scene graph. |
X3DNode |
getExportedNode(java.lang.String name)
Get the node which is exported from the scene under a given |
java.lang.String[] |
getExportedNodes()
Get the list of exports from this file. |
java.util.Map |
getMetaData()
Get the meta data mapping from this scene. |
void |
removeExportedNode(java.lang.String name)
Remove an exported name from the scene. |
void |
removeMetaData(java.lang.String name)
Remove the named tag from the map. |
void |
removeRootNode(X3DNode node)
Remove the root node from the scene graph. |
void |
updateExportedNode(java.lang.String localName,
java.lang.String exportName)
Add a named node to this scene. |
| Method Detail |
|---|
void addMetaData(java.lang.String name,
java.lang.String value)
name - The name of the tag to addvalue - The value of the tag
java.lang.NullPointerException - The name or value were nulljava.util.Map getMetaData()
void removeMetaData(java.lang.String name)
name - The name of the tag to removeX3DNode getExportedNode(java.lang.String name)
name - The export name to find
java.lang.String[] getExportedNodes()
void updateExportedNode(java.lang.String localName,
java.lang.String exportName)
localName - The local DEF name in this sceneexportName - The name to export the node as, or nullvoid removeExportedNode(java.lang.String name)
name - The exported name to removevoid addRootNode(X3DNode node)
node - The node pointer to add to the scenevoid removeRootNode(X3DNode node)
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||