JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01 Class Referenceabstract

Action Keys: More...

Inheritance diagram for com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01:
Collaboration diagram for com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01:

Classes

class  KeyAction
 

Public Member Functions

 GPURendererListenerBase01 (final RegionRenderer renderer, final int renderModes, final boolean debug, final boolean trace)
 
final RegionRenderer getRenderer ()
 
final int getRenderModes ()
 
final float getZTran ()
 
final float getXTran ()
 
final float getYTran ()
 
final float getAngleDeg ()
 
final float getAngleRad ()
 
final float[] getPosition ()
 
void setMatrix (final float xtrans, final float ytrans, final float zTran, final float angle)
 
void init (final GLAutoDrawable drawable)
 Called by the drawable immediately after the OpenGL context is initialized. More...
 
void reshape (final GLAutoDrawable drawable, final int xstart, final int ystart, final int width, final int height)
 Called by the drawable during the first repaint after the component has been resized. More...
 
void dispose (final GLAutoDrawable drawable)
 Notifies the listener to perform the release of all OpenGL resources per GLContext, such as memory buffers and GLSL programs. More...
 
void zoom (final int v)
 
void move (final float x, final float y)
 
void rotate (final float delta)
 
void editGlobalWeight (final float delta)
 
void attachInputListenerTo (final GLWindow window)
 Attach the input listener to the window. More...
 
void detachInputListenerFrom (final GLWindow window)
 
void printScreen (final GLAutoDrawable drawable, final String dir, final String tech, final String objName, final boolean exportAlpha) throws GLException, IOException
 
void printScreenOnGLThread (final GLAutoDrawable drawable, final String dir, final String tech, final String objName, final boolean exportAlpha)
 
void setIgnoreInput (final boolean v)
 
boolean getIgnoreInput ()
 
- Public Member Functions inherited from com.jogamp.opengl.GLEventListener
void init (GLAutoDrawable drawable)
 Called by the drawable immediately after the OpenGL context is initialized. More...
 
void dispose (GLAutoDrawable drawable)
 Notifies the listener to perform the release of all OpenGL resources per GLContext, such as memory buffers and GLSL programs. More...
 
void display (GLAutoDrawable drawable)
 Called by the drawable to initiate OpenGL rendering by the client. More...
 
void reshape (GLAutoDrawable drawable, int x, int y, int width, int height)
 Called by the drawable during the first repaint after the component has been resized. More...
 

Static Public Member Functions

static void mapWin2ObjectCoords (final PMVMatrix4f pmv, final Recti view, final float zNear, final float zFar, final float orthoX, final float orthoY, final float orthoDist, final float[] winZ, final Vec3f objPos)
 

Protected Attributes

GLRegion region
 
final float zNear = 0.1f
 
final float zFar = 7000f
 
final AABBox nearPlane1Box
 Describing the bounding box in model-coordinates of the near-plane parallel at distance one. More...
 
volatile float weight = 1.0f
 

Detailed Description

Action Keys:

  • 1/2: zoom in/out
  • 6/7: 2nd pass texture size
  • 0/9: rotate
  • Q/W: change weight
  • v: toggle v-sync
  • s: screenshot

Definition at line 69 of file GPURendererListenerBase01.java.

Constructor & Destructor Documentation

◆ GPURendererListenerBase01()

com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.GPURendererListenerBase01 ( final RegionRenderer  renderer,
final int  renderModes,
final boolean  debug,
final boolean  trace 
)

Definition at line 97 of file GPURendererListenerBase01.java.

Member Function Documentation

◆ attachInputListenerTo()

void com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.attachInputListenerTo ( final GLWindow  window)

Attach the input listener to the window.

Reimplemented in com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.

Definition at line 224 of file GPURendererListenerBase01.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ detachInputListenerFrom()

void com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.detachInputListenerFrom ( final GLWindow  window)

Reimplemented in com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.

Definition at line 231 of file GPURendererListenerBase01.java.

Here is the call graph for this function:

◆ dispose()

void com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.dispose ( final GLAutoDrawable  drawable)

Notifies the listener to perform the release of all OpenGL resources per GLContext, such as memory buffers and GLSL programs.

Called by the drawable before the OpenGL context is destroyed by an external event, like a reconfiguration of the GLAutoDrawable closing an attached window, but also manually by calling destroy.

Note that this event does not imply the end of life of the application. It could be produced with a followup call to init(GLAutoDrawable) in case the GLContext has been recreated, e.g. due to a pixel configuration change in a multihead environment.

Implements com.jogamp.opengl.GLEventListener.

Reimplemented in com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.

Definition at line 186 of file GPURendererListenerBase01.java.

Here is the call graph for this function:

◆ editGlobalWeight()

void com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.editGlobalWeight ( final float  delta)

Definition at line 211 of file GPURendererListenerBase01.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAngleDeg()

final float com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.getAngleDeg ( )

Definition at line 111 of file GPURendererListenerBase01.java.

◆ getAngleRad()

final float com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.getAngleRad ( )

Definition at line 112 of file GPURendererListenerBase01.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIgnoreInput()

boolean com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.getIgnoreInput ( )

Definition at line 268 of file GPURendererListenerBase01.java.

◆ getPosition()

final float[] com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.getPosition ( )

Definition at line 113 of file GPURendererListenerBase01.java.

◆ getRenderer()

final RegionRenderer com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.getRenderer ( )

Definition at line 106 of file GPURendererListenerBase01.java.

Here is the caller graph for this function:

◆ getRenderModes()

final int com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.getRenderModes ( )

Definition at line 107 of file GPURendererListenerBase01.java.

Here is the caller graph for this function:

◆ getXTran()

final float com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.getXTran ( )

Definition at line 109 of file GPURendererListenerBase01.java.

Here is the caller graph for this function:

◆ getYTran()

final float com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.getYTran ( )

Definition at line 110 of file GPURendererListenerBase01.java.

Here is the caller graph for this function:

◆ getZTran()

final float com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.getZTran ( )

Definition at line 108 of file GPURendererListenerBase01.java.

Here is the caller graph for this function:

◆ init()

void com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.init ( final GLAutoDrawable  drawable)

Called by the drawable immediately after the OpenGL context is initialized.

Can be used to perform one-time OpenGL initialization per GLContext, such as setup of lights and display lists.

Note that this method may be called more than once if the underlying OpenGL context for the GLAutoDrawable is destroyed and recreated, for example if a GLCanvas is removed from the widget hierarchy and later added again.

Implements com.jogamp.opengl.GLEventListener.

Reimplemented in com.jogamp.opengl.test.junit.graph.GPURegionGLListener01, com.jogamp.opengl.test.junit.graph.GPURegionGLListener10, and com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.

Definition at line 123 of file GPURendererListenerBase01.java.

Here is the call graph for this function:

◆ mapWin2ObjectCoords()

static void com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.mapWin2ObjectCoords ( final PMVMatrix4f  pmv,
final Recti  view,
final float  zNear,
final float  zFar,
final float  orthoX,
final float  orthoY,
final float  orthoDist,
final float[]  winZ,
final Vec3f  objPos 
)
static

Definition at line 149 of file GPURendererListenerBase01.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ move()

void com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.move ( final float  x,
final float  y 
)

Definition at line 201 of file GPURendererListenerBase01.java.

Here is the caller graph for this function:

◆ printScreen()

void com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.printScreen ( final GLAutoDrawable  drawable,
final String  dir,
final String  tech,
final String  objName,
final boolean  exportAlpha 
) throws GLException, IOException

Reimplemented in com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.

Definition at line 238 of file GPURendererListenerBase01.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ printScreenOnGLThread()

void com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.printScreenOnGLThread ( final GLAutoDrawable  drawable,
final String  dir,
final String  tech,
final String  objName,
final boolean  exportAlpha 
)

Definition at line 249 of file GPURendererListenerBase01.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reshape()

void com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.reshape ( final GLAutoDrawable  drawable,
final int  x,
final int  y,
final int  width,
final int  height 
)

Called by the drawable during the first repaint after the component has been resized.

The client can update it's viewport associated data and view volume of the window appropriately.

For efficiency the GL viewport has already been updated via glViewport(x, y, width, height) when this method is called.

Parameters
drawablethe triggering GLAutoDrawable
xlower left corner of the viewport rectangle in pixel units
ylower left corner of the viewport rectangle in pixel units
widthwidth of the viewport rectangle in pixel units
heightheight of the viewport rectangle in pixel units

Implements com.jogamp.opengl.GLEventListener.

Reimplemented in com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.

Definition at line 158 of file GPURendererListenerBase01.java.

Here is the call graph for this function:

◆ rotate()

void com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.rotate ( final float  delta)

Definition at line 206 of file GPURendererListenerBase01.java.

Here is the caller graph for this function:

◆ setIgnoreInput()

void com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.setIgnoreInput ( final boolean  v)

Definition at line 265 of file GPURendererListenerBase01.java.

Here is the caller graph for this function:

◆ setMatrix()

void com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.setMatrix ( final float  xtrans,
final float  ytrans,
final float  zTran,
final float  angle 
)

Definition at line 115 of file GPURendererListenerBase01.java.

Here is the caller graph for this function:

◆ zoom()

void com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.zoom ( final int  v)

Definition at line 196 of file GPURendererListenerBase01.java.

Here is the caller graph for this function:

Member Data Documentation

◆ nearPlane1Box

final AABBox com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.nearPlane1Box
protected

Describing the bounding box in model-coordinates of the near-plane parallel at distance one.

Definition at line 87 of file GPURendererListenerBase01.java.

◆ region

GLRegion com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.region
protected

Definition at line 75 of file GPURendererListenerBase01.java.

◆ weight

volatile float com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.weight = 1.0f
protected

Definition at line 94 of file GPURendererListenerBase01.java.

◆ zFar

final float com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.zFar = 7000f
protected

Definition at line 85 of file GPURendererListenerBase01.java.

◆ zNear

final float com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.zNear = 0.1f
protected

Definition at line 85 of file GPURendererListenerBase01.java.


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