#include <StereoMetaTracer.h>
Public Member Functions | |
StereoMetaTracer (PerspectiveCamera *cam, float eyeDistance, TracingStrategy *ts) | |
virtual | ~StereoMetaTracer () |
virtual RGBColor | trace (Ray &r) const |
virtual Image | trace (Camera *cam) const |
virtual Image | trace (Camera *cam, const int &x0, const int &y0, const int &x1, const int &y1) const |
Private Attributes | |
Camera * | camLeft |
Camera * | camRight |
TracingStrategy * | strategy |
Warning: Can not use this with the ThreadedMetaTracer at the moment.
Definition at line 17 of file StereoMetaTracer.h.
rcrt::StereoMetaTracer::StereoMetaTracer | ( | PerspectiveCamera * | cam, | |
float | eyeDistance, | |||
TracingStrategy * | ts | |||
) |
Definition at line 6 of file StereoMetaTracer.cpp.
References camLeft, camRight, rcrt::PerspectiveCamera::getAngle(), rcrt::PerspectiveCamera::getDirection(), rcrt::PerspectiveCamera::getFocus(), rcrt::PerspectiveCamera::getPosition(), rcrt::Camera::getResolutionX(), rcrt::Camera::getResolutionY(), rcrt::PerspectiveCamera::getUp(), and rcrt::PerspectiveCamera::getXAxis().
rcrt::StereoMetaTracer::~StereoMetaTracer | ( | ) | [virtual] |
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 35 of file StereoMetaTracer.cpp.
References rcrt::RGBColor::BLACK.
Referenced by trace().
Trace the full resolution of the given camera. Uses trace(Ray& r).
cam | The camera. |
Reimplemented from rcrt::TracingStrategy.
Definition at line 39 of file StereoMetaTracer.cpp.
References camLeft, rcrt::Camera::getResolutionX(), rcrt::Camera::getResolutionY(), and trace().
Image rcrt::StereoMetaTracer::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 45 of file StereoMetaTracer.cpp.
References rcrt::RGBAColor::a(), rcrt::RGBAColor::b(), camLeft, camRight, rcrt::RGBAColor::g(), rcrt::Image::getHeight(), rcrt::Image::getPixel(), rcrt::Image::getWidth(), rcrt::RGBAColor::r(), strategy, and rcrt::TracingStrategy::trace().
Camera* rcrt::StereoMetaTracer::camLeft [private] |
Definition at line 20 of file StereoMetaTracer.h.
Referenced by StereoMetaTracer(), trace(), and ~StereoMetaTracer().
Camera * rcrt::StereoMetaTracer::camRight [private] |
Definition at line 20 of file StereoMetaTracer.h.
Referenced by StereoMetaTracer(), trace(), and ~StereoMetaTracer().
TracingStrategy* rcrt::StereoMetaTracer::strategy [private] |