java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.imp3d.Projection
de.grogra.imp3d.PerspectiveProjection
- All Implemented Interfaces:
Manageable,Shareable
- Direct Known Subclasses:
LensProjection
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PerspectiveProjection.Typeprotected floatstatic final SCOType.FieldFields inherited from class de.grogra.imp3d.Projection
aspect, aspect$FIELD, sx, sy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic floatclampFieldOfView(float fieldOfView) floatprotected voidgetRayInViewCoordinates(float x, float y, Point3d origin, Vector3d direction, Matrix4d deviceToView, Tuple2d densities) floatgetScaleAt(float z) protected voidgetTransformation(float near, float far, Matrix4d viewToClip, Matrix4d deviceToView) voidsetFieldOfView(float fieldOfView) protected voidupdate()Methods inherited from class de.grogra.imp3d.Projection
completeRay, computeBSDF, generateRandomOrigins, generateRandomRays, getAspect, getScaleX, getScaleYMethods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReference
-
Field Details
-
fieldOfView
protected float fieldOfView -
$TYPE
-
fieldOfView$FIELD
-
-
Constructor Details
-
PerspectiveProjection
public PerspectiveProjection() -
PerspectiveProjection
public PerspectiveProjection(float fieldOfView, float aspect)
-
-
Method Details
-
getManageableType
-
setFieldOfView
public void setFieldOfView(float fieldOfView) -
clampFieldOfView
public static float clampFieldOfView(float fieldOfView) -
getFieldOfView
public float getFieldOfView() -
update
protected void update()- Specified by:
updatein classProjection
-
getTransformation
- Specified by:
getTransformationin classProjection
-
getScaleAt
public float getScaleAt(float z) - Specified by:
getScaleAtin classProjection
-
getRayInViewCoordinates
protected void getRayInViewCoordinates(float x, float y, Point3d origin, Vector3d direction, Matrix4d deviceToView, Tuple2d densities) - Specified by:
getRayInViewCoordinatesin classProjection
-