|
Sweet Home 3D 4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eteks.sweethome3d.j3d.PhotoRenderer
public class PhotoRenderer
A renderer able to create a photo realistic image of a home.
Nested Class Summary | |
---|---|
static class |
PhotoRenderer.Quality
|
static class |
PhotoRenderer.SphereLightWithNoRepresentation
A SunFlow sphere light with no representation. |
Constructor Summary | |
---|---|
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 . |
Method Summary | |
---|---|
void |
render(BufferedImage image,
Camera camera,
ImageObserver observer)
Renders home in image at the given camera location and image size. |
void |
stop()
Stops the rendering process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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 ones given in constructor, meaning any change made in
home since the instantiation of this renderer won't be updated.
public void stop()
|
Sweet Home 3D 4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License |