Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

vuCamera.cpp File Reference

#include <GL/gl.h>
#include <stdlib.h>
#include <GL/glu.h>
#include <math.h>
#include "vuCamera.h"
#include "vuMatrix.h"

Include dependency graph for vuCamera.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define PI_OVER_180   0.01745329251994

Functions

int get_next_open (char *line)
 this will return the position of the next '(' in the line
int get_next_close (char *line)
 this will return the position of the next ')' in the line
ostream & operator<< (ostream &out, vuCamera &cam)
istream & operator>> (istream &in, vuCamera &cam)
bool record_with_time (char *record_to, vuCamera &cam)
bool stop_recording (vuCamera &cam)
bool TakeSnapShotWithTime (float time, vuCamera &cam)
bool load_WithTime (char *load_from, vuCamera *cam, vuDVector< vuCamera * > &cameras, vuDVector< float > &times)
vuCameraoperator * (float t, vuCamera &cam)
vuCamerainterpolate (vuCamera *cam1, vuCamera *cam2, float t, float t0, float tf)
 This will imterpolate between cam1 and cam2 given that cam1 is at time t0, cam2 is at time tf, and the current time is t.

Variables

char id_string_cgs_xq1 [] = "vuBasicCameraD1.00___"
char id_string_cgs_xq1_2 [] = "vuCamera_WithTime_id_1.00__"


Define Documentation

#define PI_OVER_180   0.01745329251994
 

Definition at line 12 of file vuCamera.cpp.

Referenced by vuMatrix::makeRotate(), vuMatrix::makeRotateX(), Matrix::MakeRotateX(), vuMatrix::makeRotateY(), Matrix::MakeRotateY(), vuMatrix::makeRotateZ(), and Matrix::MakeRotateZ().


Function Documentation

int get_next_close char *  line  ) 
 

this will return the position of the next ')' in the line

This is provided to make parsing the camera files easier

Definition at line 348 of file vuCamera.cpp.

Referenced by vuCamera::RestoreShotBasic(), vuParallelCamera::RestoreShotOrtho(), and vuPerspectiveCamera::RestoreShotPersp().

int get_next_open char *  line  ) 
 

this will return the position of the next '(' in the line

This is provided to make parsing the camera files easier

Definition at line 337 of file vuCamera.cpp.

Referenced by vuCamera::RestoreShotBasic(), vuParallelCamera::RestoreShotOrtho(), and vuPerspectiveCamera::RestoreShotPersp().

vuCamera* interpolate vuCamera cam1,
vuCamera cam2,
float  t,
float  t0,
float  tf
 

This will imterpolate between cam1 and cam2 given that cam1 is at time t0, cam2 is at time tf, and the current time is t.

It will return a pointer to cam1, where the result will be stored.

This will work for all cameras properely derived from vuCamera

Definition at line 875 of file vuCamera.cpp.

References vuCamera::create_new(), and vuCamera::set_equal_to_interp().

Referenced by vuKeyFramerDialog::BurstPlayGI(), and vuKeyFramerDialog::PlayNextFrame().

Here is the call graph for this function:

bool load_WithTime char *  load_from,
vuCamera cam,
vuDVector< vuCamera * > &  cameras,
vuDVector< float > &  times
 

This returns true if successful and false if it fails to load.

This will work if you recast a derived camera as a base class camera.

Definition at line 653 of file vuCamera.cpp.

References vuDVector< T >::add(), clear_blanks(), vuCamera::clear_lines(), vuCamera::create_new(), vuCamera::fp, get_next_comma(), vuDVector< T >::getLength(), vuCamera::line_number, vuCamera::lines, vuDVector< T >::removeRange(), vuCamera::RestoreShot(), vuCamera::verify_id(), and vuCamera::verify_time_id().

Referenced by vuKeyFramerDialog::LoadFunc().

Here is the call graph for this function:

vuCamera* operator * float  t,
vuCamera cam
 

This will create a new camera, and return a pointer to that camera.

It will then multiply each component of cam by t and return the a pointer to the camera storing the result of this multiplication.

Definition at line 779 of file vuCamera.cpp.

References vuCamera::create_new(), vuCamera::m_IsChanged, vuCamera::m_LookAtVector, vuCamera::m_Position, vuCamera::m_UpVector, vuCamera::setLookAtVector(), vuCamera::setPosition(), and vuCamera::setUpVector().

Here is the call graph for this function:

ostream& operator<< ostream &  out,
vuCamera cam
 

Definition at line 541 of file vuCamera.cpp.

References vuCamera::m_IsChanged, and vuCamera::TakeSnapShot().

Here is the call graph for this function:

istream& operator>> istream &  in,
vuCamera cam
 

Definition at line 555 of file vuCamera.cpp.

References vuCamera::RestoreShot().

Here is the call graph for this function:

bool record_with_time char *  record_to,
vuCamera cam
 

This will return true if successful and false otherwise.

This works properely for all cameras properely derived from this class

This will work if you recast a derived camera as a base class camera.

Definition at line 611 of file vuCamera.cpp.

References vuCamera::fp, vuCamera::getWithTime_id(), and vuCamera::record().

Referenced by vuKeyFramerDialog::RecordFunc().

Here is the call graph for this function:

bool stop_recording vuCamera cam  ) 
 

This will return true if successful, and false otherwise.

This works properely for all cameras properely derived from this class.

This will work if you recast a derived camera as a base class camera.

Definition at line 626 of file vuCamera.cpp.

References vuCamera::stop_recording().

Here is the call graph for this function:

bool TakeSnapShotWithTime float  time,
vuCamera cam
 

The format is time, path
...

This will return true if successful, and false otherwise.

This works correctly for all cameras properely derived from this class (ie, it'lkl record the correct data for a perspective camera passed into this recast as a vuCamera... ).

This will work if you recast a derived camera as a base class camera.

Definition at line 634 of file vuCamera.cpp.

References vuCamera::fp, vuCamera::m_IsRecording, and vuCamera::TakeSnapShot().

Referenced by vuKeyFramerDialog::SaveFunc().

Here is the call graph for this function:


Variable Documentation

char id_string_cgs_xq1[] = "vuBasicCameraD1.00___"
 

Definition at line 533 of file vuCamera.cpp.

char id_string_cgs_xq1_2[] = "vuCamera_WithTime_id_1.00__"
 

Definition at line 721 of file vuCamera.cpp.


Generated on Wed Dec 15 21:20:48 2004 for vuVolume by  doxygen 1.3.9.1