Module gpuFlux

Class FluxTracer

java.lang.Object
de.grogra.gpuflux.tracer.FluxTracer
All Implemented Interfaces:
ProgressMonitor
Direct Known Subclasses:
FluxLightTracer, FluxPathTracer, FluxWhittedTracer

public abstract class FluxTracer extends Object implements ProgressMonitor
  • 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

      protected ArrayList<ImageObserver> observers
    • view

      protected View view
    • options

      protected Options options
    • useBih

      protected boolean useBih
    • image

      protected BufferedImage image
  • Constructor Details

    • FluxTracer

      public FluxTracer()
  • Method Details

    • log

      protected void log(StringBuffer s, String l)
    • render

      public void render(View view, int width, int height, ArrayList<ImageObserver> obs, Options options) throws IOException
      Throws:
      IOException
    • trace

      protected abstract void trace() throws IOException
      Throws:
      IOException
    • displayImage

      protected void displayImage(Buffer imageBuffer, ByteOrder byteOrder)
    • displayImage

      protected void displayImage(FloatBuffer hdrBuffer)
    • toIntColor

      protected static int toIntColor(float r, float g, float b, float a)
    • showImage

      protected void showImage(BufferedImage image)
      displays the rendered image
      Parameters:
      image -
    • dispose

      public void dispose()
    • setProgress

      public void setProgress(String text, float progress)
      Description copied from interface: ProgressMonitor
      This method is invoked by the renderer to monitor its progress.
      Specified by:
      setProgress in interface ProgressMonitor
      Parameters:
      text - short text to display
      progress - state of progress from 0 to 1, or one of the constants ProgressMonitor.INDETERMINATE_PROGRESS, ProgressMonitor.DONE_PROGRESS
    • showMessage

      public void showMessage(String message)
      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 interface ProgressMonitor
      Parameters:
      message - message to display
    • getKernelCompilationArguments

      protected String getKernelCompilationArguments(boolean spectral_enabled, boolean dispersion_enabled)