de.grogra.ray2.antialiasing
public class NoAntialiasing extends ProcessorBase implements Antialiasing
getColorOfRectangle will only return the color
of a single ray that is located at the center of the rectangle.| Modifier and Type | Field and Description |
|---|---|
RayProcessor |
processor
The processor on which antialiasing operates.
|
| Constructor and Description |
|---|
NoAntialiasing() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendStatisticsImpl(java.lang.StringBuffer stats) |
Antialiasing |
dup(Scene scene)
Returns a clone of this
Antialiasing. |
void |
getColorOfRectangle(double x,
double y,
double width,
double height,
Color4f color,
java.util.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 the
renderer. |
protected void |
initLocals() |
void |
setPixelXY(float x,
float y) |
appendStatistics, clone, mergeStatisticsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendStatisticspublic RayProcessor processor
protected void appendStatisticsImpl(java.lang.StringBuffer stats)
appendStatisticsImpl in class ProcessorBasepublic Antialiasing dup(Scene scene)
AntialiasingAntialiasing.
All constant variables are copied shallowly, state variables
are newly created and copied where necessary.dup in interface Antialiasingscene - duplicate of scenepublic void getColorOfRectangle(double x,
double y,
double width,
double height,
Color4f color,
java.util.Random random)
Antialiasinguv coordinates for the
Sensor which represents the camera.getColorOfRectangle in interface Antialiasingx - 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 generatorpublic void initialize(PixelwiseRenderer renderer, Scene scene)
Antialiasingrenderer.initialize in interface Antialiasingrenderer - the renderer which provides the needed informationscene - the scene which is renderedprotected void initLocals()
initLocals in class ProcessorBasepublic void setPixelXY(float x,
float y)
setPixelXY in interface Antialiasing