Main Page | Class Hierarchy | Class List | File List | Class Members

CameraRay Class Reference

#include <cameraray.h>

Inheritance diagram for CameraRay:

Ray List of all members.

Public Member Functions

 CameraRay (const Vector3 o, const Vector3 d, Scene *s, InsideList *l)
 CameraRay (const CameraRay &r)
FLT getWeight ()
void scaleWeight (FLT s)
bool shoot ()
bool refract (FLT weightmult)
void reflect (FLT weightmult)
Vector3 normal () const
Texturetexture () const
Vector3 hitpoint () const
Colour evaluateMedia (Colour &absorb) const
InsideListgetInside () const

Detailed Description

Global ray emitted by camera.
Author:
Micha Riser


Constructor & Destructor Documentation

CameraRay::CameraRay const Vector3  o,
const Vector3  d,
Scene s,
InsideList l
 

Constructs new camera ray.

Parameters:
o ray's origin
d ray's direction
s scene belonging to ray
l list of object which is the ray inside at origin

CameraRay::CameraRay const CameraRay r  )  [inline]
 

Copy constructor.


Member Function Documentation

Colour CameraRay::evaluateMedia Colour absorb  )  const
 

Evaluate media interval. Calculates the colour contribution by the interval between ray's origin and hitpoint.

InsideList* CameraRay::getInside  )  const [inline]
 

Get list of objects which the ray is inside in.

FLT CameraRay::getWeight  )  [inline]
 

Returns ray's contribution factor to the resulting colour.

Vector3 CameraRay::hitpoint  )  const [inline]
 

Returns the intersection point.

Vector3 CameraRay::normal  )  const [inline]
 

Returns object's surface normal at intersection

void CameraRay::reflect FLT  weightmult  ) 
 

Reflect ray.

Parameters:
weightmult factor for colour weight reduction

bool CameraRay::refract FLT  weightmult  ) 
 

Refract ray.

Parameters:
weightmult factor for colour weight reduction
Returns:
true if total reflection has occured else false

void CameraRay::scaleWeight FLT  s  )  [inline]
 

Scale ray's contribution factor.

Parameters:
s factor

bool CameraRay::shoot  ) 
 

Shoot ray. Calculate the ray-scene intersection.

Texture* CameraRay::texture  )  const [inline]
 

Returns object's texture at intersection


The documentation for this class was generated from the following files:
Generated on Thu Jan 27 12:16:06 2005 for raytracer.kdevelop by doxygen 1.3.8