PointEnv Class Reference

#include <PointEnv.h>

List of all members.

Public Types

enum  NormalOrientation { OUTWARDS_NORMAL, INWARDS_NORMAL, RANDOM_NORMAL }

Public Member Functions

 PointEnv ()
virtual ~PointEnv ()

Public Attributes

Color3f energy
 energy at PoI
Vector3 intersection
 space coordinates of PoI
Vector2 uvCoord
 UV coordinates of PoI.
Vector3 normal
 normal vector at PoI
SceneGraphObjectpVisitableObj
 primtive object associated with PoI
int mask
 what is set
NormalOrientation normalOrientation
 orientation of normal at PoI
Matrix4 trMat
 transformation matrix of PoI
Vector3 viewerDir
 normalized vector from PoI to viewer
double distance
 distance between PoI and ray's origin
double nd
 normal dot direction
double no
 normal dot origin
CachepCache
 cache of precomputed values


Detailed Description

PointEnv represents intersection point (PoI) of a ray with object surface. PoI can contain many inforations, e.g. normal at the point, color, UV coordinates etc.

Definition at line 72 of file PointEnv.h.


Member Enumeration Documentation

enum NormalOrientation
 

Enumerator:
OUTWARDS_NORMAL 
INWARDS_NORMAL 
RANDOM_NORMAL 

Definition at line 78 of file PointEnv.h.


Constructor & Destructor Documentation

PointEnv  )  [inline]
 

Constructor

Definition at line 103 of file PointEnv.h.

virtual ~PointEnv  )  [inline, virtual]
 

Destructor

Definition at line 115 of file PointEnv.h.


Member Data Documentation

double distance
 

distance between PoI and ray's origin

Definition at line 94 of file PointEnv.h.

Referenced by Intersector::processCandidate(), Surface::rayIntersection(), Sphere::rayIntersection(), Polygon::rayIntersection(), Point3D::rayIntersection(), Hemisphere::rayIntersection(), and Cylinder::rayIntersection().

Color3f energy
 

energy at PoI

Definition at line 85 of file PointEnv.h.

Vector3 intersection
 

space coordinates of PoI

Definition at line 86 of file PointEnv.h.

Referenced by Geometry::randomDirection(), Triangle::randomSample(), Sphere::randomSample(), Rectangle::randomSample(), Point3D::randomSample(), Hemisphere::randomSample(), Surface::rayIntersection(), Sphere::rayIntersection(), Polygon::rayIntersection(), Point3D::rayIntersection(), OSGAdapter::rayIntersection(), Hemisphere::rayIntersection(), Cylinder::rayIntersection(), and PointEmittance::stochasticEmission().

int mask
 

what is set

Definition at line 90 of file PointEnv.h.

Referenced by Intersector::processCandidate(), Geometry::randomDirection(), Triangle::randomSample(), Surface::randomSample(), Sphere::randomSample(), Rectangle::randomSample(), Polygon::randomSample(), Point3D::randomSample(), Hemisphere::randomSample(), FDH::randomSample(), Cylinder::randomSample(), NurbsSurface::randomSample(), Surface::rayIntersection(), Sphere::rayIntersection(), Polygon::rayIntersection(), Point3D::rayIntersection(), OSGAdapter::rayIntersection(), Hemisphere::rayIntersection(), FDH::rayIntersection(), Cylinder::rayIntersection(), RayIntExplorer::result(), and PointEmittance::stochasticEmission().

double nd
 

normal dot direction

Definition at line 95 of file PointEnv.h.

Referenced by Surface::rayIntersection(), and Polygon::rayIntersection().

double no
 

normal dot origin

Definition at line 96 of file PointEnv.h.

Referenced by Surface::rayIntersection(), and Polygon::rayIntersection().

Vector3 normal
 

normal vector at PoI

Definition at line 88 of file PointEnv.h.

Referenced by Triangle::randomSample(), Sphere::randomSample(), Rectangle::randomSample(), Hemisphere::randomSample(), Surface::rayIntersection(), Sphere::rayIntersection(), Polygon::rayIntersection(), OSGAdapter::rayIntersection(), Hemisphere::rayIntersection(), and Cylinder::rayIntersection().

NormalOrientation normalOrientation
 

orientation of normal at PoI

Definition at line 91 of file PointEnv.h.

Referenced by Triangle::randomSample(), Sphere::randomSample(), Rectangle::randomSample(), Hemisphere::randomSample(), Surface::rayIntersection(), Sphere::rayIntersection(), Polygon::rayIntersection(), Hemisphere::rayIntersection(), and Cylinder::rayIntersection().

Cache* pCache
 

cache of precomputed values

Definition at line 97 of file PointEnv.h.

Referenced by IteratorSDS::initRayIntersection(), and FDH::rayIntersection().

SceneGraphObject* pVisitableObj
 

primtive object associated with PoI

Definition at line 89 of file PointEnv.h.

Referenced by Intersector::processCandidate().

Matrix4 trMat
 

transformation matrix of PoI

Definition at line 92 of file PointEnv.h.

Referenced by RayIntExplorer::result().

Vector2 uvCoord
 

UV coordinates of PoI.

Definition at line 87 of file PointEnv.h.

Referenced by Triangle::randomSample(), Sphere::randomSample(), Rectangle::randomSample(), Point3D::randomSample(), Hemisphere::randomSample(), Sphere::rayIntersection(), Polygon::rayIntersection(), Point3D::rayIntersection(), and Hemisphere::rayIntersection().

Vector3 viewerDir
 

normalized vector from PoI to viewer

Definition at line 93 of file PointEnv.h.


The documentation for this class was generated from the following file:
Generated on Wed Jun 28 12:24:35 2006 for esg by  doxygen 1.4.6