- All Known Implementing Classes:
BidirectionalRenderer,MetropolisRenderer,PixelwiseRenderer
public interface Renderer
This interface specifies the basic operations for a
renderer.
- Author:
- Ole Kniemeyer
-
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(Options opts, ProgressMonitor progress) Initializes the renderer.voidrender(Scene scene, Sensor camera, Matrix4d cameraTransformation, int width, int height, ImageObserver obs) Renders an image of ascene.voidstop()This method is invoked from another thread to stop a running renderer.
-
Method Details
-
initialize
Initializes the renderer. This method has to be invoked at first.- Parameters:
opts- options to use (may benull)progress- monitor to display rendering progress (may benull)
-
render
void render(Scene scene, Sensor camera, Matrix4d cameraTransformation, int width, int height, ImageObserver obs) Renders an image of ascene.- Parameters:
scene- scene to rendercamera- camera to usecameraTransformation- transformation from camera coordinates to world coordinateswidth- width of imageheight- height of imageobs- the observer receives the image data
-
stop
void stop()This method is invoked from another thread to stop a running renderer. The renderer should stop rendering as early as possible. However, there is no guarantee on the time span betweenstopand the return from the invocation ofrender.
-