public class PhotoRenderer
extends java.lang.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 . |
public PhotoRenderer(Home home, PhotoRenderer.Quality quality) throws java.io.IOException
home
.java.io.IOException
- if texture image files required in the scene couldn't be created.public PhotoRenderer(Home home, Object3DFactory object3DFactory, PhotoRenderer.Quality quality) throws java.io.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.java.io.IOException
- if texture image files required in the scene couldn't be created.public void render(java.awt.image.BufferedImage image, Camera camera, java.awt.image.ImageObserver observer)
image
at the given camera
location and image size.
The rendered objects of the home are the ones given in constructor, meaning any change made in
home since the instantiation of this renderer won't be updated.public void stop()
© Copyrights 2006-2014 eTeks - All rights reserved
Distributed under GNU General Public License