com.tirix.anim8or
Class Anim8orRepository

java.lang.Object
  extended by com.sun.j3d.loaders.SceneBase
      extended by com.tirix.anim8or.Anim8orRepository
All Implemented Interfaces:
Scene

public class Anim8orRepository
extends SceneBase

A class representing an Anim8or file. This is the repository for all top-level objects in an Anim8or file: objects, figures, sequences, textures, and scenes. The getSceneGroup method from java3D is provided in order to return the most appropriate Java3D object.

Version:
$Id: Anim8orRepository.java,v 1.2 2004/07/15 16:27:45 tirix Exp $

Change Log:
 $Log: Anim8orRepository.java,v $
 Revision 1.2  2004/07/15 16:27:45  tirix
 Added a class header with CVS tags.

 Revision 1.1  2004/06/09 20:49:12  tirix
 First version.

 
Copyright (C) 2004 Thierry Arnoux.

Author:
Thierry Arnoux

Method Summary
 Anim8orFigure getFigure(String name)
           
 Hashtable getFigures()
           
 Anim8orObject getObject(String name)
           
 Hashtable getObjects()
           
 Anim8orScene getScene(String name)
           
 BranchGroup getSceneGroup()
          This method returns the BranchGroup containing the overall scene loaded by the loader.
 Hashtable getScenes()
           
 Anim8orSequence getSequence(String name)
           
 Hashtable getSequences()
           
 Anim8orMaterial.Texture getTexture(String name)
           
 Hashtable getTextures()
           
 String getVersion()
           
 
Methods inherited from class com.sun.j3d.loaders.SceneBase
addBackgroundNode, addBehaviorNode, addDescription, addFogNode, addHorizontalFOV, addLightNode, addNamedObject, addSoundNode, addViewGroup, getBackgroundNodes, getBehaviorNodes, getDescription, getFogNodes, getHorizontalFOVs, getLightNodes, getNamedObjects, getSoundNodes, getViewGroups, setSceneGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getVersion

public String getVersion()

getObjects

public Hashtable getObjects()

getFigures

public Hashtable getFigures()

getSequences

public Hashtable getSequences()

getTextures

public Hashtable getTextures()

getScenes

public Hashtable getScenes()

getObject

public Anim8orObject getObject(String name)

getFigure

public Anim8orFigure getFigure(String name)

getSequence

public Anim8orSequence getSequence(String name)

getTexture

public Anim8orMaterial.Texture getTexture(String name)

getScene

public Anim8orScene getScene(String name)

getSceneGroup

public BranchGroup getSceneGroup()
This method returns the BranchGroup containing the overall scene loaded by the loader. If a scene is defined in the file, it is returned. If figures are defined in the file, a BranchGroup containing the first one is returned. Otherwise, objects are defined in the file. A BranchGroup containing the first one is returned.

Specified by:
getSceneGroup in interface Scene
Overrides:
getSceneGroup in class SceneBase
See Also:
SceneBase.getSceneGroup()