java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.imp3d.Projection
de.grogra.imp3d.PerspectiveProjection
de.grogra.imp3d.LensProjection
- All Implemented Interfaces:
Manageable,Shareable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LensProjection.Typestatic final SCOType.Fieldstatic final SCOType.Fieldstatic final SCOType.FieldFields inherited from class de.grogra.imp3d.PerspectiveProjection
fieldOfView, fieldOfView$FIELDFields inherited from class de.grogra.imp3d.Projection
aspect, aspect$FIELD, sx, sy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateRandomOrigins(Environment env, RayList out, Random rnd, Matrix4d deviceToView) voidgenerateRandomRays(Environment env, Vector3f out, Spectrum specOut, RayList rays, Random rnd, Matrix4d deviceToView) Methods inherited from class de.grogra.imp3d.PerspectiveProjection
clampFieldOfView, getFieldOfView, getRayInViewCoordinates, getScaleAt, getTransformation, setFieldOfView, updateMethods inherited from class de.grogra.imp3d.Projection
completeRay, computeBSDF, getAspect, getScaleX, getScaleYMethods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReference
-
Field Details
-
$TYPE
-
focalLength$FIELD
-
fStop$FIELD
-
subjectDistance$FIELD
-
-
Constructor Details
-
LensProjection
public LensProjection() -
LensProjection
public LensProjection(float fieldOfView, float aspect)
-
-
Method Details
-
generateRandomOrigins
- Overrides:
generateRandomOriginsin classProjection
-
generateRandomRays
public void generateRandomRays(Environment env, Vector3f out, Spectrum specOut, RayList rays, Random rnd, Matrix4d deviceToView) - Overrides:
generateRandomRaysin classProjection
-
getManageableType
- Specified by:
getManageableTypein interfaceManageable- Overrides:
getManageableTypein classPerspectiveProjection
-