public interface Loader
Scene
Modifier and Type | Field and Description |
---|---|
static int |
LOAD_ALL
This flag enables the loading of all objects into the scene.
|
static int |
LOAD_BACKGROUND_NODES
This flag enables the loading of background objects into the scene.
|
static int |
LOAD_BEHAVIOR_NODES
This flag enables the loading of behaviors into the scene.
|
static int |
LOAD_FOG_NODES
This flag enables the loading of fog objects into the scene.
|
static int |
LOAD_LIGHT_NODES
This flag enables the loading of light objects into the scene.
|
static int |
LOAD_SOUND_NODES
This flag enables the loading of sound objects into the scene.
|
static int |
LOAD_VIEW_GROUPS
This flag enables the loading of view (camera) objects into
the scene.
|
Modifier and Type | Method and Description |
---|---|
String |
getBasePath()
Returns the current base path setting.
|
URL |
getBaseUrl()
Returns the current base URL setting.
|
int |
getFlags()
Returns the current loading flags setting.
|
Scene |
load(Reader reader)
This method loads the Reader and returns the Scene
containing the scene.
|
Scene |
load(String fileName)
This method loads the named file and returns the Scene
containing the scene.
|
Scene |
load(URL url)
This method loads the named file and returns the Scene
containing the scene.
|
void |
setBasePath(String pathName)
This method sets the base path name for data files associated with
the file passed into the load(String) method.
|
void |
setBaseUrl(URL url)
This method sets the base URL name for data files associated with
the file passed into the load(URL) method.
|
void |
setFlags(int flags)
This method sets the load flags for the file.
|
static final int LOAD_LIGHT_NODES
static final int LOAD_FOG_NODES
static final int LOAD_BACKGROUND_NODES
static final int LOAD_BEHAVIOR_NODES
static final int LOAD_VIEW_GROUPS
static final int LOAD_SOUND_NODES
static final int LOAD_ALL
Scene load(String fileName) throws FileNotFoundException, IncorrectFormatException, ParsingErrorException
Scene load(URL url) throws FileNotFoundException, IncorrectFormatException, ParsingErrorException
Scene load(Reader reader) throws FileNotFoundException, IncorrectFormatException, ParsingErrorException
void setBaseUrl(URL url)
void setBasePath(String pathName)
URL getBaseUrl()
String getBasePath()
void setFlags(int flags)
int getFlags()
Copyright © 2016–2022 SciJava. All rights reserved.