j3d-vrml97-0.1.0

org.jdesktop.j3d.loaders.vrml97
Class VrmlScene

java.lang.Object
  extended by org.jdesktop.j3d.loaders.vrml97.VrmlScene
All Implemented Interfaces:
Scene

public class VrmlScene
extends Object
implements Scene

Description of the Class


Method Summary
 void cleanForCompile(Node root)
          Scans the subgraph, clearing the pickable and collidable flags on the Shape3Ds in the subgraph to allow compilation.
 Background[] getBackgroundNodes()
          The Background nodes returned will be parented within the SceneGroup
 Behavior[] getBehaviorNodes()
          The VRML loader does not support loading behaviors, this method returns null.
 Hashtable getDefineTable()
          Returns the a Hashtable which associated DEF names with Nodes
 String getDescription()
          Returns the description (if any) from the first WorldInfo node read.
 Fog[] getFogNodes()
          The Fog nodes returned will be parented within the SceneGroup
 float[] getHorizontalFOVs()
          Gets the horizontalFOVs attribute of the VrmlScene object
 Light[] getLightNodes()
          The Light nodes returned will be parented within the SceneGroup
 Hashtable getNamedObjects()
          Gets the namedObjects attribute of the VrmlScene object
 int getNumTris()
          Returns the approximate number of triangles in the Scene.
 BaseNode[] getObjects()
          Returns the base level VRML nodes
 BranchGroup getSceneGroup()
          Gets the sceneGroup attribute of the VrmlScene object
 Sound[] getSoundNodes()
          The VRML loader does not support loading sounds, this method returns null.
 TransformGroup[] getViewGroups()
          The TransformGroups returned will be parented withing the SceneGroup.
 Viewpoint[] getViewpoints()
          Returns the Viewpoint nodes in the scene
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSceneGroup

public BranchGroup getSceneGroup()
Gets the sceneGroup attribute of the VrmlScene object

Specified by:
getSceneGroup in interface Scene
Returns:
The sceneGroup value

getViewGroups

public TransformGroup[] getViewGroups()
The TransformGroups returned will be parented withing the SceneGroup. The ViewPlatform will be the child of the TransformGroup

Specified by:
getViewGroups in interface Scene
Returns:
The viewGroups value

getHorizontalFOVs

public float[] getHorizontalFOVs()
Gets the horizontalFOVs attribute of the VrmlScene object

Specified by:
getHorizontalFOVs in interface Scene
Returns:
The horizontalFOVs value

getLightNodes

public Light[] getLightNodes()
The Light nodes returned will be parented within the SceneGroup

Specified by:
getLightNodes in interface Scene
Returns:
The lightNodes value

getNamedObjects

public Hashtable getNamedObjects()
Gets the namedObjects attribute of the VrmlScene object

Specified by:
getNamedObjects in interface Scene
Returns:
The namedObjects value

getBackgroundNodes

public Background[] getBackgroundNodes()
The Background nodes returned will be parented within the SceneGroup

Specified by:
getBackgroundNodes in interface Scene
Returns:
The backgroundNodes value

getFogNodes

public Fog[] getFogNodes()
The Fog nodes returned will be parented within the SceneGroup

Specified by:
getFogNodes in interface Scene
Returns:
The fogNodes value

getBehaviorNodes

public Behavior[] getBehaviorNodes()
The VRML loader does not support loading behaviors, this method returns null.

Specified by:
getBehaviorNodes in interface Scene
Returns:
The behaviorNodes value

getSoundNodes

public Sound[] getSoundNodes()
The VRML loader does not support loading sounds, this method returns null.

Specified by:
getSoundNodes in interface Scene
Returns:
The soundNodes value

getDescription

public String getDescription()
Returns the description (if any) from the first WorldInfo node read. If there is no description specified, null will be returned

Specified by:
getDescription in interface Scene
Returns:
The description value

cleanForCompile

public void cleanForCompile(Node root)
Scans the subgraph, clearing the pickable and collidable flags on the Shape3Ds in the subgraph to allow compilation. The pickable flag will be set to false if the Shape3D does not have an ancestor which sets the ALLOW_PICK_REPORTING bit. The collidable flag will always be set to false.

Parameters:
root - Description of the Parameter

getObjects

public BaseNode[] getObjects()
Returns the base level VRML nodes

Returns:
The objects value

getViewpoints

public Viewpoint[] getViewpoints()
Returns the Viewpoint nodes in the scene

Returns:
The viewpoints value

getDefineTable

public Hashtable getDefineTable()
Returns the a Hashtable which associated DEF names with Nodes

Returns:
The defineTable value

getNumTris

public int getNumTris()
Returns the approximate number of triangles in the Scene. For Switch and LOD nodes, only the triangles on the first child of the node are counted.

Returns:
The numTris value

j3d-vrml97-0.1.0

Todo: put BSD License reference here..