- All Known Implementing Classes:
MetropolisAntiAliasing
,NoAntialiasing
,StochasticSupersampling
public interface Antialiasing
An implementation of this interface encapsulates a single antialiasing
method that is based on prefiltering.
- Author:
- Michael Tauer, Ole Kniemeyer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendStatistics
(StringBuffer stats) Appends some statistics information about the antialiasing tostats
.Returns a clone of thisAntialiasing
.void
getColorOfRectangle
(double x, double y, double width, double height, Color4f color, Random random) This method has to return a color value determined for a given rectangular region on the image plane.void
initialize
(PixelwiseRenderer renderer, Scene scene) Initializes the antialiasing method using the data available through therenderer
.void
setPixelXY
(float x, float y)
-
Method Details
-
dup
Returns a clone of thisAntialiasing
. All constant variables are copied shallowly, state variables are newly created and copied where necessary.- Parameters:
scene
- duplicate of scene- Returns:
- clone of this antialiasing
-
initialize
Initializes the antialiasing method using the data available through therenderer
.- Parameters:
renderer
- the renderer which provides the needed informationscene
- the scene which is rendered
-
getColorOfRectangle
void getColorOfRectangle(double x, double y, double width, double height, Color4f color, Random random) This method has to return a color value determined for a given rectangular region on the image plane. The coordinates are understood asuv
coordinates for theSensor
which represents the camera.- Parameters:
x
- Describes the x position of the lower left corner of the rectangle.y
- Describes the y position of the lower left corner of the rectangle.width
- width of the rectangleheight
- height of the of the rectanglecolor
- The determined color of the rectangle will be stored in this parameter.random
- pseudorandom generator
-
appendStatistics
Appends some statistics information about the antialiasing tostats
. This method will be invoked after the whole rendering process has completed. It should also invokeappendStatistics
on the ray processor.- Parameters:
stats
- buffer for statistics information
-
setPixelXY
void setPixelXY(float x, float y)
-