public final class SceneCompiler
extends java.lang.Object
Scenes so they can be used by Dayflower - Path Tracer.| Constructor and Description |
|---|
SceneCompiler()
Constructs a new
SceneCompiler instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addSceneCompilerObserver(SceneCompilerObserver sceneCompilerObserver)
Adds
sceneCompilerObserver to this SceneCompiler instance. |
CompiledScene |
compile(Scene scene)
Compiles
scene into a CompiledScene instance. |
void |
removeSceneCompilerObserver(SceneCompilerObserver sceneCompilerObserver)
Removes
sceneCompilerObserver from this SceneCompiler instance. |
public CompiledScene compile(Scene scene)
scene into a CompiledScene instance.
Returns a CompiledScene instance.
If scene is null, a NullPointerException will be thrown.
scene - the Scene to compileCompiledScene instancejava.lang.NullPointerException - thrown if, and only if, scene is nullpublic void addSceneCompilerObserver(SceneCompilerObserver sceneCompilerObserver)
sceneCompilerObserver to this SceneCompiler instance.
If sceneCompilerObserver is null, a NullPointerException will be thrown.
sceneCompilerObserver - the SceneCompilerObserver to addjava.lang.NullPointerException - thrown if, and only if, sceneCompilerObserver is nullpublic void removeSceneCompilerObserver(SceneCompilerObserver sceneCompilerObserver)
sceneCompilerObserver from this SceneCompiler instance.
If sceneCompilerObserver is null, a NullPointerException will be thrown.
sceneCompilerObserver - the SceneCompilerObserver to removejava.lang.NullPointerException - thrown if, and only if, sceneCompilerObserver is null