|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.web3d.j3d.loaders.J3DScene
Java3D representation of a complete scene in VRML.
The scene returns lists of nodes of the given type. This list contains all of the nodes of that type in the order that they are declared in the incoming stream. As the scene changes due to scripting and external interactions, it will add new instances of these nodes to the end of the list. If there is none of the given node types, the methods shall return empty lists.
A requirement of the VRML specification is that if there is no Viewpoint described in the file, the browser shall add an automatic one. As this scene may be used in other applications than a VRML browser, we do not automatically insert the viewpoint. If none is defined, the viewpoint list returned will be empty and it is up to the loading application to add its own as appropriate.
| Method Summary | |
javax.media.j3d.Background[] |
getBackgroundNodes()
This method returns an array of all Background nodes defined in the file. |
javax.media.j3d.Behavior[] |
getBehaviorNodes()
This method returns a group containing all of the Behavior nodes in the scene. |
java.lang.String |
getDescription()
Get the VRML description information. |
javax.media.j3d.Fog[] |
getFogNodes()
This method returns an array of all Fog nodes defined in the file. |
float[] |
getHorizontalFOVs()
This method returns an array of floats that contains the horizontal field of view values for each corresponding entry in the array of view groups returned by the method getViewGroups. |
javax.media.j3d.Light[] |
getLightNodes()
This method returns an array of all Lights defined in the file. |
java.util.Hashtable |
getNamedObjects()
Get a list of the nodes that have been named with DEF in this scene. |
javax.media.j3d.BranchGroup |
getSceneGroup()
Get the node that forms the root of this scene. |
javax.media.j3d.Sound[] |
getSoundNodes()
This method returns an array of all of the Sound nodes defined in the file. |
javax.media.j3d.TransformGroup[] |
getViewGroups()
This method returns an array of all View Groups defined in the file. |
void |
setDescription(java.lang.String ver)
Set the VRML description information. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void setDescription(java.lang.String ver)
ver - A string representation of the descriptionpublic java.lang.String getDescription()
getDescription in interface com.sun.j3d.loaders.Scenepublic javax.media.j3d.Background[] getBackgroundNodes()
getBackgroundNodes in interface com.sun.j3d.loaders.Scenepublic javax.media.j3d.Behavior[] getBehaviorNodes()
getBehaviorNodes in interface com.sun.j3d.loaders.Scenepublic javax.media.j3d.Fog[] getFogNodes()
getFogNodes in interface com.sun.j3d.loaders.Scenepublic float[] getHorizontalFOVs()
getHorizontalFOVs in interface com.sun.j3d.loaders.Scenepublic javax.media.j3d.Light[] getLightNodes()
getLightNodes in interface com.sun.j3d.loaders.Scenepublic javax.media.j3d.Sound[] getSoundNodes()
getSoundNodes in interface com.sun.j3d.loaders.Scenepublic javax.media.j3d.TransformGroup[] getViewGroups()
getViewGroups in interface com.sun.j3d.loaders.Scenepublic javax.media.j3d.BranchGroup getSceneGroup()
getSceneGroup in interface com.sun.j3d.loaders.Scenepublic java.util.Hashtable getNamedObjects()
SceneGraphObject instances. If there are no nodes marked
with DEF then the map will be empty.
getNamedObjects in interface com.sun.j3d.loaders.Scene
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||