JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup Class Reference

Default implementation of Scene.PMVMatrixSetup, implementing Scene.PMVMatrixSetup#set(PMVMatrix4f, Recti) as follows: More...

Inheritance diagram for com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup:
Collaboration diagram for com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup:

Public Member Functions

 DefaultPMVMatrixSetup (final float scene_dist, final float zNear, final float zFar, final float angle)
 Custom DefaultPMVMatrixSetup instance. More...
 
 DefaultPMVMatrixSetup (final float scene_dist, final float zNear, final float zFar)
 Custom DefaultPMVMatrixSetup instance using given scene_dist, zNear, zFar and Scene#DEFAULT_ANGLE. More...
 
 DefaultPMVMatrixSetup (final float scene_dist)
 Custom DefaultPMVMatrixSetup instance using given scene_dist and Scene#DEFAULT_ZNEAR, Scene#DEFAULT_ZFAR, Scene#DEFAULT_ANGLE. More...
 
 DefaultPMVMatrixSetup ()
 Default DefaultPMVMatrixSetup instance using Scene#DEFAULT_SCENE_DIST, Scene#DEFAULT_ZNEAR, Scene#DEFAULT_ZFAR, Scene#DEFAULT_ANGLE. More...
 
void set (final PMVMatrix4f pmv, final Recti viewport)
 Setup PMVMatrix4f's GLMatrixFunc#GL_PROJECTION and GLMatrixFunc#GL_MODELVIEW. More...
 
void setPlaneBox (final AABBox planeBox, final PMVMatrix4f pmv, final Recti viewport)
 Optional method to set the Scene#getBounds() AABBox, maybe a nop if not desired. More...
 
float getSceneDist ()
 Returns scene distance on z-axis to projection. More...
 
float getAngle ()
 Returns fov projection angle in radians, shall be 0 for orthogonal projection. More...
 
float getZNear ()
 Returns projection z-near value. More...
 
float getZFar ()
 Returns projection z-far value. More...
 
float getSceneDist ()
 Returns scene distance on z-axis to projection. More...
 
float getAngle ()
 Returns fov projection angle in radians, shall be 0 for orthogonal projection. More...
 
float getZNear ()
 Returns projection z-near value. More...
 
float getZFar ()
 Returns projection z-far value. More...
 
void set (PMVMatrix4f pmv, Recti viewport)
 Setup PMVMatrix4f's GLMatrixFunc#GL_PROJECTION and GLMatrixFunc#GL_MODELVIEW. More...
 
void setPlaneBox (final AABBox planeBox, final PMVMatrix4f pmv, Recti viewport)
 Optional method to set the Scene#getBounds() AABBox, maybe a nop if not desired. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ DefaultPMVMatrixSetup() [1/4]

com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.DefaultPMVMatrixSetup ( final float  scene_dist,
final float  zNear,
final float  zFar,
final float  angle 
)

Custom DefaultPMVMatrixSetup instance.

Parameters
scene_distscene distance on z-axix
zNearprojection z-near value
zFarprojection z-far value
angleprojection angle in radians
See also
DefaultPMVMatrixSetup
Scene::setPMVMatrixSetup(PMVMatrixSetup)
Scene.PMVMatrixSetup

Definition at line 1526 of file Scene.java.

◆ DefaultPMVMatrixSetup() [2/4]

com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.DefaultPMVMatrixSetup ( final float  scene_dist,
final float  zNear,
final float  zFar 
)

Custom DefaultPMVMatrixSetup instance using given scene_dist, zNear, zFar and Scene#DEFAULT_ANGLE.

Parameters
scene_distscene distance on z-axix
zNearprojection z-near value
zFarprojection z-far value
See also
DefaultPMVMatrixSetup
Scene::setPMVMatrixSetup(PMVMatrixSetup)
Scene.PMVMatrixSetup

Definition at line 1544 of file Scene.java.

◆ DefaultPMVMatrixSetup() [3/4]

com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.DefaultPMVMatrixSetup ( final float  scene_dist)

Custom DefaultPMVMatrixSetup instance using given scene_dist and Scene#DEFAULT_ZNEAR, Scene#DEFAULT_ZFAR, Scene#DEFAULT_ANGLE.

Parameters
scene_distscene distance on z-axix
See also
DefaultPMVMatrixSetup
Scene::setPMVMatrixSetup(PMVMatrixSetup)
Scene.PMVMatrixSetup

Definition at line 1554 of file Scene.java.

◆ DefaultPMVMatrixSetup() [4/4]

com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.DefaultPMVMatrixSetup ( )

Member Function Documentation

◆ getAngle()

float com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.getAngle ( )

Returns fov projection angle in radians, shall be 0 for orthogonal projection.

Implements com.jogamp.graph.ui.Scene.PMVMatrixSetup.

Definition at line 1592 of file Scene.java.

◆ getSceneDist()

float com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.getSceneDist ( )

Returns scene distance on z-axis to projection.

Implements com.jogamp.graph.ui.Scene.PMVMatrixSetup.

Definition at line 1590 of file Scene.java.

◆ getZFar()

float com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.getZFar ( )

Returns projection z-far value.

Implements com.jogamp.graph.ui.Scene.PMVMatrixSetup.

Definition at line 1596 of file Scene.java.

◆ getZNear()

float com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.getZNear ( )

Returns projection z-near value.

Implements com.jogamp.graph.ui.Scene.PMVMatrixSetup.

Definition at line 1594 of file Scene.java.

◆ set()

void com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.set ( final PMVMatrix4f  pmv,
final Recti  viewport 
)

Setup PMVMatrix4f's GLMatrixFunc#GL_PROJECTION and GLMatrixFunc#GL_MODELVIEW.

See PMVMatrixSetup for details.

At the end of operations, the GLMatrixFunc#GL_MODELVIEW matrix is selected.

Parameters
pmvthe PMVMatrix4f to setup
viewportRect4i viewport

Implements com.jogamp.graph.ui.Scene.PMVMatrixSetup.

Definition at line 1568 of file Scene.java.

◆ setPlaneBox()

void com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.setPlaneBox ( final AABBox  planeBox,
final PMVMatrix4f  pmv,
final Recti  viewport 
)

Optional method to set the Scene#getBounds() AABBox, maybe a nop if not desired.

Will be called by Scene#reshape(GLAutoDrawable, int, int, int, int) after set(PMVMatrix4f, Recti).

Parameters
planeBoxthe AABBox to define
pmvthe PMVMatrix4f, already setup via set(PMVMatrix4f, Recti).
viewportRect4i viewport

Implements com.jogamp.graph.ui.Scene.PMVMatrixSetup.

Definition at line 1578 of file Scene.java.

Here is the call graph for this function:

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