public class PhotoRenderer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PhotoRenderer.Quality |
static class |
PhotoRenderer.SphereLightWithNoRepresentation
A SunFlow sphere light with no representation.
|
Constructor and Description |
---|
PhotoRenderer(Home home,
Object3DFactory object3dFactory,
PhotoRenderer.Quality quality)
Creates an instance ready to render the scene matching the given
home . |
PhotoRenderer(Home home,
PhotoRenderer.Quality quality)
Creates an instance ready to render the scene matching the given
home . |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes temporary data that may be required to run this renderer.
|
void |
render(BufferedImage image,
Camera camera,
ImageObserver observer)
Renders home in
image at the given camera location and image size. |
void |
render(BufferedImage image,
Camera camera,
List<? extends Selectable> updatedItems,
ImageObserver observer)
Renders home in
image at the given camera location and image size. |
void |
stop()
Stops the rendering process.
|
public PhotoRenderer(Home home, PhotoRenderer.Quality quality) throws IOException
home
.IOException
- if texture image files required in the scene couldn't be created.public PhotoRenderer(Home home, Object3DFactory object3dFactory, PhotoRenderer.Quality quality) throws IOException
home
.home
- the home to renderobject3dFactory
- a factory able to create 3D objects from home
items.
The createObject3D
of
this factory is expected to return an instance of Node
in current implementation.IOException
- if texture image files required in the scene couldn't be created.public void render(BufferedImage image, Camera camera, ImageObserver observer)
image
at the given camera
location and image size.
The rendered objects of the home are the same ones since last call to render or construction.public void render(BufferedImage image, Camera camera, List<? extends Selectable> updatedItems, ImageObserver observer) throws IOException
image
at the given camera
location and image size.
The home objects listed in updatedItems
will be updated in the renderer,
allowing animations or modifications of their appearance.IOException
public void stop()
public void dispose()
© Copyrights 2006-2016 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License