Camera Class Reference

#include <Camera.h>

Inheritance diagram for Camera:

Inheritance graph
[legend]
Collaboration diagram for Camera:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Camera (int width_in, int height_in, float fov_in=60, float nearclip_in=0.1, float farclip_in=2000.0, int type_in=CAMERA_FREE)
 Camera ()
 ~Camera ()
void control (int controllerId, int motionId, float value)
void setSize (int width_in, int height_in)
void setFOV (float fov_in)
void setAspect (float aspect_in)
void setAspect (int screen_w, int screen_h)
void setPosition (const XYZ &pos)
void setRotation (const XYZ &pos)
void setTarget (const XYZ &pos)
void bindTarget (SceneObject *sceneObj)
void trackTarget (float trackingSpeed, float safeDistance)
void moveViewRelative (XYZ &pt, float xdelta, float zdelta)
btVector3 getRayTo (int x, int y)
Vector getRay (int x, int y)
void setClip (float near_in, float far_in)
void setType (int type_in)
void setup ()

Public Attributes

unsigned short type
double fov
double aspect
double nearclip
double farclip
int width
int height
float projectionMatrix [16]
float viewMatrix [16]
XYZ position
XYZ rotation
XYZ target
Vector up
Vector right
SceneObjectsceneObjTarget

Static Public Attributes

static CameralastActive = NULL


Constructor & Destructor Documentation

Camera::Camera ( int  width_in,
int  height_in,
float  fov_in = 60,
float  nearclip_in = 0.1,
float  farclip_in = 2000.0,
int  type_in = CAMERA_FREE 
)

Here is the call graph for this function:

Camera::Camera (  ) 

Here is the call graph for this function:

Camera::~Camera (  ) 


Member Function Documentation

void Camera::control ( int  controllerId,
int  motionId,
float  value 
) [virtual]

Implements Controllable.

void Camera::setSize ( int  width_in,
int  height_in 
)

void Camera::setFOV ( float  fov_in  ) 

void Camera::setAspect ( float  aspect_in  ) 

void Camera::setAspect ( int  screen_w,
int  screen_h 
)

void Camera::setPosition ( const XYZ pos  ) 

void Camera::setRotation ( const XYZ pos  ) 

void Camera::setTarget ( const XYZ pos  ) 

void Camera::bindTarget ( SceneObject sceneObj  ) 

void Camera::trackTarget ( float  trackingSpeed,
float  safeDistance 
)

Here is the call graph for this function:

void Camera::moveViewRelative ( XYZ pt,
float  xdelta,
float  zdelta 
)

btVector3 Camera::getRayTo ( int  x,
int  y 
)

Here is the call graph for this function:

Vector Camera::getRay ( int  x,
int  y 
)

Here is the call graph for this function:

void Camera::setClip ( float  near_in,
float  far_in 
)

void Camera::setType ( int  type_in  ) 

void Camera::setup (  ) 

Here is the call graph for this function:


Member Data Documentation

unsigned short Camera::type

double Camera::fov

Camera * Camera::lastActive = NULL [static]

float Camera::viewMatrix[16]


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

Generated on Thu Mar 19 19:35:12 2009 for CubicVR by  doxygen 1.5.6