de.grogra.gpuflux.tracer
public abstract class FluxTracer extends java.lang.Object implements ProgressMonitor
| Modifier and Type | Class and Description |
|---|---|
protected class |
FluxTracer.MsgBox |
| Modifier and Type | Field and Description |
|---|---|
static double |
BATCH_BALANCE_SMOOTH |
static boolean |
BATCH_LOGGING_ENABLED |
protected static float |
DEFAULT_MIN_POWER |
static int |
DEFAULT_PREFERRED_DURATION |
protected static int |
DEFAULT_TRACE_DEPTH |
protected int |
height |
protected java.awt.image.BufferedImage |
image |
static int |
INITIAL_SAMPLE_COUNT |
static int |
INITIAL_SPECTRAL_RESOLUTION |
static int |
MAXIMUM_SAMPLE_COUNT |
protected java.util.ArrayList<java.awt.image.ImageObserver> |
observers |
protected Options |
options |
protected boolean |
useBih |
protected View |
view |
protected int |
width |
DONE_PROGRESS, INDETERMINATE_PROGRESS| Constructor and Description |
|---|
FluxTracer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
displayImage(Buffer imageBuffer,
java.nio.ByteOrder byteOrder) |
protected void |
displayImage(java.nio.FloatBuffer hdrBuffer) |
void |
dispose() |
protected java.lang.String |
getKernelCompilationArguments(boolean spectral_enabled,
boolean dispersion_enabled) |
void |
render(View view,
int width,
int height,
java.util.ArrayList<java.awt.image.ImageObserver> obs,
Options options) |
void |
setProgress(java.lang.String text,
float progress)
This method is invoked by the renderer to monitor its progress.
|
protected void |
showImage(java.awt.image.BufferedImage image)
displays the rendered image
|
void |
showMessage(java.lang.String message)
This method is invoked by the renderer to show a message, e.g.,
the statistics after rendering has completed.
|
protected static int |
toIntColor(float r,
float g,
float b,
float a) |
protected abstract void |
trace() |
public static double BATCH_BALANCE_SMOOTH
public static boolean BATCH_LOGGING_ENABLED
protected static final float DEFAULT_MIN_POWER
public static final int DEFAULT_PREFERRED_DURATION
protected static final int DEFAULT_TRACE_DEPTH
protected int height
protected java.awt.image.BufferedImage image
public static final int INITIAL_SAMPLE_COUNT
public static final int INITIAL_SPECTRAL_RESOLUTION
public static final int MAXIMUM_SAMPLE_COUNT
protected java.util.ArrayList<java.awt.image.ImageObserver> observers
protected Options options
protected boolean useBih
protected View view
protected int width
protected void displayImage(Buffer imageBuffer, java.nio.ByteOrder byteOrder)
protected void displayImage(java.nio.FloatBuffer hdrBuffer)
public void dispose()
protected java.lang.String getKernelCompilationArguments(boolean spectral_enabled,
boolean dispersion_enabled)
public void render(View view, int width, int height, java.util.ArrayList<java.awt.image.ImageObserver> obs, Options options) throws java.io.IOException
java.io.IOExceptionpublic void setProgress(java.lang.String text,
float progress)
ProgressMonitorsetProgress in interface ProgressMonitortext - short text to displayprogress - state of progress from 0 to 1, or one of the
constants ProgressMonitor.INDETERMINATE_PROGRESS, ProgressMonitor.DONE_PROGRESSprotected void showImage(java.awt.image.BufferedImage image)
image - public void showMessage(java.lang.String message)
ProgressMonitorshowMessage in interface ProgressMonitormessage - message to displayprotected static int toIntColor(float r,
float g,
float b,
float a)
protected abstract void trace()
throws java.io.IOException
java.io.IOException