Module imp3d

Class Raytracer

java.lang.Object
de.grogra.imp.Renderer
de.grogra.imp3d.ray2.Raytracer
All Implemented Interfaces:
Options, Disposable, ImageObserver, Runnable

public class Raytracer extends Renderer implements Runnable, Options, ImageObserver
  • Field Details

    • RAYPROCESSOR

      public static final EnumerationType RAYPROCESSOR
    • ANTIALIASING

      public static final EnumerationType ANTIALIASING
    • DEBUG

      public static boolean DEBUG
  • Constructor Details

    • Raytracer

      public Raytracer(Map params)
    • Raytracer

      public Raytracer(Workbench w, int width, int height)
    • Raytracer

      public Raytracer(Workbench w, ViewConfig3D v, int width, int height)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in class Renderer
    • get

      public Object get(String key, Object def)
      Description copied from interface: Options
      Returns the option value for the option identified by key. If no special value for the option is defined, defaultValue is returned.
      Specified by:
      get in interface Options
      Parameters:
      key - identifier for option
      def - default value of option
      Returns:
      value of option named key
    • setRandomSeed

      public void setRandomSeed(int value)
    • render

      public void render()
      Specified by:
      render in class Renderer
    • dispose

      public void dispose()
      Specified by:
      dispose in interface Disposable
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • render

      public static void render(Item item, Object info, Context context)