|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jzy3d.plot3d.rendering.canvas.OffscreenCanvas
public class OffscreenCanvas
Offscreen canvas for use in headless environments. Currently, no axes are drawn and output size is either set using the specific constructor, or has a default size of 800x800 pixels.
Field Summary |
---|
Fields inherited from interface javax.media.opengl.GLPbuffer |
---|
APPLE_FLOAT, ATI_FLOAT, NV_FLOAT |
Constructor Summary | |
---|---|
OffscreenCanvas(Scene scene,
Quality quality)
Initialize a Canvas3d attached to a Scene , with a given rendering Quality . |
|
OffscreenCanvas(Scene scene,
Quality quality,
int width,
int height)
Initialize a Canvas3d attached to a Scene , with a given rendering Quality . |
Method Summary | |
---|---|
void |
addComponentListener(java.awt.event.ComponentListener cl)
|
void |
addFocusListener(java.awt.event.FocusListener fl)
|
void |
addGLEventListener(javax.media.opengl.GLEventListener gl)
|
void |
addHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener hl)
|
void |
addHierarchyListener(java.awt.event.HierarchyListener hl)
|
void |
addInputMethodListener(java.awt.event.InputMethodListener il)
|
void |
addKeyListener(java.awt.event.KeyListener kl)
|
void |
addMouseListener(java.awt.event.MouseListener ml)
|
void |
addMouseMotionListener(java.awt.event.MouseMotionListener ml)
|
void |
addMouseWheelListener(java.awt.event.MouseWheelListener ml)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pl)
|
void |
addPropertyChangeListener(java.lang.String string,
java.beans.PropertyChangeListener pl)
|
void |
bindTexture()
|
javax.media.opengl.GLContext |
createContext(javax.media.opengl.GLContext glc)
|
void |
destroy()
|
void |
display()
|
void |
dispose()
Performs all required cleanup when destroying a Canvas. |
void |
forceRepaint()
Invoked when a user requires the Canvas to be repainted (e.g. a non 3d layer has changed). |
boolean |
getAutoSwapBufferMode()
|
javax.media.opengl.GLCapabilities |
getChosenGLCapabilities()
|
javax.media.opengl.GLContext |
getContext()
|
int |
getFloatingPointMode()
|
javax.media.opengl.GL |
getGL()
|
int |
getHeight()
|
int |
getRendererHeight()
Provide the actual renderer height for the open gl camera settings, which is obtained after a resize event. |
int |
getRendererWidth()
Provide the actual renderer width for the open gl camera settings, which is obtained after a resize event. |
View |
getView()
Provide a reference to the View that renders into this canvas. |
int |
getWidth()
|
void |
releaseTexture()
|
void |
removeComponentListener(java.awt.event.ComponentListener cl)
|
void |
removeFocusListener(java.awt.event.FocusListener fl)
|
void |
removeGLEventListener(javax.media.opengl.GLEventListener gl)
|
void |
removeHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener hl)
|
void |
removeHierarchyListener(java.awt.event.HierarchyListener hl)
|
void |
removeInputMethodListener(java.awt.event.InputMethodListener il)
|
void |
removeKeyListener(java.awt.event.KeyListener kl)
|
void |
removeMouseListener(java.awt.event.MouseListener ml)
|
void |
removeMouseMotionListener(java.awt.event.MouseMotionListener ml)
|
void |
removeMouseWheelListener(java.awt.event.MouseWheelListener ml)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener pl)
|
void |
removePropertyChangeListener(java.lang.String string,
java.beans.PropertyChangeListener pl)
|
void |
repaint()
|
java.awt.image.BufferedImage |
screenshot()
Returns an image with the current renderer's size |
void |
setAutoSwapBufferMode(boolean bln)
|
void |
setGL(javax.media.opengl.GL gl)
|
void |
setRealized(boolean bln)
|
void |
setSize(int i,
int i1)
|
void |
swapBuffers()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OffscreenCanvas(Scene scene, Quality quality, int width, int height)
Scene
, with a given rendering Quality
.
public OffscreenCanvas(Scene scene, Quality quality)
Scene
, with a given rendering Quality
.
Method Detail |
---|
public void swapBuffers() throws javax.media.opengl.GLException
swapBuffers
in interface javax.media.opengl.GLDrawable
javax.media.opengl.GLException
public void setSize(int i, int i1)
setSize
in interface javax.media.opengl.GLDrawable
public void setRealized(boolean bln)
setRealized
in interface javax.media.opengl.GLDrawable
public int getWidth()
getWidth
in interface javax.media.opengl.GLDrawable
public int getHeight()
getHeight
in interface javax.media.opengl.GLDrawable
public javax.media.opengl.GLCapabilities getChosenGLCapabilities()
getChosenGLCapabilities
in interface javax.media.opengl.GLDrawable
public javax.media.opengl.GLContext createContext(javax.media.opengl.GLContext glc)
createContext
in interface javax.media.opengl.GLDrawable
public void removePropertyChangeListener(java.lang.String string, java.beans.PropertyChangeListener pl)
removePropertyChangeListener
in interface javax.media.opengl.ComponentEvents
public void removePropertyChangeListener(java.beans.PropertyChangeListener pl)
removePropertyChangeListener
in interface javax.media.opengl.ComponentEvents
public void removeMouseWheelListener(java.awt.event.MouseWheelListener ml)
removeMouseWheelListener
in interface javax.media.opengl.ComponentEvents
removeMouseWheelListener
in interface ICanvas
public void removeMouseMotionListener(java.awt.event.MouseMotionListener ml)
removeMouseMotionListener
in interface javax.media.opengl.ComponentEvents
removeMouseMotionListener
in interface ICanvas
public void removeMouseListener(java.awt.event.MouseListener ml)
removeMouseListener
in interface javax.media.opengl.ComponentEvents
removeMouseListener
in interface ICanvas
public void removeKeyListener(java.awt.event.KeyListener kl)
removeKeyListener
in interface javax.media.opengl.ComponentEvents
removeKeyListener
in interface ICanvas
public void removeInputMethodListener(java.awt.event.InputMethodListener il)
removeInputMethodListener
in interface javax.media.opengl.ComponentEvents
public void removeHierarchyListener(java.awt.event.HierarchyListener hl)
removeHierarchyListener
in interface javax.media.opengl.ComponentEvents
public void removeHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener hl)
removeHierarchyBoundsListener
in interface javax.media.opengl.ComponentEvents
public void removeFocusListener(java.awt.event.FocusListener fl)
removeFocusListener
in interface javax.media.opengl.ComponentEvents
public void removeComponentListener(java.awt.event.ComponentListener cl)
removeComponentListener
in interface javax.media.opengl.ComponentEvents
public void addPropertyChangeListener(java.lang.String string, java.beans.PropertyChangeListener pl)
addPropertyChangeListener
in interface javax.media.opengl.ComponentEvents
public void addPropertyChangeListener(java.beans.PropertyChangeListener pl)
addPropertyChangeListener
in interface javax.media.opengl.ComponentEvents
public void addMouseWheelListener(java.awt.event.MouseWheelListener ml)
addMouseWheelListener
in interface javax.media.opengl.ComponentEvents
addMouseWheelListener
in interface ICanvas
public void addMouseMotionListener(java.awt.event.MouseMotionListener ml)
addMouseMotionListener
in interface javax.media.opengl.ComponentEvents
addMouseMotionListener
in interface ICanvas
public void addMouseListener(java.awt.event.MouseListener ml)
addMouseListener
in interface javax.media.opengl.ComponentEvents
addMouseListener
in interface ICanvas
public void addKeyListener(java.awt.event.KeyListener kl)
addKeyListener
in interface javax.media.opengl.ComponentEvents
addKeyListener
in interface ICanvas
public void addInputMethodListener(java.awt.event.InputMethodListener il)
addInputMethodListener
in interface javax.media.opengl.ComponentEvents
public void addHierarchyListener(java.awt.event.HierarchyListener hl)
addHierarchyListener
in interface javax.media.opengl.ComponentEvents
public void addHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener hl)
addHierarchyBoundsListener
in interface javax.media.opengl.ComponentEvents
public void addFocusListener(java.awt.event.FocusListener fl)
addFocusListener
in interface javax.media.opengl.ComponentEvents
public void addComponentListener(java.awt.event.ComponentListener cl)
addComponentListener
in interface javax.media.opengl.ComponentEvents
public void setGL(javax.media.opengl.GL gl)
setGL
in interface javax.media.opengl.GLAutoDrawable
public void setAutoSwapBufferMode(boolean bln)
setAutoSwapBufferMode
in interface javax.media.opengl.GLAutoDrawable
public void repaint()
repaint
in interface javax.media.opengl.GLAutoDrawable
public void removeGLEventListener(javax.media.opengl.GLEventListener gl)
removeGLEventListener
in interface javax.media.opengl.GLAutoDrawable
public javax.media.opengl.GL getGL()
getGL
in interface javax.media.opengl.GLAutoDrawable
public javax.media.opengl.GLContext getContext()
getContext
in interface javax.media.opengl.GLAutoDrawable
public boolean getAutoSwapBufferMode()
getAutoSwapBufferMode
in interface javax.media.opengl.GLAutoDrawable
public void display()
display
in interface javax.media.opengl.GLAutoDrawable
public void addGLEventListener(javax.media.opengl.GLEventListener gl)
addGLEventListener
in interface javax.media.opengl.GLAutoDrawable
public void releaseTexture()
releaseTexture
in interface javax.media.opengl.GLPbuffer
public int getFloatingPointMode()
getFloatingPointMode
in interface javax.media.opengl.GLPbuffer
public void destroy()
destroy
in interface javax.media.opengl.GLPbuffer
public void bindTexture()
bindTexture
in interface javax.media.opengl.GLPbuffer
public void dispose()
ICanvas
dispose
in interface ICanvas
public void forceRepaint()
ICanvas
forceRepaint
in interface ICanvas
public java.awt.image.BufferedImage screenshot()
ICanvas
screenshot
in interface ICanvas
public View getView()
getView
in interface ICanvas
public int getRendererWidth()
getRendererWidth
in interface ICanvas
public int getRendererHeight()
getRendererHeight
in interface ICanvas
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |