D - Data typepublic abstract class Visualisation3D<D> extends Object implements javax.media.opengl.GLEventListener, Visualisation<D>, AnimatedVisualisationProvider
| Modifier and Type | Field and Description |
|---|---|
protected CameraPositionProvider |
cameraPosition
Object that provide the camera position over time
|
protected D |
data
The data!
|
protected javax.media.opengl.glu.gl2.GLUgl2 |
glu
The GLU library we'll use
|
protected com.jogamp.opengl.util.gl2.GLUT |
glut
The GLUT library we'll use
|
protected JOGLWindow |
window
The JOGL Window (NEWT)
|
| Constructor and Description |
|---|
Visualisation3D(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnimatedVisualisationListener(AnimatedVisualisationListener avl)
Add a visualisation listener to be informed of animation events.
|
void |
display(javax.media.opengl.GLAutoDrawable drawable) |
void |
dispose(javax.media.opengl.GLAutoDrawable drawable) |
protected void |
finalize()
Closes the window and cleans up
|
MBFImage |
getVisualisationImage()
Return the static visualisation image.
|
void |
init(javax.media.opengl.GLAutoDrawable drawable) |
boolean |
isEnableLights() |
void |
removeAnimatedVisualisationListener(AnimatedVisualisationListener avl)
Remove a given listener from being informed of animation events.
|
protected abstract void |
renderVis(javax.media.opengl.GLAutoDrawable drawable)
Render the visualisation into the drawable
|
void |
reshape(javax.media.opengl.GLAutoDrawable drawable,
int arg1,
int arg2,
int arg3,
int arg4) |
void |
setData(D data)
Set the data to display in the visualisation.
|
void |
setEnableLights(boolean enableLights) |
void |
setRequiredSize(Dimension d)
Set the required size of the visualisation image.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdateVisprotected final javax.media.opengl.glu.gl2.GLUgl2 glu
protected final com.jogamp.opengl.util.gl2.GLUT glut
protected JOGLWindow window
protected CameraPositionProvider cameraPosition
public Visualisation3D(int width, int height)
width - height - protected abstract void renderVis(javax.media.opengl.GLAutoDrawable drawable)
drawable - The drawableprotected void finalize() throws Throwable
finalize in class ObjectThrowableObject.finalize()public void addAnimatedVisualisationListener(AnimatedVisualisationListener avl)
AnimatedVisualisationProvideraddAnimatedVisualisationListener in interface AnimatedVisualisationProvideravl - The listener to addpublic void removeAnimatedVisualisationListener(AnimatedVisualisationListener avl)
AnimatedVisualisationProviderremoveAnimatedVisualisationListener in interface AnimatedVisualisationProvideravl - The listener to removepublic void init(javax.media.opengl.GLAutoDrawable drawable)
init in interface javax.media.opengl.GLEventListenerpublic void display(javax.media.opengl.GLAutoDrawable drawable)
display in interface javax.media.opengl.GLEventListenerGLEventListener.display(javax.media.opengl.GLAutoDrawable)public void dispose(javax.media.opengl.GLAutoDrawable drawable)
dispose in interface javax.media.opengl.GLEventListenerGLEventListener.dispose(javax.media.opengl.GLAutoDrawable)public void reshape(javax.media.opengl.GLAutoDrawable drawable, int arg1, int arg2, int arg3, int arg4)
reshape in interface javax.media.opengl.GLEventListenerGLEventListener.reshape(javax.media.opengl.GLAutoDrawable,
int, int, int, int)public MBFImage getVisualisationImage()
getVisualisationImage in interface VisualisationImageProviderVisualisationImageProvider.getVisualisationImage()public void setRequiredSize(Dimension d)
VisualisationImageProvidersetRequiredSize in interface VisualisationImageProviderd - The dimensionspublic void setData(D data)
setData in interface Visualisation<D>data - The data to displayVisualisation.setData(java.lang.Object)public boolean isEnableLights()
public void setEnableLights(boolean enableLights)
enableLights - the enableLights to set