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.Type
protected float
static final SCOType.Field
Fields inherited from class de.grogra.imp3d.Projection
aspect, aspect$FIELD, sx, sy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic float
clampFieldOfView
(float fieldOfView) float
protected void
getRayInViewCoordinates
(float x, float y, Point3d origin, Vector3d direction, Matrix4d deviceToView, Tuple2d densities) float
getScaleAt
(float z) protected void
getTransformation
(float near, float far, Matrix4d viewToClip, Matrix4d deviceToView) void
setFieldOfView
(float fieldOfView) protected void
update()
Methods inherited from class de.grogra.imp3d.Projection
completeRay, computeBSDF, generateRandomOrigins, generateRandomRays, getAspect, getScaleX, getScaleY
Methods 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:
update
in classProjection
-
getTransformation
- Specified by:
getTransformation
in classProjection
-
getScaleAt
public float getScaleAt(float z) - Specified by:
getScaleAt
in classProjection
-
getRayInViewCoordinates
protected void getRayInViewCoordinates(float x, float y, Point3d origin, Vector3d direction, Matrix4d deviceToView, Tuple2d densities) - Specified by:
getRayInViewCoordinates
in classProjection
-