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