de.grogra.ray2.antialiasing
public class MetropolisAntiAliasing extends NoAntialiasing
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MUTATION_PP_COUNT |
static java.lang.String |
SEED_COUNT |
processor| Constructor and Description |
|---|
MetropolisAntiAliasing() |
| Modifier and Type | Method and Description |
|---|---|
Antialiasing |
dup(Scene scene)
Returns a clone of this
Antialiasing. |
Line |
getNewLensEdge() |
Line |
getPerturbedLensEdge(Line oldRay) |
int |
getProcessorMutatedPixels() |
Line |
getRayByCoordinates(double x,
double y,
double width,
double height,
java.util.Random random) |
Line |
getStratifiedLensEdge() |
void |
initialize(PixelwiseRenderer renderer,
Scene scene)
Initializes the antialiasing method using the data available
through the
renderer. |
void |
initializeProccessorLoop(float brightness,
int imageWidth,
int imageHeight,
int mutatedPixPerProc,
MetropolisRenderer.MetropolisResult result,
int procId) |
void |
pathChanged() |
void |
registerUsedLensEdge(float x,
float y) |
void |
resetAll() |
void |
setImageValues(int width,
int height) |
void |
setPixelXY(float x,
float y) |
void |
signAntialiser2Processor() |
void |
stopProcessor() |
appendStatisticsImpl, getColorOfRectangle, initLocalsappendStatistics, clone, mergeStatisticsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendStatisticspublic static final java.lang.String MUTATION_PP_COUNT
public static final java.lang.String SEED_COUNT
public Antialiasing dup(Scene scene)
AntialiasingAntialiasing.
All constant variables are copied shallowly, state variables
are newly created and copied where necessary.dup in interface Antialiasingdup in class NoAntialiasingscene - duplicate of scenepublic Line getNewLensEdge()
public int getProcessorMutatedPixels()
public Line getRayByCoordinates(double x, double y, double width, double height, java.util.Random random)
public Line getStratifiedLensEdge()
public void initialize(PixelwiseRenderer renderer, Scene scene)
Antialiasingrenderer.initialize in interface Antialiasinginitialize in class NoAntialiasingrenderer - the renderer which provides the needed informationscene - the scene which is renderedpublic void initializeProccessorLoop(float brightness,
int imageWidth,
int imageHeight,
int mutatedPixPerProc,
MetropolisRenderer.MetropolisResult result,
int procId)
public void pathChanged()
public void registerUsedLensEdge(float x,
float y)
public void resetAll()
public void setImageValues(int width,
int height)
public void setPixelXY(float x,
float y)
setPixelXY in interface AntialiasingsetPixelXY in class NoAntialiasingpublic void signAntialiser2Processor()
public void stopProcessor()