|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.j3d.loaders.SceneBase
This class implements the Scene interface and extends it to incorporate utilities that could be used by loaders. There should be little need for future loaders to subclass this, or to implement Scene directly, as the functionality of a SceneBase is fairly straightforward. This class is responsible for both the storage and retrieval of data from the Scene. The storage methods (used only by Loader writers) are all of the add* routines. The retrieval methods (used primarily by Loader users) are all of the get* routines.
Constructor Summary | |
SceneBase()
|
Method Summary | |
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(java.lang.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(java.lang.String name,
java.lang.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. |
java.lang.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. |
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. |
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. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SceneBase()
Method Detail |
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(java.lang.String descriptionString)
public void addNamedObject(java.lang.String name, java.lang.Object object)
public BranchGroup getSceneGroup()
public TransformGroup[] getViewGroups()
public float[] getHorizontalFOVs()
public Light[] getLightNodes()
public java.util.Hashtable getNamedObjects()
public Background[] getBackgroundNodes()
public Fog[] getFogNodes()
public Behavior[] getBehaviorNodes()
public Sound[] getSoundNodes()
public java.lang.String getDescription()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |