gui.OpenGL
Class TesselationViewer
java.lang.Object
GLCanvas
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
camera
protected volatile Camera camera
imageDimension
protected volatile java.awt.Dimension imageDimension
TesselationViewer
public TesselationViewer(java.awt.Dimension imageDimension)
- Parameters:
imageDimension -
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()