java.lang.Object
de.grogra.gpuflux.tracer.FluxTracer
- All Implemented Interfaces:
ProgressMonitor
- Direct Known Subclasses:
FluxLightTracer,FluxPathTracer,FluxWhittedTracer
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic doublestatic booleanprotected intprotected static final floatstatic final intprotected static final intprotected intprotected BufferedImagestatic final intstatic final intstatic final intprotected intprotected ArrayList<ImageObserver> protected Optionsprotected booleanprotected Viewprotected intFields inherited from interface de.grogra.util.ProgressMonitor
ALL, DONE_PROGRESS, I18N, INDETERMINATE_PROGRESS, INTERMEDIATE, LEVEL, NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddisplayImage(Buffer imageBuffer, ByteOrder byteOrder) protected voiddisplayImage(FloatBuffer hdrBuffer) voiddispose()protected StringgetKernelCompilationArguments(boolean spectral_enabled, boolean dispersion_enabled) protected voidlog(StringBuffer s, String l) voidrender(View view, int width, int height, ArrayList<ImageObserver> obs, Options options) voidsetProgress(String text, float progress) This method is invoked by the renderer to monitor its progress.protected voidshowImage(BufferedImage image) displays the rendered imagevoidshowMessage(String message) This method is invoked by the renderer to show a message, e.g., the statistics after rendering has completed.protected static inttoIntColor(float r, float g, float b, float a) protected abstract voidtrace()
-
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:ProgressMonitorThis method is invoked by the renderer to monitor its progress.- Specified by:
setProgressin 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:ProgressMonitorThis method is invoked by the renderer to show a message, e.g., the statistics after rendering has completed.- Specified by:
showMessagein interfaceProgressMonitor- Parameters:
message- message to display
-
getKernelCompilationArguments
protected String getKernelCompilationArguments(boolean spectral_enabled, boolean dispersion_enabled)
-