Package org.jzy3d.plot3d.rendering.view
Class AWTImageRenderer3d
java.lang.Object
org.jzy3d.plot3d.rendering.view.Renderer3d
org.jzy3d.plot3d.rendering.view.AWTRenderer3d
org.jzy3d.plot3d.rendering.view.AWTImageRenderer3d
- All Implemented Interfaces:
com.jogamp.opengl.GLEventListener
,EventListener
- Direct Known Subclasses:
JavaFXOffscreenRenderer3d
A renderer generating AWT
BufferedImage
s and notifying a AWTImageRenderer3d.DisplayListener
when it
is updated.
Especially usefull to perform offscreen rendering and displaying buffered image in a panel.- Author:
- Martin Pernollet
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<AWTImageRenderer3d.DisplayListener>
protected com.jogamp.opengl.util.awt.AWTGLReadBufferUtil
Fields inherited from class org.jzy3d.plot3d.rendering.view.AWTRenderer3d
bufferedImage, exporter, screenshotMaker
Fields inherited from class org.jzy3d.plot3d.rendering.view.Renderer3d
debugGL, doScreenshotAtNextDisplay, height, image, lastRenderingTimeMs, profileDisplayTimer, traceGL, view, width
-
Constructor Summary
ConstructorDescriptionAWTImageRenderer3d
(View view) AWTImageRenderer3d
(View view, boolean traceGL, boolean debugGL) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
display
(com.jogamp.opengl.GLAutoDrawable canvas) Called when theGLAutoDrawable
requires a rendering.protected void
fireDisplay
(Object image) protected BufferedImage
makeScreenshotAsBufferedImage
(com.jogamp.opengl.GL gl) Methods inherited from class org.jzy3d.plot3d.rendering.view.AWTRenderer3d
exportImageIfRequired, getExporter, getLastScreenshotImage, renderScreenshotIfRequired, setExporter
Methods inherited from class org.jzy3d.plot3d.rendering.view.Renderer3d
dispose, getHeight, getLastRenderingTimeMs, getLastScreenshot, getWidth, init, nextDisplayUpdateScreenshot, reshape, updatePainterWithGL
-
Field Details
-
screenshot
protected com.jogamp.opengl.util.awt.AWTGLReadBufferUtil screenshot -
listeners
-
-
Constructor Details
-
AWTImageRenderer3d
public AWTImageRenderer3d() -
AWTImageRenderer3d
-
AWTImageRenderer3d
-
-
Method Details
-
display
public void display(com.jogamp.opengl.GLAutoDrawable canvas) Description copied from class:Renderer3d
Called when theGLAutoDrawable
requires a rendering. All call to rendering methods should appear here.- Specified by:
display
in interfacecom.jogamp.opengl.GLEventListener
- Overrides:
display
in classRenderer3d
-
makeScreenshotAsBufferedImage
-
addDisplayListener
-
fireDisplay
-