rcrt::StereoMetaTracer Class Reference

#include <StereoMetaTracer.h>

Inheritance diagram for rcrt::StereoMetaTracer:

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

Collaboration graph
[legend]

List of all members.

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

CameracamLeft
CameracamRight
TracingStrategystrategy


Detailed Description

A meta level tracer that takes another tracer and a perspective camera to render stereo images.

Warning: Can not use this with the ThreadedMetaTracer at the moment.

Definition at line 17 of file StereoMetaTracer.h.


Constructor & Destructor Documentation

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]

Definition at line 29 of file StereoMetaTracer.cpp.

References camLeft, and camRight.


Member Function Documentation

RGBColor rcrt::StereoMetaTracer::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 35 of file StereoMetaTracer.cpp.

References rcrt::RGBColor::BLACK.

Referenced by trace().

Image rcrt::StereoMetaTracer::trace ( Camera cam  )  const [virtual]

Trace the full resolution of the given camera. Uses trace(Ray& r).

Parameters:
cam The camera.
Returns:
An Image with the size of the cams resolution

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.

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 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().


Member Data Documentation

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]

Definition at line 21 of file StereoMetaTracer.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