JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.demos.graph.ui.UISceneDemo03 Class Reference

Res independent Shape, Scene attached to GLWindow showing multiple animated shape movements. More...

Collaboration diagram for com.jogamp.opengl.demos.graph.ui.UISceneDemo03:

Classes

class  MyGLMediaEventListener
 

Static Public Member Functions

static void main (final String[] args) throws IOException
 
static void rotateShape (final Shape shape, float angle, final int axis)
 Rotate the shape while avoiding 90 degree position. More...
 

Detailed Description

Res independent Shape, Scene attached to GLWindow showing multiple animated shape movements.

This variation of UISceneDemo00 shows

  • Two repetitive steady scrolling text lines. One text shorter than the line-width and one longer.
  • One line of animated rectangles, rotating around their z-axis and accelerating towards their target.
  • A text animation assembling one line of text, each glyph coming from from a random 3D point moving to its destination all at once including rotation.
  • One line of text with sine wave animation flattening and accelerating towards its target.

Blog entry: https://jausoft.com/blog/2023/08/27/graphui_animation_animgroup/

  • Pass '-keep' to main-function to keep running.
  • Pass '-aspeed' to vary velocity
  • Pass '-rspeed <float>' angular velocity in radians/s
  • Pass '-no_anim_box' to not show a visible and shrunken box around the AnimGroup
  • Pass '-audio <uri or file-path>' to play audio (only)

Definition at line 108 of file UISceneDemo03.java.

Member Function Documentation

◆ main()

static void com.jogamp.opengl.demos.graph.ui.UISceneDemo03.main ( final String[]  args) throws IOException
static

Definition at line 134 of file UISceneDemo03.java.

◆ rotateShape()

static void com.jogamp.opengl.demos.graph.ui.UISceneDemo03.rotateShape ( final Shape  shape,
float  angle,
final int  axis 
)
static

Rotate the shape while avoiding 90 degree position.

Parameters
shapethe shape to rotate
anglethe angle in radians
axis0 for X-, 1 for Y- and 2 for Z-axis

Definition at line 740 of file UISceneDemo03.java.

Here is the call graph for this function:

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