gui.OpenGL
Class TesselationViewer

java.lang.Object
  extended by GLCanvas
      extended by gui.OpenGL.TesselationViewer
All Implemented Interfaces:
RefinementListener

public class TesselationViewer
extends GLCanvas
implements RefinementListener

Class that draws a tesselation on a GLCanvas with OPENGL implementing and listening to GLEvents a RefinementInterface

Author:
ward

Field Summary
protected  Camera camera
           
protected  java.awt.Dimension imageDimension
           
 
Constructor Summary
TesselationViewer(java.awt.Dimension imageDimension)
           
 
Method Summary
 void display(GLAutoDrawable drawable)
          use this method only in the AWT-EventQueue-0 !!
 void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged)
           
 Camera getCamera()
           
 void init(GLAutoDrawable drawable)
           
protected  void moveScene()
           
 void performRefinementEvent(RefinementEvent event)
           
 void reshape(GLAutoDrawable drawable, int x, int y, int width, int height)
           
protected  void rotate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

camera

protected volatile Camera camera

imageDimension

protected volatile java.awt.Dimension imageDimension
Constructor Detail

TesselationViewer

public TesselationViewer(java.awt.Dimension imageDimension)
Parameters:
imageDimension -
Method Detail

performRefinementEvent

public void performRefinementEvent(RefinementEvent event)
Specified by:
performRefinementEvent in interface RefinementListener

init

public void init(GLAutoDrawable drawable)

display

public void display(GLAutoDrawable drawable)
use this method only in the AWT-EventQueue-0 !! use a runneble interface and an InvokeLater()


moveScene

protected void moveScene()

rotate

protected void rotate()

reshape

public void reshape(GLAutoDrawable drawable,
                    int x,
                    int y,
                    int width,
                    int height)

displayChanged

public void displayChanged(GLAutoDrawable drawable,
                           boolean modeChanged,
                           boolean deviceChanged)

getCamera

public Camera getCamera()