rcrt::DebugTracer Class Reference

#include <DebugTracer.h>

Inheritance diagram for rcrt::DebugTracer:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 DebugTracer (Scene *s)
virtual ~DebugTracer ()
virtual RGBColor trace (Ray &r) const
virtual Image trace (Camera *cam, std::vector< Primitive * > *trlist) const


Detailed Description

Definition at line 10 of file DebugTracer.h.


Constructor & Destructor Documentation

rcrt::DebugTracer::DebugTracer ( Scene s  ) 

Definition at line 7 of file DebugTracer.cpp.

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

Definition at line 11 of file DebugTracer.cpp.


Member Function Documentation

RGBColor rcrt::DebugTracer::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 DebugTracer.cpp.

References rcrt::Vec3D::abs(), rcrt::Intersection::backSide(), rcrt::RGBColor::BLACK, rcrt::Intersection::getSNormalW(), rcrt::Scene::intersect(), rcrt::Intersection::isValid(), rcrt::TracingStrategy::scene, rcrt::Vec3D::x(), rcrt::Vec3D::y(), and rcrt::Vec3D::z().

Referenced by testDispl1(), and testQuad().

Image rcrt::DebugTracer::trace ( Camera cam,
std::vector< Primitive * > *  trlist 
) const [virtual]

Definition at line 33 of file DebugTracer.cpp.

References rcrt::Vec3D::abs(), rcrt::Intersection::getDistance(), rcrt::Camera::getRay(), rcrt::Camera::getResolutionX(), rcrt::Camera::getResolutionY(), rcrt::Intersection::getSNormalW(), rcrt::Intersection::isValid(), rcrt::Image::setPixel(), rcrt::Ray::tris, rcrt::Vec3D::x(), rcrt::Vec3D::y(), and rcrt::Vec3D::z().


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