#include <Camera.h>
Inherits AllignedS.
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 |
Camera::Camera | ( | void | ) | [inline] |
Camera::~Camera | ( | void | ) | [inline] |
void Camera::prepareCuda | ( | CameraCuda & | cameraOut | ) |
Copy the values to the structure that can be passed to CUDA functions.
[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.
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.
newWidth | Number of rays to generate per line | |
newHeight | Number of ray's lines to generate | |
fov | Field of view |