Main Page   Class Hierarchy   Compound List   File List   Compound Members  

camera Class Reference

Hold location, orientation, and mode of the viewer. More...

#include <camera.hpp>

Inheritance diagram for camera:

movable List of all members.

Public Types

enum  mode {
  FREE, FREEORIENTED, CENTERED, CENTERORIENTED,
  FOLLOW, DELAY
}

Public Methods

 camera (void)
 camera (string name, mode lookMode=FREE)
 ~camera ()
void init ()
void draw ()
void update ()
void move (int pitch, int turn, int roll, float x, float y, float z)
void look (void)

Public Attributes

float radius
matrix16f delay [20]
 the most recent center locations, the camera follows the last.

matrix16f other
 extra matrix needed for follow mode.

matrix16fcenter
 Location for camera to spin around.

vector3f centerPoint
vector3f angles
mode lookMode

Detailed Description

Hold location, orientation, and mode of the viewer.

Also some experimental modes of movement like following a given object, and following that objects every rotation, same with a delay, or just tracking the object without rotating with it.


The documentation for this class was generated from the following files:
Generated on Sat May 10 10:09:36 2003 for volume-src-limited by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002