CCameraBase Class Reference

Camera base class. More...

#include <cameraBase.h>

Inheritance diagram for CCameraBase:

CCameraFirst CCameraFree CCameraThird CCameraOrbit

List of all members.

Public Member Functions

virtual void update (CCameraTarget &target)
 Update the camera.
eCameraType type () const
 
Returns:
Camera type.

Create methods
 CCameraBase ()
 Default constructor.
Set/Get methods
void set_vec (const CVector3D &vec)
 
Parameters:
vec New position.

void set_x (unit x)
 
Parameters:
x New position x value.

void set_y (unit y)
 
Parameters:
y New position y value.

void set_z (unit z)
 
Parameters:
z New position z value.

void set_ang (const CVector3D &ang)
 
Parameters:
ang New rotation.

void set_pan (unit pan)
 
Parameters:
pan New rotation pan value.

void set_tilt (unit tilt)
 
Parameters:
tilt New rotation tilt value.

void set_roll (unit roll)
 
Parameters:
roll New rotation roll value.

const CVector3Dget_pos () const
 
Returns:
The current position.

unit get_x () const
 
Returns:
The current position x value.

unit get_y () const
 
Returns:
The current position y value.

unit get_z () const
 
Returns:
The current position z value.

const CAngle3Dget_ang () const
 
Returns:
The current rotation.

unit get_pan () const
 
Returns:
The current rotation pan value.

unit get_tilt () const
 
Returns:
The current rotation tilt value.

unit get_roll () const
 
Returns:
The current rotation roll value.


Protected Attributes

CVector3D m_vecPos
 camera's position
CAngle3D m_ang
 camera's angle
eCameraType eType
 used to identify the camera type


Detailed Description

Camera base class.

(c) 2007-2008 oP group Germany GbR. All rights reserved.
This source code is provided "as is" with no warranty and must not be distributed without written permission.

Author:
Doug Poston
Version:
1.3
Date:
12/28/2007

Member Function Documentation

virtual void CCameraBase::update ( CCameraTarget target  )  [inline, virtual]

Update the camera.

Note:
Call this once a frame.
Parameters:
target Focus of the camera (normally the player).

Reimplemented in CCameraFirst, CCameraFree, CCameraOrbit, and CCameraThird.


The documentation for this class was generated from the following file:
Generated on Fri Dec 28 12:55:07 2007 for template7 by  doxygen 1.5.4