opengl
Class VisCanvas

java.lang.Object
  extended by opengl.VisCanvas
All Implemented Interfaces:
java.util.EventListener, javax.media.opengl.GLEventListener

public class VisCanvas
extends java.lang.Object
implements javax.media.opengl.GLEventListener


Field Summary
static java.awt.Color bg
           
static int canvasHeight
           
static int canvasPOTHeight
           
static int canvasPOTWidth
           
static int canvasWidth
           
static float EYE_X_INIT
           
static float EYE_Y_INIT
           
static float EYE_Z_INIT
           
static float ROTATE_X_INIT
           
static float ROTATE_Y_INIT
           
static float ROTATE_Z_INIT
           
static int X_DIR
           
static int Y_DIR
           
static int Z_DIR
           
 
Constructor Summary
VisCanvas()
           
 
Method Summary
 void display(javax.media.opengl.GLAutoDrawable drawable)
           
 void displayChanged(javax.media.opengl.GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged)
           
static void drawRectangles(boolean show)
           
static void flushCamera()
           
static void flushFileCamera(float[] eyeFile)
           
static float[] getEye()
           
 void init(javax.media.opengl.GLAutoDrawable drawable)
           
 void reshape(javax.media.opengl.GLAutoDrawable drawable, int x, int y, int width, int height)
           
static void rotateImage(float f)
           
static void rotateObject(int x, int y)
           
static void saveImage(java.io.File newFile)
           
static void setEyeInit(float[] newEyeInit)
           
static void setGlobalTranslation(float x, float y)
           
static void setMouseCoords(java.awt.Point point)
           
static void translateObject(int x, int y)
           
static void zoomObject(int direction)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X_DIR

public static final int X_DIR
See Also:
Constant Field Values

Y_DIR

public static final int Y_DIR
See Also:
Constant Field Values

Z_DIR

public static final int Z_DIR
See Also:
Constant Field Values

EYE_X_INIT

public static final float EYE_X_INIT
See Also:
Constant Field Values

EYE_Y_INIT

public static final float EYE_Y_INIT
See Also:
Constant Field Values

EYE_Z_INIT

public static final float EYE_Z_INIT
See Also:
Constant Field Values

ROTATE_X_INIT

public static final float ROTATE_X_INIT
See Also:
Constant Field Values

ROTATE_Y_INIT

public static final float ROTATE_Y_INIT
See Also:
Constant Field Values

ROTATE_Z_INIT

public static final float ROTATE_Z_INIT
See Also:
Constant Field Values

bg

public static java.awt.Color bg

canvasPOTWidth

public static int canvasPOTWidth

canvasPOTHeight

public static int canvasPOTHeight

canvasWidth

public static int canvasWidth

canvasHeight

public static int canvasHeight
Constructor Detail

VisCanvas

public VisCanvas()
Method Detail

init

public void init(javax.media.opengl.GLAutoDrawable drawable)
Specified by:
init in interface javax.media.opengl.GLEventListener

display

public void display(javax.media.opengl.GLAutoDrawable drawable)
Specified by:
display in interface javax.media.opengl.GLEventListener

reshape

public void reshape(javax.media.opengl.GLAutoDrawable drawable,
                    int x,
                    int y,
                    int width,
                    int height)
Specified by:
reshape in interface javax.media.opengl.GLEventListener

displayChanged

public void displayChanged(javax.media.opengl.GLAutoDrawable drawable,
                           boolean modeChanged,
                           boolean deviceChanged)
Specified by:
displayChanged in interface javax.media.opengl.GLEventListener

zoomObject

public static void zoomObject(int direction)

translateObject

public static void translateObject(int x,
                                   int y)

rotateObject

public static void rotateObject(int x,
                                int y)

saveImage

public static void saveImage(java.io.File newFile)

flushFileCamera

public static void flushFileCamera(float[] eyeFile)

flushCamera

public static void flushCamera()

rotateImage

public static void rotateImage(float f)

setGlobalTranslation

public static void setGlobalTranslation(float x,
                                        float y)

setMouseCoords

public static void setMouseCoords(java.awt.Point point)

getEye

public static float[] getEye()

setEyeInit

public static void setEyeInit(float[] newEyeInit)

drawRectangles

public static void drawRectangles(boolean show)