glcanvas
Class VisCanvas

java.lang.Object
  extended by glcanvas.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 int ACCUMULATE
           
static float 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 int GRADIENT_TEX
           
static int MIP
           
static float ROTATE_X_INIT
           
static float ROTATE_Y_INIT
           
static float ROTATE_Z_INIT
           
static int SLICING
           
static int VOLUME_TEX
           
static int X_DIR
           
static int Y_DIR
           
static int Z_DIR
           
 
Constructor Summary
VisCanvas()
           
 
Method Summary
 void changeDirection(int direction)
           
 void display(javax.media.opengl.GLAutoDrawable drawable)
           
 void displayChanged(javax.media.opengl.GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged)
           
 void flushCamera()
           
 void init(javax.media.opengl.GLAutoDrawable drawable)
           
 void reshape(javax.media.opengl.GLAutoDrawable drawable, int x, int y, int width, int height)
           
 void rotateObject(int x, int y)
           
 void saveImage(java.lang.String fileName)
           
static void setFlowData(FlowData fData)
           
 void setPlanarView(boolean planarView)
           
 void setRendering(int rendering)
           
 void setTexCoord(int coord)
           
static void setTransTex(int[] tt)
           
 void showArrows(boolean sa)
           
 void showBackground(boolean sb)
           
 void showEvenlySpaced(boolean es)
           
 void showStreamlines(boolean ss)
           
 void transferFunctionChanged(int index, Vec4[] array)
           
 void translateObject(int x, int y)
           
 void updateRenderChannel(int index, boolean visible)
           
 void zoomObject(int direction)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCUMULATE

public static final int ACCUMULATE
See Also:
Constant Field Values

BG

public static final float BG
See Also:
Constant Field Values

canvasHeight

public static int canvasHeight

canvasPOTHeight

public static int canvasPOTHeight

canvasPOTWidth

public static int canvasPOTWidth

canvasWidth

public static int canvasWidth

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

GRADIENT_TEX

public static final int GRADIENT_TEX
See Also:
Constant Field Values

MIP

public static final int MIP
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

SLICING

public static final int SLICING
See Also:
Constant Field Values

VOLUME_TEX

public static final int VOLUME_TEX
See Also:
Constant Field Values

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
Constructor Detail

VisCanvas

public VisCanvas()
Method Detail

changeDirection

public void changeDirection(int direction)

display

public void display(javax.media.opengl.GLAutoDrawable drawable)
Specified by:
display 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

flushCamera

public void flushCamera()

init

public void init(javax.media.opengl.GLAutoDrawable drawable)
Specified by:
init 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

rotateObject

public void rotateObject(int x,
                         int y)

saveImage

public void saveImage(java.lang.String fileName)

setFlowData

public static void setFlowData(FlowData fData)

setPlanarView

public void setPlanarView(boolean planarView)

setRendering

public void setRendering(int rendering)

setTexCoord

public void setTexCoord(int coord)

setTransTex

public static void setTransTex(int[] tt)

showArrows

public void showArrows(boolean sa)

showBackground

public void showBackground(boolean sb)

showEvenlySpaced

public void showEvenlySpaced(boolean es)

showStreamlines

public void showStreamlines(boolean ss)

transferFunctionChanged

public void transferFunctionChanged(int index,
                                    Vec4[] array)

translateObject

public void translateObject(int x,
                            int y)

updateRenderChannel

public void updateRenderChannel(int index,
                                boolean visible)

zoomObject

public void zoomObject(int direction)