Camera Class Reference

Generates rays for ray casting. More...

#include <Camera.h>

Inherits AllignedS.

List of all members.

Public Member Functions

 Camera (void)
 ~Camera (void)
void setUpProjection (unsigned newWidth, unsigned newHeight, float fov)
 Sets camera parameters.
void setLook (const SPVector &newEye, const SPVector &target, const SPVector &up)
 Sets up new camera position and orientation.
void prepareCuda (CameraCuda &cameraOut)
 Copy the values to the structure that can be passed to CUDA functions.

Public Attributes

unsigned pixelWidth
 Number of rays to generate per line.
unsigned pixelHeight
 Number of ray's lines to generate.
float planeWidth
 Half width size of projection plane.
float planeHeight
 Half height size of projection plane.
SPVector upperLeft
 The direction of the upper left ray(first ray for tracing).
SPVector dx
 Horizontal difference betwen rays.
SPVector dy
 Vertical difference betwen rays.
SPVector eye
 Center of projection.
SPVector moveFront
SPVector moveSide


Detailed Description

Generates rays for ray casting.

Constructor & Destructor Documentation

Camera::Camera ( void   )  [inline]

Camera::~Camera ( void   )  [inline]


Member Function Documentation

void Camera::prepareCuda ( CameraCuda cameraOut  ) 

Copy the values to the structure that can be passed to CUDA functions.

Parameters:
[out] cameraOut The target for the values.

void Camera::setLook ( const SPVector &  newEye,
const SPVector &  target,
const SPVector &  up 
)

Sets up new camera position and orientation.

Parameters:
newEye New center of projection
target Point which will be seeen in center of image
up Upvector defining camera rotation around direction of look

void Camera::setUpProjection ( unsigned  newWidth,
unsigned  newHeight,
float  fov 
)

Sets camera parameters.

Parameters:
newWidth Number of rays to generate per line
newHeight Number of ray's lines to generate
fov Field of view


The documentation for this class was generated from the following files:

Generated on Fri Jan 23 00:21:49 2009 for Raytracer by  doxygen 1.5.7.1