#include <SuperMetaTracer.h>
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 | |
TracingStrategy * | tracer |
Definition at line 9 of file SuperMetaTracer.h.
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.
Trace the given ray and return the (approximated) radiance that is coming in at the ray origin, from -ray_direction.
r | the ray |
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.
cam | The camera. |
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.
TracingStrategy* rcrt::SuperMetaTracer::tracer [private] |