World::Camera::View Class Reference

#include <Camera.hh>

Collaboration diagram for World::Camera::View:

Collaboration graph
[legend]

List of all members.


Detailed Description

Generates rays shooting from camera.

Definition at line 50 of file Camera.hh.


Public Member Functions

Render::Ray At (Int x, Int y) const

Protected Member Functions

 View (Int XRes, Int YRes, const Math::Vector &Pos, const Math::Vector &Dir, const Math::Vector XVect, const Math::Vector YVect)

Protected Attributes

const Math::VectorPos
const Math::VectorDir
const Math::Vector XVect
const Math::Vector YVect
Double XResHalf
Double YResHalf

Friends

class Camera

Constructor & Destructor Documentation

World::Camera::View::View ( Int  XRes,
Int  YRes,
const Math::Vector Pos,
const Math::Vector Dir,
const Math::Vector  XVect,
const Math::Vector  YVect 
) [inline, protected]

Initialize View

Definition at line 73 of file Camera.hh.


Member Function Documentation

Render::Ray World::Camera::View::At ( Int  x,
Int  y 
) const

Shoots a ray from the camera which passes by (x,y) point of camera screen.

Definition at line 78 of file Camera.cc.

References Dir, Pos, XResHalf, XVect, YResHalf, and YVect.

Referenced by Render::Raytracer::Render().

Here is the caller graph for this function:


Member Data Documentation

Camera position

Definition at line 55 of file Camera.hh.

Referenced by At().

Camera direction

Definition at line 58 of file Camera.hh.

Referenced by At().

Indicates distance between two nearest horizontal pixels of camera

Definition at line 62 of file Camera.hh.

Referenced by At().

Indicates distance between two nearest vertical camera pixels

Definition at line 66 of file Camera.hh.

Referenced by At().

Double World::Camera::View::XResHalf [protected]

Half of the screen resolution stored as double type

Definition at line 69 of file Camera.hh.

Referenced by At().

Double World::Camera::View::YResHalf [protected]

Half of the screen resolution stored as double type

Definition at line 69 of file Camera.hh.

Referenced by At().


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

Generated on Wed Mar 12 00:36:17 2008 for blaRAY by  doxygen 1.5.5