java.lang.Object
de.grogra.ray2.tracing.ProcessorBase
de.grogra.ray2.antialiasing.NoAntialiasing
de.grogra.ray2.antialiasing.MetropolisAntiAliasing
- All Implemented Interfaces:
Antialiasing
,Cloneable
-
Field Summary
Fields inherited from class de.grogra.ray2.antialiasing.NoAntialiasing
processor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a clone of thisAntialiasing
.getPerturbedLensEdge
(Line oldRay) int
getRayByCoordinates
(double x, double y, double width, double height, Random random) void
initialize
(PixelwiseRenderer renderer, Scene scene) Initializes the antialiasing method using the data available through therenderer
.void
initializeProccessorLoop
(float brightness, int imageWidth, int imageHeight, int mutatedPixPerProc, MetropolisRenderer.MetropolisResult result, int procId) void
void
registerUsedLensEdge
(float x, float y) void
resetAll()
void
setImageValues
(int width, int height) void
setPixelXY
(float x, float y) void
void
Methods inherited from class de.grogra.ray2.antialiasing.NoAntialiasing
appendStatisticsImpl, getColorOfRectangle, initLocals
Methods inherited from class de.grogra.ray2.tracing.ProcessorBase
appendStatistics, clone, mergeStatistics
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.grogra.ray2.antialiasing.Antialiasing
appendStatistics
-
Field Details
-
SEED_COUNT
- See Also:
-
MUTATION_PP_COUNT
- See Also:
-
-
Constructor Details
-
MetropolisAntiAliasing
public MetropolisAntiAliasing()
-
-
Method Details
-
initialize
Description copied from interface:Antialiasing
Initializes the antialiasing method using the data available through therenderer
.- Specified by:
initialize
in interfaceAntialiasing
- Overrides:
initialize
in classNoAntialiasing
- Parameters:
renderer
- the renderer which provides the needed informationscene
- the scene which is rendered
-
dup
Description copied from interface:Antialiasing
Returns a clone of thisAntialiasing
. All constant variables are copied shallowly, state variables are newly created and copied where necessary.- Specified by:
dup
in interfaceAntialiasing
- Overrides:
dup
in classNoAntialiasing
- Parameters:
scene
- duplicate of scene- Returns:
- clone of this antialiasing
-
resetAll
public void resetAll() -
setImageValues
public void setImageValues(int width, int height) -
initializeProccessorLoop
public void initializeProccessorLoop(float brightness, int imageWidth, int imageHeight, int mutatedPixPerProc, MetropolisRenderer.MetropolisResult result, int procId) -
getProcessorMutatedPixels
public int getProcessorMutatedPixels() -
signAntialiser2Processor
public void signAntialiser2Processor() -
stopProcessor
public void stopProcessor() -
getNewLensEdge
-
getPerturbedLensEdge
-
getStratifiedLensEdge
-
getRayByCoordinates
-
setPixelXY
public void setPixelXY(float x, float y) - Specified by:
setPixelXY
in interfaceAntialiasing
- Overrides:
setPixelXY
in classNoAntialiasing
-
registerUsedLensEdge
public void registerUsedLensEdge(float x, float y) -
pathChanged
public void pathChanged()
-