Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

PathTracer Class Reference

Class implementing a simple pathtracer. More...

#include <pathtracer.h>

Inherits Raytracer.

Inheritance diagram for PathTracer:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PathTracer (Scene *scene, Image *img)
 Creates a pathtracer.
virtual ~PathTracer ()
 Destructor.
void computeImage ()
 Raytraces the scene by calling tracePixel for every pixel in the output image.

Protected Member Functions

Color trace (int x, int y)
 Computes the color of the pixel at (x,y).
Color trace (const Ray &ray)
 Computes the radiance returned by tracing the ray r.
void sampleSphere (Vector &v) const
 Helper function for creating a random direction on the sphere.
Ray getShadowRay (const Intersection &is, PointLight *light) const
 Sets up a shadow ray from an intersection point to a point light source.
Ray getReflectedRay (const Intersection &is) const
 Helper function that computes the reflected view direction and sets up a ray with the correct parameters.
Ray getTransmittedRay (const Intersection &is) const
 Helper function that computes the transmission direction and sets up a ray with the correct parameters.

Protected Attributes

ScenemScene
 Ptr to the scene.
ImagemImage
 Ptr to the output image.
CameramCamera
 Ptr to the camera used for rendering.

Detailed Description

Class implementing a simple pathtracer.


The documentation for this class was generated from the following files:
Generated on Tue Mar 14 09:46:40 2006 for ASR by  doxygen 1.4.4