Package com.jogamp.graph.ui
Interface Scene.PMVMatrixSetup
-
- All Known Implementing Classes:
Scene.DefaultPMVMatrixSetup
- Enclosing class:
- Scene
public static interface Scene.PMVMatrixSetupInterface providinga methodto setupPMVMatrix4f'sGLMatrixFunc.GL_PROJECTIONandGLMatrixFunc.GL_MODELVIEW.At the end of operations, the
GLMatrixFunc.GL_MODELVIEWmatrix has to be selected.Implementation is being called by
Scene#setupMatrix(PMVMatrix4f, int, int, int, int)and henceScene.reshape(GLAutoDrawable, int, int, int, int).Custom implementations can be set via
Scene.setPMVMatrixSetup(PMVMatrixSetup).The default implementation is
Scene.DefaultPMVMatrixSetup.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetAngle()Returns fov projection angle in radians, shall be0for orthogonal projection.floatgetSceneDist()Returns scene distance on z-axis to projection.floatgetZFar()Returns projection z-far value.floatgetZNear()Returns projection z-near value.voidset(com.jogamp.math.util.PMVMatrix4f pmv, com.jogamp.math.Recti viewport)voidsetPlaneBox(com.jogamp.math.geom.AABBox planeBox, com.jogamp.math.util.PMVMatrix4f pmv, com.jogamp.math.Recti viewport)
-
-
-
Method Detail
-
getSceneDist
float getSceneDist()
Returns scene distance on z-axis to projection.
-
getAngle
float getAngle()
Returns fov projection angle in radians, shall be0for orthogonal projection.
-
getZNear
float getZNear()
Returns projection z-near value.
-
getZFar
float getZFar()
Returns projection z-far value.
-
set
void set(com.jogamp.math.util.PMVMatrix4f pmv, com.jogamp.math.Recti viewport)SetupPMVMatrix4f'sGLMatrixFunc.GL_PROJECTIONandGLMatrixFunc.GL_MODELVIEW.See
Scene.PMVMatrixSetupfor details.At the end of operations, the
GLMatrixFunc.GL_MODELVIEWmatrix is selected.- Parameters:
pmv- thePMVMatrix4fto setupviewport- Rect4i viewport
-
setPlaneBox
void setPlaneBox(com.jogamp.math.geom.AABBox planeBox, com.jogamp.math.util.PMVMatrix4f pmv, com.jogamp.math.Recti viewport)Optional method to set theScene.getBounds()AABBox, maybe anopif not desired.Will be called by
Scene.reshape(GLAutoDrawable, int, int, int, int)afterset(PMVMatrix4f, Recti).- Parameters:
planeBox- theAABBoxto definepmv- thePMVMatrix4f, already setup viaset(PMVMatrix4f, Recti).viewport- Rect4i viewport
-
-