|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ModelParser
An abstract class to encapsulate the functionality required to properly parse a model file representing a 3D physical object. Perhaps should migrate this to com.sun.java.j3d.loaders.* package classes.
Constructor Summary | |
protected |
ModelParser()
Private constructor. |
Method Summary | |
abstract javax.media.j3d.Group |
getModel()
Returns a 3D representation created from the Reader stream. |
static ModelParser |
loadParser(java.lang.String s)
Loads the ModelParser class specified by the given String. |
abstract void |
read(java.lang.String filename)
Parses the given filename to create the BranchGroup object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
protected ModelParser()
loadParser
to load a specific
ModelParser instance instead of instantiating a ModelParser directly.Method Detail |
public abstract void read(java.lang.String filename) throws ModelParserException
filename
- the name of the file to parse for 3D model information.public abstract javax.media.j3d.Group getModel() throws ModelParserException
public static final ModelParser loadParser(java.lang.String s) throws ModelParserException
s
- the name of the ModelParser class to be loaded.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |