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.Type
static final SCOType.Field
static final SCOType.Field
static final SCOType.Field
Fields inherited from class de.grogra.imp3d.PerspectiveProjection
fieldOfView, fieldOfView$FIELD
Fields inherited from class de.grogra.imp3d.Projection
aspect, aspect$FIELD, sx, sy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
generateRandomOrigins
(Environment env, RayList out, Random rnd, Matrix4d deviceToView) void
generateRandomRays
(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, update
Methods inherited from class de.grogra.imp3d.Projection
completeRay, computeBSDF, getAspect, getScaleX, getScaleY
Methods 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:
generateRandomOrigins
in classProjection
-
generateRandomRays
public void generateRandomRays(Environment env, Vector3f out, Spectrum specOut, RayList rays, Random rnd, Matrix4d deviceToView) - Overrides:
generateRandomRays
in classProjection
-
getManageableType
- Specified by:
getManageableType
in interfaceManageable
- Overrides:
getManageableType
in classPerspectiveProjection
-