java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.imp3d.Projection
- All Implemented Interfaces:
Manageable
,Shareable
- Direct Known Subclasses:
ParallelProjection
,PerspectiveProjection
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Projection.Type
protected float
static final SCOType.Field
protected float
protected float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected double
completeRay
(Environment env, Point3d vertex, Ray out, Matrix4d viewToClip, Matrix4d deviceToView) float
computeBSDF
(Environment env, Spectrum specIn, Vector3f out, Spectrum bsdf) void
generateRandomOrigins
(Environment env, RayList out, Random rnd, Matrix4d deviceToView) void
generateRandomRays
(Environment env, Vector3f out, Spectrum specOut, RayList rays, Random rnd, Matrix4d deviceToView) float
protected abstract void
getRayInViewCoordinates
(float x, float y, Point3d origin, Vector3d direction, Matrix4d deviceToView, Tuple2d densities) abstract float
getScaleAt
(float z) float
float
protected abstract void
getTransformation
(float near, float far, Matrix4d viewToClip, Matrix4d deviceToView) protected abstract void
update()
Methods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReference
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.grogra.persistence.Manageable
getManageableType
-
Field Details
-
aspect
protected float aspect -
$TYPE
-
aspect$FIELD
-
sx
protected transient float sx -
sy
protected transient float sy
-
-
Constructor Details
-
Projection
public Projection()
-
-
Method Details
-
getAspect
public float getAspect() -
update
protected abstract void update() -
getScaleX
public float getScaleX() -
getScaleY
public float getScaleY() -
getTransformation
-
getRayInViewCoordinates
-
getScaleAt
public abstract float getScaleAt(float z) -
generateRandomOrigins
-
generateRandomRays
-
computeBSDF
-
completeRay
protected double completeRay(Environment env, Point3d vertex, Ray out, Matrix4d viewToClip, Matrix4d deviceToView)
-