public class SceneBase extends java.lang.Object implements Scene
Constructor and Description |
---|
SceneBase() |
Modifier and Type | Method and Description |
---|---|
void |
addBackgroundNode(org.jogamp.java3d.Background background)
Adds the given Background node to the list of backgrounds.
|
void |
addBehaviorNode(org.jogamp.java3d.Behavior b)
Adds the given behavior to a list of behaviors
|
void |
addDescription(java.lang.String descriptionString)
Sets the text description of the scene to the passed in String.
|
void |
addFogNode(org.jogamp.java3d.Fog fog)
Adds the given Fog node to the list of fog nodes.
|
void |
addHorizontalFOV(float hfov)
Adds the given field of view value to the list of field of view values.
|
void |
addLightNode(org.jogamp.java3d.Light light)
Adds the given Light node to the list of lights.
|
void |
addNamedObject(java.lang.String name,
java.lang.Object object)
Adds the given String/Object pair to the table of named objects.
|
void |
addSoundNode(org.jogamp.java3d.Sound sound)
Adds the given Sound node to the list of sounds.
|
void |
addViewGroup(org.jogamp.java3d.TransformGroup tg)
Adds the given group to the list of view groups.
|
org.jogamp.java3d.Background[] |
getBackgroundNodes()
This method returns an array of all Background nodes defined in the
file.
|
org.jogamp.java3d.Behavior[] |
getBehaviorNodes()
This method returns a group containing all of the Behavior nodes
in the scene.
|
java.lang.String |
getDescription()
This method returns the text description of the file.
|
org.jogamp.java3d.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.
|
org.jogamp.java3d.Light[] |
getLightNodes()
This method returns an array of all Lights defined in the file.
|
java.util.Hashtable |
getNamedObjects()
This method returns a Hashtable which contains a list of all named
objects in the file and their associated scene graph objects.
|
org.jogamp.java3d.BranchGroup |
getSceneGroup()
This method returns the BranchGroup containing the overall
scene loaded by the loader.
|
org.jogamp.java3d.Sound[] |
getSoundNodes()
This method returns an array of all of the Sound nodes defined
in the file.
|
org.jogamp.java3d.TransformGroup[] |
getViewGroups()
This method returns an array of all View Groups defined in the file.
|
void |
setSceneGroup(org.jogamp.java3d.BranchGroup scene)
Sets the sceneGroup to be the group that is passed in.
|
public void setSceneGroup(org.jogamp.java3d.BranchGroup scene)
public void addViewGroup(org.jogamp.java3d.TransformGroup tg)
public void addHorizontalFOV(float hfov)
public void addBehaviorNode(org.jogamp.java3d.Behavior b)
public void addLightNode(org.jogamp.java3d.Light light)
public void addBackgroundNode(org.jogamp.java3d.Background background)
public void addSoundNode(org.jogamp.java3d.Sound sound)
public void addFogNode(org.jogamp.java3d.Fog fog)
public void addDescription(java.lang.String descriptionString)
public void addNamedObject(java.lang.String name, java.lang.Object object)
public org.jogamp.java3d.BranchGroup getSceneGroup()
getSceneGroup
in interface Scene
public org.jogamp.java3d.TransformGroup[] getViewGroups()
getViewGroups
in interface Scene
public float[] getHorizontalFOVs()
getHorizontalFOVs
in interface Scene
public org.jogamp.java3d.Light[] getLightNodes()
getLightNodes
in interface Scene
public java.util.Hashtable getNamedObjects()
getNamedObjects
in interface Scene
public org.jogamp.java3d.Background[] getBackgroundNodes()
getBackgroundNodes
in interface Scene
public org.jogamp.java3d.Fog[] getFogNodes()
getFogNodes
in interface Scene
public org.jogamp.java3d.Behavior[] getBehaviorNodes()
getBehaviorNodes
in interface Scene
public org.jogamp.java3d.Sound[] getSoundNodes()
getSoundNodes
in interface Scene
public java.lang.String getDescription()
getDescription
in interface Scene