|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jzy3d.plot3d.rendering.canvas.OffscreenCanvas
public class OffscreenCanvas
An ICanvas
implementation able to render the chart in an offscreen canvas,
meaning no frame or GUI is needed to get a chart.
Subsequently, one will wish to generate chart images by calling:
chart.screenshot();
Field Summary | |
---|---|
protected javax.media.opengl.GLPbuffer |
glpBuffer
|
protected Renderer3d |
renderer
|
protected View |
view
|
Constructor Summary | |
---|---|
OffscreenCanvas(IChartComponentFactory factory,
Scene scene,
Quality quality,
javax.media.opengl.GLCapabilities capabilities,
int width,
int height)
|
|
OffscreenCanvas(IChartComponentFactory factory,
Scene scene,
Quality quality,
javax.media.opengl.GLCapabilities capabilities,
int width,
int height,
boolean traceGL,
boolean debugGL)
|
Method Summary | |
---|---|
void |
addKeyController(Object o)
A generic interface for mouse listener to remain Windowing toolkit independant. * Implementation of this method should simply cast the input assuming it will correspond to canvas-compatible mouse listener. |
void |
addMouseController(Object o)
A generic interface for mouse listener to remain Windowing toolkit independant. * Implementation of this method should simply cast the input assuming it will correspond to canvas-compatible mouse listener. |
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). |
String |
getDebugInfo()
|
javax.media.opengl.GLDrawable |
getDrawable()
Returns the GLDrawable associated with the canvas |
javax.media.opengl.GLPbuffer |
getGlpBuffer()
|
Renderer3d |
getRenderer()
|
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. |
protected void |
initGLPBuffer(javax.media.opengl.GLCapabilities capabilities,
int width,
int height)
|
protected void |
initGLPBuffer(int width,
int height)
|
void |
removeKeyController(Object o)
A generic interface for key listener to remain Windowing toolkit independant. * Implementation of this method should simply cast the input assuming it will correspond to canvas-compatible key listener. |
void |
removeMouseController(Object o)
A generic interface for key listener to remain Windowing toolkit independant. * Implementation of this method should simply cast the input assuming it will correspond to canvas-compatible key listener. |
com.jogamp.opengl.util.texture.TextureData |
screenshot()
Returns an image with the current renderer's size |
com.jogamp.opengl.util.texture.TextureData |
screenshot(File file)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected View view
protected Renderer3d renderer
protected javax.media.opengl.GLPbuffer glpBuffer
Constructor Detail |
---|
public OffscreenCanvas(IChartComponentFactory factory, Scene scene, Quality quality, javax.media.opengl.GLCapabilities capabilities, int width, int height)
public OffscreenCanvas(IChartComponentFactory factory, Scene scene, Quality quality, javax.media.opengl.GLCapabilities capabilities, int width, int height, boolean traceGL, boolean debugGL)
Method Detail |
---|
protected void initGLPBuffer(javax.media.opengl.GLCapabilities capabilities, int width, int height)
protected void initGLPBuffer(int width, int height)
public javax.media.opengl.GLPbuffer getGlpBuffer()
public javax.media.opengl.GLDrawable getDrawable()
ICanvas
getDrawable
in interface ICanvas
public void dispose()
ICanvas
dispose
in interface ICanvas
public void forceRepaint()
ICanvas
forceRepaint
in interface ICanvas
public com.jogamp.opengl.util.texture.TextureData screenshot()
ICanvas
screenshot
in interface ICanvas
public com.jogamp.opengl.util.texture.TextureData screenshot(File file) throws IOException
screenshot
in interface ICanvas
IOException
public View getView()
getView
in interface ICanvas
public int getRendererWidth()
getRendererWidth
in interface ICanvas
public int getRendererHeight()
getRendererHeight
in interface ICanvas
public Renderer3d getRenderer()
getRenderer
in interface ICanvas
public String getDebugInfo()
getDebugInfo
in interface ICanvas
public void addMouseController(Object o)
ICanvas
addMouseController
in interface ICanvas
public void addKeyController(Object o)
ICanvas
addKeyController
in interface ICanvas
public void removeMouseController(Object o)
ICanvas
removeMouseController
in interface ICanvas
public void removeKeyController(Object o)
ICanvas
removeKeyController
in interface ICanvas
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |