

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
java.lang.Object de.grogra.ray.physics.Environment
public class Environment
This class serves as input to scattering calculations. The fields together constitute the local environment at a surface, light or sensor point, including geometrical and optical properties.
Field Summary  

BoundingBox 
bounds
The bounding box of all finite volumes of the scene in which this environment is used. 
Vector3d 
boundsCenter
The center of bounds . 
double 
boundsRadius
The radius of the bounding sphere whose center is located at boundsCenter and which encloses bounds . 
Vector3f 
dpdu
The derivative of the global surface position with respect to the canonical ucoordinate. 
Vector3f 
dpdv
The derivative of the global surface position with respect to the canonical vcoordinate. 
Matrix4f 
globalToLocal
The transformation from global to local coordinates. 
float 
iorRatio
The indexofrefraction ratio at the surface. 
Point3f 
localPoint
The surface position in local coordinates of the object which defines the surface, light source, or sensor. 
Matrix4f 
localToGlobal
The transformation from local to global coordinates. 
Vector3f 
normal
The surface geometric normal unit vector at point
in global world coordinates. 
static int 
PATH_TRACER
Constant for type indicating a path tracer algorithm. 
Point3f 
point
The surface position in global world coordinates. 
static int 
RADIATION_MODEL
Constant for type indicating a radiation model algorithm. 
boolean 
solid
Indicates whether this is an intersection at the surface of a solid object or of an infinitely thin object. 
static int 
STANDARD_RAY_TRACER
Constant for type indicating a standard (unphysical)
ray tracer algorithm. 
Matrix3d 
tmpMatrix30
This matrix may be used freely in implementations of the Scattering methods. 
Point3d 
tmpPoint0
This point may be used freely in implementations of the Scattering methods. 
Point3d 
tmpPoint1
This point may be used freely in implementations of the Scattering methods. 
Point2d 
tmpPoint2d0
This point may be used freely in implementations of the Scattering methods. 
Spectrum 
tmpSpectrum0
This spectrum may be used freely in implementations of the Scattering methods. 
Spectrum 
tmpSpectrum1
This spectrum may be used freely in implementations of the Scattering methods. 
Vector3d 
tmpVector0
This vector may be used freely in implementations of the Scattering methods. 
Vector3d 
tmpVector1
This vector may be used freely in implementations of the Scattering methods. 
int 
type
The type of algorithm for which this environment is used, one of STANDARD_RAY_TRACER , PATH_TRACER ,
RADIATION_MODEL . 
Matrix3f 
userMatrix
This matrix may be used freely in implementations of the Scattering methods. 
Matrix3f 
userMatrix2
This matrix may be used freely in implementations of the Scattering methods. 
Matrix3f 
userMatrix3
This matrix may be used freely in implementations of the Scattering methods. 
java.lang.Object 
userObject
This object may be used freely in implementations of the Scattering methods in order to cache results
between invocations. 
java.lang.Object 
userObjectOwner
The current owner of userObject . 
Vector3f 
userVector
This vector may be used freely in implementations of the Scattering methods. 
Vector3f 
userVector2
This vector may be used freely in implementations of the Scattering methods. 
Vector3f 
userVector3
This vector may be used freely in implementations of the Scattering methods. 
Point2f 
uv
The canonical uvcoordinates at point . 
Constructor Summary  

Environment()


Environment(BoundingBox bounds,
Spectrum factory,
int type)
Creates a new instance of Environment . 
Method Summary  

void 
set(Intersection desc,
int flags,
Scene scene)

Methods inherited from class java.lang.Object 

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
Field Detail 

public final BoundingBox bounds
boundsCenter
,
boundsRadius
public final Vector3d boundsCenter
bounds
.
public final double boundsRadius
boundsCenter
and which encloses bounds
.
public final Vector3f dpdu
public final Vector3f dpdv
public Matrix4f globalToLocal
localToGlobal
.
public float iorRatio
public final Point3f localPoint
public Matrix4f localToGlobal
public final Vector3f normal
point
in global world coordinates.
This is always the outer normal vector.
The normal vector is only needed for surface shaders, it is not used for emitters (light sources or sensors).
public static final int PATH_TRACER
type
indicating a path tracer algorithm.
public final Point3f point
public static final int RADIATION_MODEL
type
indicating a radiation model algorithm.
public boolean solid
public static final int STANDARD_RAY_TRACER
type
indicating a standard (unphysical)
ray tracer algorithm.
public final Matrix3d tmpMatrix30
Scattering
methods.
public final Point3d tmpPoint0
Scattering
methods.
public final Point3d tmpPoint1
Scattering
methods.
public final Point2d tmpPoint2d0
Scattering
methods.
public final Spectrum tmpSpectrum0
Scattering
methods.
public final Spectrum tmpSpectrum1
Scattering
methods.
public final Vector3d tmpVector0
Scattering
methods.
public final Vector3d tmpVector1
Scattering
methods.
public final int type
STANDARD_RAY_TRACER
, PATH_TRACER
,
RADIATION_MODEL
.
public final Matrix3f userMatrix
Scattering
methods.
public final Matrix3f userMatrix2
Scattering
methods.
public final Matrix3f userMatrix3
Scattering
methods.
public java.lang.Object userObject
Scattering
methods in order to cache results
between invocations. Whenever this field is modified,
userObjectOwner
has to be set, too.
public java.lang.Object userObjectOwner
userObject
. This should be used
to determine the validity of caching information stored in
userObject
.
public final Vector3f userVector
Scattering
methods.
public final Vector3f userVector2
Scattering
methods.
public final Vector3f userVector3
Scattering
methods.
public final Point2f uv
point
. Which
coordinates are canonical for a specific surface depends on the
surface: E.g., for a sphere, the canonical uvcoordinates
would be spherical coordinates.
Constructor Detail 

public Environment()
public Environment(BoundingBox bounds, Spectrum factory, int type)
Environment
. The
factory
is used to obtain new spectra for
light transport computations.
bounds
 bounding box of scene in which environment is usedfactory
 use this to create new spectratype
 value for type
Method Detail 

public void set(Intersection desc, int flags, Scene scene)


PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 