|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmex.model.Loader
public abstract class Loader
Generic abstract Loader class for FileFormat Loaders to inherit from to standardize file loading. Future file loaders should extend this class.
Field Summary | |
---|---|
protected java.net.URL |
baseUrl
|
protected boolean |
dirty
|
static long |
LOAD_ALL
|
static long |
LOAD_CONTROLLERS
|
long |
loadFlags
|
static long |
PRECOMPUTE_BOUNDS
|
Constructor Summary | |
---|---|
Loader()
Default Constructor. |
|
Loader(int flags)
Constructs file loader with given flags. |
Method Summary | |
---|---|
abstract Node |
fetchCopy()
Returns a copy of the previously loaded file. |
java.net.URL |
getBase()
Returns base path for textures |
long |
getLoadFlags()
Returns the current flag state, as a long |
Node |
load(java.lang.String s)
Loads a MilkShape file from the path in the string s. |
abstract Node |
load(java.net.URL url)
Loads a URL, similar to load(String s) |
void |
removeLoadFlag(long flag)
Removes the given flag, setting it to false |
void |
setBase(java.net.URL path)
Sets the base path to load textures from. |
void |
setLoadFlag(long flag)
Sets the give flag to true |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public long loadFlags
public static final long LOAD_CONTROLLERS
public static final long LOAD_ALL
public static final long PRECOMPUTE_BOUNDS
protected boolean dirty
protected java.net.URL baseUrl
Constructor Detail |
---|
public Loader()
public Loader(int flags)
flags
- The flags for this file loaderMethod Detail |
---|
public void setBase(java.net.URL path)
path
- New texture pathpublic java.net.URL getBase()
public abstract Node fetchCopy()
public Node load(java.lang.String s)
s
- Filename
JmeException
- Either .ms3d file or texture files don't existNode
public abstract Node load(java.net.URL url)
load(String s)
url
- URL to load
public void setLoadFlag(long flag)
flag
- New flag to setpublic void removeLoadFlag(long flag)
flag
- The flag to removepublic long getLoadFlags()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |