java.lang.Object
de.grogra.gpuflux.tracer.FluxTracer
- All Implemented Interfaces:
ProgressMonitor
- Direct Known Subclasses:
FluxLightTracer
,FluxPathTracer
,FluxWhittedTracer
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic double
static boolean
protected int
protected static final float
static final int
protected static final int
protected int
protected BufferedImage
static final int
static final int
static final int
protected int
protected ArrayList<ImageObserver>
protected Options
protected boolean
protected View
protected int
Fields inherited from interface de.grogra.util.ProgressMonitor
ALL, DONE_PROGRESS, I18N, INDETERMINATE_PROGRESS, INTERMEDIATE, LEVEL, NONE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
displayImage
(Buffer imageBuffer, ByteOrder byteOrder) protected void
displayImage
(FloatBuffer hdrBuffer) void
dispose()
protected String
getKernelCompilationArguments
(boolean spectral_enabled, boolean dispersion_enabled) protected void
log
(StringBuffer s, String l) void
render
(View view, int width, int height, ArrayList<ImageObserver> obs, Options options) void
setProgress
(String text, float progress) This method is invoked by the renderer to monitor its progress.protected void
showImage
(BufferedImage image) displays the rendered imagevoid
showMessage
(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()
-
Field Details
-
DEFAULT_TRACE_DEPTH
protected static final int DEFAULT_TRACE_DEPTH- See Also:
-
DEFAULT_PREFERRED_DURATION
public static final int DEFAULT_PREFERRED_DURATION- See Also:
-
DEFAULT_MIN_POWER
protected static final float DEFAULT_MIN_POWER- See Also:
-
INITIAL_SAMPLE_COUNT
public static final int INITIAL_SAMPLE_COUNT- See Also:
-
MAXIMUM_SAMPLE_COUNT
public static final int MAXIMUM_SAMPLE_COUNT- See Also:
-
INITIAL_SPECTRAL_RESOLUTION
public static final int INITIAL_SPECTRAL_RESOLUTION- See Also:
-
BATCH_LOGGING_ENABLED
public static boolean BATCH_LOGGING_ENABLED -
BATCH_BALANCE_SMOOTH
public static double BATCH_BALANCE_SMOOTH -
monitorLevel
protected transient int monitorLevel -
buildMonitorLevel
protected transient int buildMonitorLevel -
width
protected int width -
height
protected int height -
observers
-
view
-
options
-
useBih
protected boolean useBih -
image
-
-
Constructor Details
-
FluxTracer
public FluxTracer()
-
-
Method Details
-
log
-
render
public void render(View view, int width, int height, ArrayList<ImageObserver> obs, Options options) throws IOException - Throws:
IOException
-
trace
- Throws:
IOException
-
displayImage
-
displayImage
-
toIntColor
protected static int toIntColor(float r, float g, float b, float a) -
showImage
displays the rendered image- Parameters:
image
-
-
dispose
public void dispose() -
setProgress
Description copied from interface:ProgressMonitor
This method is invoked by the renderer to monitor its progress.- Specified by:
setProgress
in interfaceProgressMonitor
- Parameters:
text
- short text to displayprogress
- state of progress from 0 to 1, or one of the constantsProgressMonitor.INDETERMINATE_PROGRESS
,ProgressMonitor.DONE_PROGRESS
-
showMessage
Description copied from interface:ProgressMonitor
This method is invoked by the renderer to show a message, e.g., the statistics after rendering has completed.- Specified by:
showMessage
in interfaceProgressMonitor
- Parameters:
message
- message to display
-
getKernelCompilationArguments
protected String getKernelCompilationArguments(boolean spectral_enabled, boolean dispersion_enabled)
-