Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Camera Class Reference

#include <Camera.h>

Collaboration diagram for Camera:

[legend]
List of all members.

Public Methods

 Camera ()
virtual ~Camera ()
void positionCamera (double position[], double view[], double upVector[])
void positionCamera (Vector3 position, Vector3 view, Vector3 upVector)
void checkForMovement ()
void rotateView (double angle, double x, double y, double z)
void setViewFromMouse ()
void moveCamera (double speed)
void strafeCamera (double speed)
void walk (double speed)
void update ()
void increaseSpeed ()
void decreaseSpeed ()
Vector3 getPosition ()
double getPositionX ()
void setPositionX (double t)
double getPositionY ()
double getPositionZ ()
Vector3 getView ()
double getViewX ()
double getViewY ()
double getViewZ ()
Vector3 getUpVector ()
double getUpVectorX ()
double getUpVectorY ()
double getUpVectorZ ()
Vector3 getStrafe ()
void setPositionY (double y)
void setViewY (double y)
void setFocus (Object *o)

Static Public Methods

void positionCamera (double p1, double p2, double p3, double v1, double v2, double v3, double u1, double u2, double u3)
void look ()
void setScreenSize (int width, int height)
double getCurrentFPS ()
double getSpeed ()

Protected Methods

void init ()
void reFocus ()

Protected Attributes

Vector3 _strafe
Vector3 _walk
double _currentRotationX
Object_focus

Static Protected Attributes

Vector3 _position
Vector3 _view
Vector3 _upVector
double _speed = 0.0
double _fps = 0.0
int _screenWidth = 800
int _screenHeight = 600

Constructor & Destructor Documentation

Camera::Camera  
 

Camera::~Camera   [virtual]
 


Member Function Documentation

void Camera::checkForMovement  
 

Check for movement based on the keyboard input

void Camera::decreaseSpeed   [inline]
 

double Camera::getCurrentFPS   [inline, static]
 

Vector3 Camera::getPosition   [inline]
 

double Camera::getPositionX   [inline]
 

double Camera::getPositionY   [inline]
 

double Camera::getPositionZ   [inline]
 

double Camera::getSpeed   [inline, static]
 

Vector3 Camera::getStrafe   [inline]
 

Vector3 Camera::getUpVector   [inline]
 

double Camera::getUpVectorX   [inline]
 

double Camera::getUpVectorY   [inline]
 

double Camera::getUpVectorZ   [inline]
 

Vector3 Camera::getView   [inline]
 

double Camera::getViewX   [inline]
 

double Camera::getViewY   [inline]
 

double Camera::getViewZ   [inline]
 

void Camera::increaseSpeed   [inline]
 

void Camera::init   [protected]
 

Initialize our variables

void Camera::look   [static]
 

Call glLookAt

void Camera::moveCamera double    speed
 

moves the camera forward and backward

void Camera::positionCamera double    p1,
double    p2,
double    p3,
double    v1,
double    v2,
double    v3,
double    u1,
double    u2,
double    u3
[static]
 

void Camera::positionCamera Vector3    position,
Vector3    view,
Vector3    upVector
 

void Camera::positionCamera double    position[],
double    view[],
double    upVector[]
 

Changes the position, view, and upVector of the camera

void Camera::reFocus   [protected]
 

Follow our focus character

void Camera::rotateView double    angle,
double    x,
double    y,
double    z
 

rotate the view around a position

void Camera::setFocus Object   o [inline]
 

void Camera::setPositionX double    t [inline]
 

void Camera::setPositionY double    y [inline]
 

void Camera::setScreenSize int    width,
int    height
[inline, static]
 

void Camera::setViewFromMouse  
 

move the camera based on the mouse

void Camera::setViewY double    y [inline]
 

void Camera::strafeCamera double    speed
 

strafes the camera left and right

void Camera::update  
 

Update the camera's data

void Camera::walk double    speed
 

walks the camera forward and backward


Member Data Documentation

double Camera::_currentRotationX [protected]
 

Object* Camera::_focus [protected]
 

double Camera::_fps = 0.0 [static, protected]
 

Vector3 Camera::_position [static, protected]
 

int Camera::_screenHeight = 600 [static, protected]
 

int Camera::_screenWidth = 800 [static, protected]
 

double Camera::_speed = 0.0 [static, protected]
 

Vector3 Camera::_strafe [protected]
 

Vector3 Camera::_upVector [static, protected]
 

Vector3 Camera::_view [static, protected]
 

Vector3 Camera::_walk [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Apr 21 11:11:08 2004 for naturecalls by doxygen1.2.18