latest version v1.9 - last update 10 Apr 2010 |
abstract class parent for all objects that can be ray-traced. More...
#include <ltiDraw3D.h>
Public Member Functions | |
rayTraceObject (draw3D< T > &drawer) | |
virtual bool | rayTrace (const int x, const int y, double &z2, T &val)=0 |
virtual bool | render ()=0 |
virtual const char * | getTypeName () const |
Protected Member Functions | |
T | multiplyNormed (const T &a, const T &b) const |
T | addSaturated (const T &a, const T &b) const |
void | p2Dto3D (const int &x, const int &y, dpoint3D &imgp, dpoint3D &ray) const |
void | buildInverseCamera () |
Protected Attributes | |
draw3D< T > & | drawer |
const draw3D< T >::parameters & | param |
draw3D< T >::hmatrix | cam |
draw3D< T >::hmatrix | camInv |
dpoint | center |
abstract class parent for all objects that can be ray-traced.
All objects derived from this class are used internally in lti::draw3D objects.
lti::rayTraceObject< T >::rayTraceObject | ( | draw3D< T > & | drawer | ) |
T lti::rayTraceObject< T >::addSaturated | ( | const T & | a, | |
const T & | b | |||
) | const [protected] |
add with clipping
void lti::rayTraceObject< T >::buildInverseCamera | ( | ) | [protected] |
virtual const char* lti::rayTraceObject< T >::getTypeName | ( | ) | const [virtual] |
return the name of the this object
Reimplemented from lti::object.
Reimplemented in lti::rayTraceEllipsoid< T >.
T lti::rayTraceObject< T >::multiplyNormed | ( | const T & | a, | |
const T & | b | |||
) | const [protected] |
multiply ((a/norm) * (b/norm))*norm
void lti::rayTraceObject< T >::p2Dto3D | ( | const int & | x, | |
const int & | y, | |||
dpoint3D & | imgp, | |||
dpoint3D & | ray | |||
) | const [protected] |
virtual bool lti::rayTraceObject< T >::rayTrace | ( | const int | x, | |
const int | y, | |||
double & | z2, | |||
T & | val | |||
) | [pure virtual] |
Compute the color value of the pixel at x,y.
x | x coordinate in the image | |
y | y coordinate in the image | |
z2 | z coordinate of the surface point belonging to the given pixel (required for the z-buffering). | |
val | computed color (or gray) value for the given (x,y) pixel |
Implemented in lti::rayTraceEllipsoid< T >.
virtual bool lti::rayTraceObject< T >::render | ( | ) | [pure virtual] |
render the whole object
Implemented in lti::rayTraceEllipsoid< T >.
draw3D<T>::hmatrix lti::rayTraceObject< T >::cam [protected] |
draw3D<T>::hmatrix lti::rayTraceObject< T >::camInv [protected] |
dpoint lti::rayTraceObject< T >::center [protected] |
position of the projected origin of the world coordinates
draw3D<T>& lti::rayTraceObject< T >::drawer [protected] |
Drawer object.
const draw3D<T>::parameters& lti::rayTraceObject< T >::param [protected] |
parameters of the drawer