Package org.jzy3d.javafx.offscreen
Class JavaFXOffscreenRenderer3d
java.lang.Object
org.jzy3d.plot3d.rendering.view.Renderer3d
org.jzy3d.plot3d.rendering.view.AWTRenderer3d
org.jzy3d.plot3d.rendering.view.AWTImageRenderer3d
org.jzy3d.javafx.offscreen.JavaFXOffscreenRenderer3d
- All Implemented Interfaces:
com.jogamp.opengl.GLEventListener
,EventListener
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jzy3d.plot3d.rendering.view.AWTImageRenderer3d
AWTImageRenderer3d.DisplayListener
-
Field Summary
Fields inherited from class org.jzy3d.plot3d.rendering.view.AWTImageRenderer3d
listeners, screenshot
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
display
(com.jogamp.opengl.GLAutoDrawable canvas) Called when theGLAutoDrawable
requires a rendering.javafx.scene.image.Image
void
init
(com.jogamp.opengl.GLAutoDrawable canvas) Called when theGLAutoDrawable
is rendered for the first time.protected javafx.scene.image.Image
makeScreenshotAsJavaFXImage
(com.jogamp.opengl.GL gl) void
reshape
(com.jogamp.opengl.GLAutoDrawable canvas, int x, int y, int width, int height) Called when theGLAutoDrawable
is resized.Methods inherited from class org.jzy3d.plot3d.rendering.view.AWTImageRenderer3d
addDisplayListener, fireDisplay, makeScreenshotAsBufferedImage
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, nextDisplayUpdateScreenshot, updatePainterWithGL
-
Field Details
-
javafxImage
protected javafx.scene.image.Image javafxImage
-
-
Constructor Details
-
JavaFXOffscreenRenderer3d
public JavaFXOffscreenRenderer3d() -
JavaFXOffscreenRenderer3d
-
JavaFXOffscreenRenderer3d
-
-
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 classAWTImageRenderer3d
-
init
public void init(com.jogamp.opengl.GLAutoDrawable canvas) Description copied from class:Renderer3d
Called when theGLAutoDrawable
is rendered for the first time. When one calls Scene.init() function, this function is called and makes the OpenGL buffers initialization. Note: in this implementation, GL Exceptions are not triggered. To do so, make te following call at the beginning of the init() body:canvas.setGL( new DebugGL(canvas.getGL()) );
- Specified by:
init
in interfacecom.jogamp.opengl.GLEventListener
- Overrides:
init
in classRenderer3d
-
reshape
public void reshape(com.jogamp.opengl.GLAutoDrawable canvas, int x, int y, int width, int height) Description copied from class:Renderer3d
Called when theGLAutoDrawable
is resized.- Specified by:
reshape
in interfacecom.jogamp.opengl.GLEventListener
- Overrides:
reshape
in classRenderer3d
-
makeScreenshotAsJavaFXImage
protected javafx.scene.image.Image makeScreenshotAsJavaFXImage(com.jogamp.opengl.GL gl) -
getLastJavaFXScreenshotImage
public javafx.scene.image.Image getLastJavaFXScreenshotImage()
-