#include <DebugTracer.h>
Public Member Functions | |
DebugTracer (Scene *s) | |
virtual | ~DebugTracer () |
virtual RGBColor | trace (Ray &r) const |
virtual Image | trace (Camera *cam, std::vector< Primitive * > *trlist) const |
Definition at line 10 of file DebugTracer.h.
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.
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 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().