rcrt::SuperMetaTracer Class Reference

#include <SuperMetaTracer.h>

Inheritance diagram for rcrt::SuperMetaTracer:

Inheritance graph
[legend]
Collaboration diagram for rcrt::SuperMetaTracer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SuperMetaTracer (TracingStrategy *trac)
virtual ~SuperMetaTracer ()
virtual RGBColor trace (Ray &r) const
virtual Image trace (Camera *cam, const int &x0, const int &y0, const int &x1, const int &y1) const

Private Attributes

TracingStrategytracer


Detailed Description

Definition at line 9 of file SuperMetaTracer.h.


Constructor & Destructor Documentation

rcrt::SuperMetaTracer::SuperMetaTracer ( TracingStrategy trac  ) 

Definition at line 6 of file SuperMetaTracer.cpp.

rcrt::SuperMetaTracer::~SuperMetaTracer (  )  [virtual]

Definition at line 10 of file SuperMetaTracer.cpp.


Member Function Documentation

RGBColor rcrt::SuperMetaTracer::trace ( Ray r  )  const [virtual]

Trace the given ray and return the (approximated) radiance that is coming in at the ray origin, from -ray_direction.

Parameters:
r the ray
Returns:
the radiance

Implements rcrt::TracingStrategy.

Definition at line 15 of file SuperMetaTracer.cpp.

References rcrt::TracingStrategy::trace(), and tracer.

Image rcrt::SuperMetaTracer::trace ( Camera cam,
const int &  x0,
const int &  y0,
const int &  x1,
const int &  y1 
) const [virtual]

Trace only the area specified by (x_0, y_0) and (x_1, y_1) of the given camera.

Parameters:
cam The camera.
Returns:
An Image with the size of the specified area. (x_0, y_0) ~> (0,0) in the image.

Reimplemented from rcrt::TracingStrategy.

Definition at line 20 of file SuperMetaTracer.cpp.

References rcrt::Camera::getRay(), rcrt::Image::setPixel(), rcrt::TracingStrategy::trace(), tracer, and rcrt::Ray::tris.


Member Data Documentation

TracingStrategy* rcrt::SuperMetaTracer::tracer [private]

Definition at line 12 of file SuperMetaTracer.h.

Referenced by trace().


The documentation for this class was generated from the following files:
Generated on Thu Jan 31 19:33:27 2008 for RenderingCompetitionRayTracer by  doxygen 1.5.3