com.ryanm.glvisualiser.imp
Class VisTest

java.lang.Object
  extended by com.ryanm.glvisualiser.GLVisualiser
      extended by com.ryanm.glvisualiser.imp.VisTest
All Implemented Interfaces:
Configurable, java.awt.event.MouseListener, java.util.EventListener, javax.media.opengl.GLEventListener

public class VisTest
extends GLVisualiser

A test and demo of all the stuff i've done

Author:
ryanm

Field Summary
 
Fields inherited from class com.ryanm.glvisualiser.GLVisualiser
camera, capture, lighting
 
Constructor Summary
VisTest()
           
 
Method Summary
 void constructObjectTypes(javax.media.opengl.GLAutoDrawable drawable)
          Should be overridden by subclasses.
 Configurator getObjectConfigurator()
           
static void main(java.lang.String[] args)
           
 void render(javax.media.opengl.GLAutoDrawable drawable)
          This should be overridden to perform your drawing operations.
 void update()
          Override this method to perform animation and so on
 
Methods inherited from class com.ryanm.glvisualiser.GLVisualiser
addFrameListener, addPostConstructionTask, addPostFrameTask, display, displayChanged, enablePicking, getBackgroundColour, getCamera, getCanvas, getCapture, getConfigurator, getFPS, getGLInfo, getLighting, getLineColour, getLineWidth, getLineWidthRange, getNameStackUnderMouse, getTargetFPS, init, isAxesDrawing, isBoundaryDrawing, isEnabled, isLazyMode, isPicking, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, refresh, removeFrameListener, reshape, setAxesDrawing, setBackgroundColour, setBoundaryDrawing, setEnabled, setLazyMode, setLineColour, setLineWidth, setTargetFPS, setXaxisText, setYaxisText, setZaxisText, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisTest

public VisTest()
Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args -

getObjectConfigurator

public Configurator getObjectConfigurator()
Returns:
blah

constructObjectTypes

public void constructObjectTypes(javax.media.opengl.GLAutoDrawable drawable)
Description copied from class: GLVisualiser
Should be overridden by subclasses. This is where you should build your GLObjects, compile display lists and so on.

Specified by:
constructObjectTypes in class GLVisualiser
Parameters:
drawable - The GLAutoDrawable to use

update

public void update()
Description copied from class: GLVisualiser
Override this method to perform animation and so on

Specified by:
update in class GLVisualiser

render

public void render(javax.media.opengl.GLAutoDrawable drawable)
Description copied from class: GLVisualiser
This should be overridden to perform your drawing operations. If you want to do any freelance drawing outside of rendering GLObjects and GLEdges, the OpenGL context is provided. Note that, due to threading isssues, any drawing must be done in this method. Don't try to save a reference to the context for later use.

Specified by:
render in class GLVisualiser
Parameters:
drawable - The OpenGL context, should you want to do any freelance drawing.