JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.test.junit.jogl.javafx.TestNewtCanvasJFXGLn Class Reference

NewtCanvasJFX basic functional integration test of its native parented NEWT child GLWindow attached to JavaFX's Canvas. More...

Inheritance diagram for com.jogamp.opengl.test.junit.jogl.javafx.TestNewtCanvasJFXGLn:
Collaboration diagram for com.jogamp.opengl.test.junit.jogl.javafx.TestNewtCanvasJFXGLn:

Classes

class  JFXApp
 
class  WaitAction
 

Public Member Functions

void init ()
 
void release ()
 
void test00 () throws InterruptedException
 
void test11_preAttachNewtGL_NoAnim () throws InterruptedException
 
void test12_postAttachNewt_NoAnim () throws InterruptedException
 
void test13_postAttachGL_NoAnim () throws InterruptedException
 
void test14_postAttachNewtGL_NoAnim () throws InterruptedException
 
void test21_preAttachNewtGL_DoAnim () throws InterruptedException
 
void test22_postAttachNewt_DoAnim () throws InterruptedException
 
void test30_MultisampleAndAlpha () throws InterruptedException
 
- Public Member Functions inherited from com.jogamp.opengl.test.junit.util.UITestCase
int getMaxTestNameLen ()
 
String getSnapshotFilename (final int sn, String postSNDetail, final GLCapabilitiesImmutable caps, final int width, final int height, final boolean sinkHasAlpha, String fileSuffix, final String destPath)
 
void snapshot (final int sn, final String postSNDetail, final GL gl, final GLReadBufferUtil readBufferUtil, final String fileSuffix, final String destPath)
 Takes a snapshot of the drawable's current front framebuffer. More...
 

Static Public Member Functions

static void startup () throws InterruptedException
 
static void shutdown ()
 
static void main (final String args[])
 
- Static Public Member Functions inherited from com.jogamp.opengl.test.junit.util.UITestCase
static void setResetXRandRIfX11AfterClass ()
 
static int resetXRandRIfX11 ()
 Iterates through all outputs and sets the preferred mode and normal rotation using RandR 1.3. More...
 
static int processCommand (final String[] cmdline, final OutputStream outstream, final StringBuilder outstring, final String outPrefix)
 
static final void oneTimeSetUpUITest ()
 
static final void oneTimeTearDownUITest ()
 

Protected Member Functions

void runTestAGL (final GLCapabilitiesImmutable caps, final GLEventListener demo, final boolean postAttachNewtCanvas, final boolean postAttachGLWindow, final boolean useAnimator) throws InterruptedException
 

Detailed Description

NewtCanvasJFX basic functional integration test of its native parented NEWT child GLWindow attached to JavaFX's Canvas.

NewtCanvasJFX allows utilizing custom GLCapabilities settings independent from the JavaFX's window as well as independent rendering from JavaFX's thread.

This unit tests also tests NewtCanvasJFX native parenting operations before and after it's belonging Group's Scene has been attached to the JavaFX Window's actual native window, i.e. becoming fully realized and visible.

Note that JFXAccessor#runOnJFXThread(boolean, Runnable) is still used to for certain mandatory JavaFX lifecycle operation on the JavaFX thread.

The demo code uses NewtReparentingKeyAdapter including NEWTDemoListener functionality.

Manual invocation via main allows running a single test, e.g. -test 21, and setting each tests's duration in milliseconds, e.g.-time 10000.

Definition at line 105 of file TestNewtCanvasJFXGLn.java.

Member Function Documentation

◆ init()

void com.jogamp.opengl.test.junit.jogl.javafx.TestNewtCanvasJFXGLn.init ( )

Definition at line 197 of file TestNewtCanvasJFXGLn.java.

Here is the call graph for this function:

◆ main()

static void com.jogamp.opengl.test.junit.jogl.javafx.TestNewtCanvasJFXGLn.main ( final String  args[])
static

Definition at line 505 of file TestNewtCanvasJFXGLn.java.

Here is the call graph for this function:

◆ release()

void com.jogamp.opengl.test.junit.jogl.javafx.TestNewtCanvasJFXGLn.release ( )

Definition at line 202 of file TestNewtCanvasJFXGLn.java.

◆ runTestAGL()

void com.jogamp.opengl.test.junit.jogl.javafx.TestNewtCanvasJFXGLn.runTestAGL ( final GLCapabilitiesImmutable  caps,
final GLEventListener  demo,
final boolean  postAttachNewtCanvas,
final boolean  postAttachGLWindow,
final boolean  useAnimator 
) throws InterruptedException
protected

Definition at line 319 of file TestNewtCanvasJFXGLn.java.

Here is the call graph for this function:

◆ shutdown()

static void com.jogamp.opengl.test.junit.jogl.javafx.TestNewtCanvasJFXGLn.shutdown ( )
static

Definition at line 191 of file TestNewtCanvasJFXGLn.java.

Here is the call graph for this function:

◆ startup()

static void com.jogamp.opengl.test.junit.jogl.javafx.TestNewtCanvasJFXGLn.startup ( ) throws InterruptedException
static

Definition at line 186 of file TestNewtCanvasJFXGLn.java.

Here is the call graph for this function:

◆ test00()

void com.jogamp.opengl.test.junit.jogl.javafx.TestNewtCanvasJFXGLn.test00 ( ) throws InterruptedException

Definition at line 439 of file TestNewtCanvasJFXGLn.java.

◆ test11_preAttachNewtGL_NoAnim()

void com.jogamp.opengl.test.junit.jogl.javafx.TestNewtCanvasJFXGLn.test11_preAttachNewtGL_NoAnim ( ) throws InterruptedException

Definition at line 447 of file TestNewtCanvasJFXGLn.java.

Here is the call graph for this function:

◆ test12_postAttachNewt_NoAnim()

void com.jogamp.opengl.test.junit.jogl.javafx.TestNewtCanvasJFXGLn.test12_postAttachNewt_NoAnim ( ) throws InterruptedException

Definition at line 455 of file TestNewtCanvasJFXGLn.java.

Here is the call graph for this function:

◆ test13_postAttachGL_NoAnim()

void com.jogamp.opengl.test.junit.jogl.javafx.TestNewtCanvasJFXGLn.test13_postAttachGL_NoAnim ( ) throws InterruptedException

Definition at line 463 of file TestNewtCanvasJFXGLn.java.

Here is the call graph for this function:

◆ test14_postAttachNewtGL_NoAnim()

void com.jogamp.opengl.test.junit.jogl.javafx.TestNewtCanvasJFXGLn.test14_postAttachNewtGL_NoAnim ( ) throws InterruptedException

Definition at line 471 of file TestNewtCanvasJFXGLn.java.

Here is the call graph for this function:

◆ test21_preAttachNewtGL_DoAnim()

void com.jogamp.opengl.test.junit.jogl.javafx.TestNewtCanvasJFXGLn.test21_preAttachNewtGL_DoAnim ( ) throws InterruptedException

Definition at line 479 of file TestNewtCanvasJFXGLn.java.

Here is the call graph for this function:

◆ test22_postAttachNewt_DoAnim()

void com.jogamp.opengl.test.junit.jogl.javafx.TestNewtCanvasJFXGLn.test22_postAttachNewt_DoAnim ( ) throws InterruptedException

Definition at line 487 of file TestNewtCanvasJFXGLn.java.

Here is the call graph for this function:

◆ test30_MultisampleAndAlpha()

void com.jogamp.opengl.test.junit.jogl.javafx.TestNewtCanvasJFXGLn.test30_MultisampleAndAlpha ( ) throws InterruptedException

Definition at line 495 of file TestNewtCanvasJFXGLn.java.

Here is the call graph for this function:

The documentation for this class was generated from the following file: