Simulation Optical Bench

Full Version 1.0 - 2002 Steffen Maus und Daniel Rot - All rights reserved!

Lenses, point sources of light, parallel sources of light, objects and an iris can be placed and moved on an optics bench. The characteristic parameters can be changed by giving input into a textbox. The way of light is calculated in real time.

To add an object to the optics bench, click onto "Point Source", "Parallel Source", "New Lens", "New Object" or "New Iris" and and onto the desired location on the optics bench.

Parameter changes have to be confirmed by hitting the ENTER key.

  • This Applet is "scriptable". This means that it can be configured and controled by using JavaScript methods inside the embedding web page. More information about scripting can be found in the file scripting.html.

    The following methods are available:

    jsSetVisible(state,element)
    make user interface elements visible or invisible:

      state = "yes": make user interface element visible
      state = "no": make user interface element invisible

      element = "PointSourceButton": element to add a point light source to the bench
      element = "ParallelSourceButton": element to add a parallel light source to the bench
      element = "LensButton": element to add a lens to the bench
      element = "ObjectButton": element to add an arrow to the bench
      element = "IrisButton": element to add an iris to the bench
      element = "PropertiesBox": displays the checked item's properties
      element = "DeleteButton": element to delete the selected item

    jsAddLens(x, f)
    adds a lens with focal length f (pixels) at the point x (pixels) to the bench.

    jsAddPointSource(x)
    adds a point light source at the point x (pixels) to the bench.

    jsAddParallelSource(x)
    adds a parallel light source at the point x (pixels) to the bench.

    jsAddObject(x, height)
    adds an arrow with height "height" (pixels) at the point x (pixels) to the bench. The arow itself is shown in red whereas the mappings are shown in grey.

    jsAddIris(x, radius)
    adds an iris with radius "radius" (pixels) at the point x (pixels) to the bench.