cpe::camera Class Reference

Storage of a camera and screen parameters. More...

+ Collaboration diagram for cpe::camera:

Public Member Functions

 camera (const vec3 &center=vec3(0, 0,-2), const vec3 &direction=vec3(0, 0, 1), const vec3 &up=vec3(0, 1, 0), float dist_screen=2.0, float length_screen=4.0)
 direct constructor More...
 
const vec3get_center () const
 get the center of the camera More...
 
const vec3get_direction () const
 get the direction value More...
 
const vec3get_up () const
 get the up direction value More...
 
float get_dist_screen () const
 get the dist_screen value More...
 
float get_length_screen () const
 get the length_of the screen value More...
 

Private Attributes

vec3 p
 internal camera center More...
 
vec3 dir
 direction of pointing camera More...
 
vec3 up
 up direction of the camera More...
 
float dist_screen
 internal screen distance to the center More...
 
float length_screen
 length of the screen More...
 

Detailed Description

Storage of a camera and screen parameters.

Constructor & Destructor Documentation

cpe::camera::camera ( const vec3 center = vec3(0,0,-2),
const vec3 direction = vec3(0,0,1),
const vec3 up = vec3(0,1,0),
float  dist_screen = 2.0,
float  length_screen = 4.0 
)

direct constructor

Member Function Documentation

const vec3 & cpe::camera::get_center ( ) const

get the center of the camera

References p.

Referenced by cpe::ray_generate(), and cpe::screen_position().

const vec3 & cpe::camera::get_direction ( ) const

get the direction value

References dir.

Referenced by cpe::screen_position().

float cpe::camera::get_dist_screen ( ) const

get the dist_screen value

References dist_screen.

Referenced by cpe::screen_position().

float cpe::camera::get_length_screen ( ) const

get the length_of the screen value

References length_screen.

Referenced by cpe::screen_position().

const vec3 & cpe::camera::get_up ( ) const

get the up direction value

References up.

Referenced by cpe::screen_position().

Member Data Documentation

vec3 cpe::camera::dir
private

direction of pointing camera

Referenced by get_direction().

float cpe::camera::dist_screen
private

internal screen distance to the center

Referenced by get_dist_screen().

float cpe::camera::length_screen
private

length of the screen

Referenced by get_length_screen().

vec3 cpe::camera::p
private

internal camera center

Referenced by get_center().

vec3 cpe::camera::up
private

up direction of the camera

Referenced by get_up().


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