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

Interface providing a method to setup PMVMatrix4f's GLMatrixFunc#GL_PROJECTION and GLMatrixFunc#GL_MODELVIEW. More...

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

Public Member Functions

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

Interface providing a method to setup PMVMatrix4f's GLMatrixFunc#GL_PROJECTION and GLMatrixFunc#GL_MODELVIEW.

At the end of operations, the GLMatrixFunc#GL_MODELVIEW matrix has to be selected.

Implementation is being called by Scene#setupMatrix(PMVMatrix4f, int, int, int, int) and hence Scene#reshape(GLAutoDrawable, int, int, int, int).

Custom implementations can be set via Scene#setPMVMatrixSetup(PMVMatrixSetup).

The default implementation is Scene.DefaultPMVMatrixSetup.

See also
DefaultPMVMatrixSetup
Scene::setPMVMatrixSetup(PMVMatrixSetup)

Definition at line 706 of file Scene.java.

Member Function Documentation

◆ getAngle()

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

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

Implemented in com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.

◆ getSceneDist()

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

Returns scene distance on z-axis to projection.

Implemented in com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.

Here is the caller graph for this function:

◆ getZFar()

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

Returns projection z-far value.

Implemented in com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.

◆ getZNear()

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

Returns projection z-near value.

Implemented in com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.

Here is the caller graph for this function:

◆ set()

void com.jogamp.graph.ui.Scene.PMVMatrixSetup.set ( PMVMatrix4f  pmv,
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

Implemented in com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.

Here is the caller graph for this function:

◆ setPlaneBox()

void com.jogamp.graph.ui.Scene.PMVMatrixSetup.setPlaneBox ( final AABBox  planeBox,
final PMVMatrix4f  pmv,
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

Implemented in com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.

Here is the caller graph for this function:

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