java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.imp3d.Projection
de.grogra.imp3d.ParallelProjection
- All Implemented Interfaces:
Manageable
,Shareable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParallelProjection.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 TypeMethodDescriptionprotected 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) float
getWidth()
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
-
width
protected float width -
$TYPE
-
width$FIELD
-
-
Constructor Details
-
ParallelProjection
public ParallelProjection() -
ParallelProjection
public ParallelProjection(float width, float aspect)
-
-
Method Details
-
getManageableType
-
getWidth
public float getWidth() -
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
-