public abstract class AbstractPhotoRenderer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractPhotoRenderer.Quality |
Constructor and Description |
---|
AbstractPhotoRenderer(Home home,
AbstractPhotoRenderer.Quality quality) |
Modifier and Type | Method and Description |
---|---|
static AbstractPhotoRenderer |
createInstance(java.lang.String rendererClassName,
Home home,
Object3DFactory object3dFactory,
AbstractPhotoRenderer.Quality quality)
Returns an instance of the rendering engine of class
renderingEngineClass if available
or a default instance of PhotoRenderer class. |
abstract void |
dispose()
Disposes temporary data that may be required to run this renderer.
|
static java.util.List<java.lang.String> |
getAvailableRenderers() |
Home |
getHome()
Returns the rendered home.
|
abstract java.lang.String |
getName() |
AbstractPhotoRenderer.Quality |
getQuality()
Returns the quality used to render a home.
|
protected java.lang.String |
getRenderingParameterValue(java.lang.String parameterName)
Returns the value of the given rendering parameter.
|
boolean |
isAvailable()
Returns
true if this render is able to run in the current environment. |
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. |
abstract 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. |
abstract void |
stop()
Stops the rendering process.
|
public AbstractPhotoRenderer(Home home, AbstractPhotoRenderer.Quality quality)
public static AbstractPhotoRenderer createInstance(java.lang.String rendererClassName, Home home, Object3DFactory object3dFactory, AbstractPhotoRenderer.Quality quality)
renderingEngineClass
if available
or a default instance of PhotoRenderer
class.rendererClassName
- the name of a renderer class with a constructor taking in parameters
home
, object3dFactory
and quality
.public static java.util.List<java.lang.String> getAvailableRenderers()
public boolean isAvailable()
true
if this render is able to run in the current environment.public abstract java.lang.String getName()
public Home getHome()
public AbstractPhotoRenderer.Quality getQuality()
public void render(java.awt.image.BufferedImage image, Camera camera, java.awt.image.ImageObserver observer) throws java.io.IOException
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.java.io.IOException
public abstract 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.java.io.IOException
public abstract void stop()
public abstract void dispose()
protected java.lang.String getRenderingParameterValue(java.lang.String parameterName)
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License