|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sygem.jazz3d3.loader.LoadFactory
Acts as a central point for all object loaders. You create
the loaders you want and assign them to a LoadFactory
object.
This LoadFactory
then gets passed to a Model3d
, which will
perform the actual loading. Here's an example:
Model3d m = new Model3d(0,0,8);
LoadFactory load = new LoadFactory();
load.assignLoader("3DS", new Loader3DS());
m.loadModel("model.3ds", load);
Model3d
,
Loader
Constructor Summary | |
LoadFactory()
Default constructor. |
Method Summary | |
void |
assignLoader(java.lang.String ext,
Loader ldr)
Assigns a 3d object loader to a file extension. |
void |
removeLoader(java.lang.String ext)
Removes a 3d object loader, based on file extension. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LoadFactory()
Method Detail |
public final void assignLoader(java.lang.String ext, Loader ldr)
ext
- The filename extension. Not case-sensitive.ldr
- The Loader you want to associate with the extension.Loader
,
removeLoader(java.lang.String)
public final void removeLoader(java.lang.String ext)
ext
- The filename extension of the loader you want to remove. Not case-sensitive.Loader
,
assignLoader(java.lang.String, com.sygem.jazz3d3.loader.Loader)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |