public class PhotoRenderer extends AbstractPhotoRenderer
Modifier and Type | Class and Description |
---|---|
static class |
PhotoRenderer.Quality
Deprecated.
From version 7.0, prefer use
AbstractPhotoRenderer.Quality enum. |
static class |
PhotoRenderer.SphereLightWithNoRepresentation
A SunFlow sphere light with no representation.
|
static class |
PhotoRenderer.TriangleMeshLightWithNoRepresentation
A SunFlow triangle mesh light with no representation.
|
Constructor and Description |
---|
PhotoRenderer(Home home,
AbstractPhotoRenderer.Quality quality)
Creates an instance ready to render the scene matching the given
home . |
PhotoRenderer(Home home,
Object3DFactory object3dFactory,
AbstractPhotoRenderer.Quality quality)
Creates an instance ready to render the scene matching the given
home . |
PhotoRenderer(Home home,
Object3DFactory object3dFactory,
PhotoRenderer.Quality quality)
Deprecated.
From version 7.0, prefer use the constructor with the parameter of
AbstractPhotoRenderer.Quality type. |
PhotoRenderer(Home home,
PhotoRenderer.Quality quality)
Deprecated.
From version 7.0, prefer use the constructor with the parameter of
AbstractPhotoRenderer.Quality type. |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes temporary data that may be required to run this renderer.
|
java.lang.String |
getName() |
void |
render(java.awt.image.BufferedImage image,
Camera camera,
java.awt.image.ImageObserver observer)
Renders home in
image at the given camera location and image size. |
void |
render(java.awt.image.BufferedImage image,
Camera camera,
java.util.List<? extends Selectable> updatedItems,
java.awt.image.ImageObserver observer)
Renders home in
image at the given camera location and image size. |
void |
stop()
Stops the rendering process.
|
createInstance, getAvailableRenderers, getHome, getQuality, getRenderingParameterValue, isAvailable
public PhotoRenderer(Home home, PhotoRenderer.Quality quality) throws java.io.IOException
AbstractPhotoRenderer.Quality
type.home
.java.io.IOException
- if texture image files required in the scene couldn't be created.public PhotoRenderer(Home home, AbstractPhotoRenderer.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
AbstractPhotoRenderer.Quality
type.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
public PhotoRenderer(Home home, Object3DFactory object3dFactory, AbstractPhotoRenderer.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
public java.lang.String getName()
getName
in class AbstractPhotoRenderer
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 same ones since last call to render or construction.render
in class AbstractPhotoRenderer
public void render(java.awt.image.BufferedImage image, Camera camera, java.util.List<? extends Selectable> updatedItems, java.awt.image.ImageObserver observer) throws java.io.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.render
in class AbstractPhotoRenderer
java.io.IOException
public void stop()
stop
in class AbstractPhotoRenderer
public void dispose()
dispose
in class AbstractPhotoRenderer
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License