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, wait
updateVis
protected 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 Object
Throwable
Object.finalize()
public void addAnimatedVisualisationListener(AnimatedVisualisationListener avl)
AnimatedVisualisationProvider
addAnimatedVisualisationListener
in interface AnimatedVisualisationProvider
avl
- The listener to addpublic void removeAnimatedVisualisationListener(AnimatedVisualisationListener avl)
AnimatedVisualisationProvider
removeAnimatedVisualisationListener
in interface AnimatedVisualisationProvider
avl
- The listener to removepublic void init(javax.media.opengl.GLAutoDrawable drawable)
init
in interface javax.media.opengl.GLEventListener
public void display(javax.media.opengl.GLAutoDrawable drawable)
display
in interface javax.media.opengl.GLEventListener
GLEventListener.display(javax.media.opengl.GLAutoDrawable)
public void dispose(javax.media.opengl.GLAutoDrawable drawable)
dispose
in interface javax.media.opengl.GLEventListener
GLEventListener.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.GLEventListener
GLEventListener.reshape(javax.media.opengl.GLAutoDrawable,
int, int, int, int)
public MBFImage getVisualisationImage()
getVisualisationImage
in interface VisualisationImageProvider
VisualisationImageProvider.getVisualisationImage()
public void setRequiredSize(Dimension d)
VisualisationImageProvider
setRequiredSize
in interface VisualisationImageProvider
d
- 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