#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:
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 > ×) |
vuCamera * | operator * (float t, vuCamera &cam) |
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. | |
Variables | |
char | id_string_cgs_xq1 [] = "vuBasicCameraD1.00___" |
char | id_string_cgs_xq1_2 [] = "vuCamera_WithTime_id_1.00__" |
|
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(). |
|
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(). |
|
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(). |
|
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:
|
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:
|
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:
|
Definition at line 541 of file vuCamera.cpp. References vuCamera::m_IsChanged, and vuCamera::TakeSnapShot(). |
Here is the call graph for this function:
|
Definition at line 555 of file vuCamera.cpp. References vuCamera::RestoreShot(). |
Here is the call graph for this function:
|
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:
|
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:
|
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:
|
Definition at line 533 of file vuCamera.cpp. |
|
Definition at line 721 of file vuCamera.cpp. |