opengl
Class VisCanvas
java.lang.Object
opengl.VisCanvas
- All Implemented Interfaces:
- java.util.EventListener, javax.media.opengl.GLEventListener
public class VisCanvas
- extends java.lang.Object
- implements javax.media.opengl.GLEventListener
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
VisCanvas
public VisCanvas()
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)