de.grogra.imp3d
Class ParallelProjection

java.lang.Object
  extended by de.grogra.persistence.ShareableBase
      extended by de.grogra.imp3d.Projection
          extended by de.grogra.imp3d.ParallelProjection
All Implemented Interfaces:
Manageable, Shareable

public class ParallelProjection
extends Projection


Nested Class Summary
static class ParallelProjection.Type
           
 
Field Summary
static ParallelProjection.Type $TYPE
           
protected  float width
           
static SCOType.Field width$FIELD
           
 
Fields inherited from class de.grogra.imp3d.Projection
aspect, aspect$FIELD, sx, sy
 
Constructor Summary
ParallelProjection()
           
ParallelProjection(float width, float aspect)
           
 
Method Summary
 ManageableType getManageableType()
           
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)
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

$TYPE

public static final ParallelProjection.Type $TYPE

width

protected float width

width$FIELD

public static final SCOType.Field width$FIELD
Constructor Detail

ParallelProjection

public ParallelProjection()

ParallelProjection

public ParallelProjection(float width,
                          float aspect)
Method Detail

getManageableType

public ManageableType getManageableType()

getRayInViewCoordinates

protected void getRayInViewCoordinates(float x,
                                       float y,
                                       Point3d origin,
                                       Vector3d direction,
                                       Matrix4d deviceToView,
                                       Tuple2d densities)
Specified by:
getRayInViewCoordinates in class Projection

getScaleAt

public float getScaleAt(float z)
Specified by:
getScaleAt in class Projection

getTransformation

protected void getTransformation(float near,
                                 float far,
                                 Matrix4d viewToClip,
                                 Matrix4d deviceToView)
Specified by:
getTransformation in class Projection

getWidth

public float getWidth()

update

protected void update()
Specified by:
update in class Projection