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
public class AWTImageRenderer3d extends AWTRenderer3d
A renderer generating AWTBufferedImage
s and notifying aAWTImageRenderer3d.DisplayListener
when it is updated. Especially usefull to perform offscreen rendering and displaying buffered image in a panel.- Author:
- Martin Pernollet
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AWTImageRenderer3d.DisplayListener
-
Field Summary
Fields Modifier and Type Field Description protected List<AWTImageRenderer3d.DisplayListener>
listeners
-
Fields inherited from class org.jzy3d.plot3d.rendering.view.AWTRenderer3d
bufferedImage
-
Fields inherited from class org.jzy3d.plot3d.rendering.view.Renderer3d
debugGL, doScreenshotAtNextDisplay, height, image, lastRenderingTimeMs, profileDisplayTimer, traceGL, view, width
-
-
Constructor Summary
Constructors Constructor Description AWTImageRenderer3d()
AWTImageRenderer3d(View view)
AWTImageRenderer3d(View view, boolean traceGL, boolean debugGL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDisplayListener(AWTImageRenderer3d.DisplayListener listener)
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
getLastScreenshotImage, renderScreenshotIfRequired
-
Methods inherited from class org.jzy3d.plot3d.rendering.view.Renderer3d
dispose, getHeight, getLastRenderingTimeMs, getLastScreenshot, getWidth, init, nextDisplayUpdateScreenshot, reshape, updatePainterWithGL
-
-
-
-
Field Detail
-
listeners
protected List<AWTImageRenderer3d.DisplayListener> listeners
-
-
Method Detail
-
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
protected BufferedImage makeScreenshotAsBufferedImage(com.jogamp.opengl.GL gl)
-
addDisplayListener
public void addDisplayListener(AWTImageRenderer3d.DisplayListener listener)
-
fireDisplay
protected void fireDisplay(Object image)
-
-