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

Camera Class Reference

#include <Camera.h>

Inheritance diagram for Camera:

scCamera

List of all members.


Public Members

 Camera ()
Void SetClipping (GCLReal nearPlane, GCLReal farPlane)
Void SetFOV (GCLReal fieldOfView)
Void SetAspect (GCLReal aspect)
Void SetScale (GCLReal scale)
Void SetView (const Point &eyePoint, const Quaternion &orientation)
Void SetViewDir (const Point &pos, const Vector &dir)
Void SetLookAt (const Point &pos, const Point &at)
Void SetModelCentric (const Coord &rot, const Vector &trans)
Void SetViewUp (Vector up)
Void SetupViewDir ()
Void SetupLookAt ()
Void SetupModelCentric ()
Void GetViewDirParams ()
Void GetLookAtParams ()
Void GetModelCentricParams ()
virtual Void PrintAvars (Bool animFormat = false)
virtual Bool CheckAvar (StrConst avarName, GCLReal avarVal)
virtual Void SetupFromParams ()
virtual Transform ProjMatrix () const
virtual Transform ModelMatrix () const
Int model
Point position
location of camera.

Quaternion orient
orientation of camera.

GCLReal scale
scale of camera c.f. scene.

GCLReal clipNear
GCLReal clipFar
near and far clipping planes.

GCLReal fov
field of view in degrees.

GCLReal aspect
aspect ratio.

Int lhand
left handed coordinate system?

Point up
up vector, normalised.

Vector viewDir
viewing direction.

Point lookAt
look-at point.

Point modelCentre
Point trans
Coord rot

Detailed Description

Definition at line 20 of file Camera.h.


Constructor & Destructor Documentation

Camera::Camera ()

Definition at line 19 of file Camera.cc.


Member Function Documentation

Bool Camera::CheckAvar (StrConst avarName, GCLReal avarVal) [virtual]

Definition at line 247 of file Camera.cc.

Void Camera::GetLookAtParams ()

Definition at line 151 of file Camera.cc.

Void Camera::GetModelCentricParams ()

Definition at line 157 of file Camera.cc.

Void Camera::GetViewDirParams ()

Definition at line 143 of file Camera.cc.

Transform Camera::ModelMatrix () const [virtual]

Definition at line 174 of file Camera.cc.

Void Camera::PrintAvars (Bool animFormat = false) [virtual]

Definition at line 210 of file Camera.cc.

Transform Camera::ProjMatrix () const [virtual]

Definition at line 179 of file Camera.cc.

Void Camera::SetAspect (GCLReal aspectRatio)

Definition at line 51 of file Camera.cc.

Void Camera::SetClipping (GCLReal nearPlane, GCLReal farPlane)

Definition at line 40 of file Camera.cc.

Void Camera::SetFOV (GCLReal fieldOfView)

Definition at line 46 of file Camera.cc.

Void Camera::SetLookAt (const Point & pos, const Point & at)

Definition at line 62 of file Camera.cc.

Void Camera::SetModelCentric (const Coord & r, const Vector & t)

Definition at line 82 of file Camera.cc.

Void Camera::SetScale (GCLReal newScale)

Definition at line 89 of file Camera.cc.

Void Camera::SetView (const Point & eyePoint, const Quaternion & q)

Definition at line 56 of file Camera.cc.

Void Camera::SetViewDir (const Point & p, const Vector & dir)

Definition at line 69 of file Camera.cc.

Void Camera::SetViewUp (Vector vup)

Definition at line 76 of file Camera.cc.

Void Camera::SetupFromParams () [virtual]

Definition at line 301 of file Camera.cc.

Void Camera::SetupLookAt ()

Definition at line 117 of file Camera.cc.

Void Camera::SetupModelCentric ()

Definition at line 123 of file Camera.cc.

Void Camera::SetupViewDir ()

Definition at line 96 of file Camera.cc.


Member Data Documentation

GCLReal Camera::aspect

aspect ratio.

Definition at line 70 of file Camera.h.

GCLReal Camera::clipFar

near and far clipping planes.

Definition at line 68 of file Camera.h.

GCLReal Camera::clipNear

Definition at line 68 of file Camera.h.

GCLReal Camera::fov

field of view in degrees.

Definition at line 69 of file Camera.h.

Int Camera::lhand

left handed coordinate system?

Definition at line 71 of file Camera.h.

Point Camera::lookAt

look-at point.

Definition at line 76 of file Camera.h.

Int Camera::model

Definition at line 62 of file Camera.h.

Point Camera::modelCentre

Definition at line 79 of file Camera.h.

Quaternion Camera::orient

orientation of camera.

Definition at line 66 of file Camera.h.

Point Camera::position

location of camera.

Definition at line 65 of file Camera.h.

Coord Camera::rot

Definition at line 81 of file Camera.h.

GCLReal Camera::scale

scale of camera c.f. scene.

Definition at line 67 of file Camera.h.

Point Camera::trans

Definition at line 80 of file Camera.h.

Point Camera::up

up vector, normalised.

Definition at line 74 of file Camera.h.

Vector Camera::viewDir

viewing direction.

Definition at line 75 of file Camera.h.


The documentation for this class was generated from the following files:
Generated at Sat Aug 5 00:17:05 2000 for Graphics Class Library by doxygen 1.1.0 written by Dimitri van Heesch, © 1997-2000