anl.aida.viz3d
Class RayCreator

java.lang.Object
  extended by anl.aida.viz3d.RayCreator

public class RayCreator
extends java.lang.Object

Takes screen coordinates and creates ray that passes through the world coordinates corresponding to those screen coordinates.


Field Summary
private  javax.media.opengl.glu.GLU glu
           
private  java.nio.DoubleBuffer mvMatrix
           
private  java.nio.DoubleBuffer output
           
private  java.nio.DoubleBuffer projMatrix
           
private  java.nio.IntBuffer viewport
           
 
Constructor Summary
RayCreator()
           
 
Method Summary
 Ray3f createRay(javax.media.opengl.GL gl, javax.vecmath.Point3f viewLocation, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

viewport

private java.nio.IntBuffer viewport

mvMatrix

private java.nio.DoubleBuffer mvMatrix

projMatrix

private java.nio.DoubleBuffer projMatrix

output

private java.nio.DoubleBuffer output

glu

private javax.media.opengl.glu.GLU glu
Constructor Detail

RayCreator

public RayCreator()
Method Detail

createRay

public Ray3f createRay(javax.media.opengl.GL gl,
                       javax.vecmath.Point3f viewLocation,
                       int x,
                       int y)