CameraAnimator Class Reference

#include <CameraAnimator.h>

List of all members.

Public Member Functions

 CameraAnimator (std::string filename)
 ~CameraAnimator ()
Cameraanimate ()

Private Member Functions

void parse (std::string filename)

Private Attributes

unsigned int mActCam
 the active camera number
unsigned int mPC
 the next instruction
std::vector< CameraInstructions * > mInstructions
 vector for all instructions
std::vector< Camera * > mCameras
 vector for all cameras

Friends

class CameraInstructionMove
class CameraInstructionSet
class CameraInstructionNormal
class CameraInstructionStay


Detailed Description

Animates cameras as described in a file
Author:
Christian Engels

Definition at line 17 of file CameraAnimator.h.


Constructor & Destructor Documentation

CameraAnimator::CameraAnimator ( std::string  filename  )  [inline]

Constructor

Definition at line 27 of file CameraAnimator.h.

References parse().

CameraAnimator::~CameraAnimator (  )  [inline]

Destructor

Definition at line 39 of file CameraAnimator.h.

References mCameras, and mInstructions.


Member Function Documentation

Camera* CameraAnimator::animate (  )  [inline]

does one animation step and returns the animated camera

Definition at line 49 of file CameraAnimator.h.

References LOG, mActCam, mCameras, mInstructions, and mPC.

Referenced by Renderer::renderAnimated().

void CameraAnimator::parse ( std::string  filename  )  [inline, private]

a parser for the animation file

Definition at line 65 of file CameraAnimator.h.

References CameraInstructionMove, CameraInstructionNormal, CameraInstructionSet, CameraInstructionStay, DepthOfFieldCameraFactory::create(), PerspectiveCameraFactory::create(), LOG, mCameras, and mInstructions.

Referenced by CameraAnimator().


Friends And Related Function Documentation

friend class CameraInstructionMove [friend]

Definition at line 19 of file CameraAnimator.h.

Referenced by parse().

friend class CameraInstructionSet [friend]

Definition at line 20 of file CameraAnimator.h.

Referenced by parse().

friend class CameraInstructionNormal [friend]

Definition at line 21 of file CameraAnimator.h.

Referenced by parse().

friend class CameraInstructionStay [friend]

Definition at line 22 of file CameraAnimator.h.

Referenced by parse().


Member Data Documentation

unsigned int CameraAnimator::mActCam [private]

the active camera number

Definition at line 198 of file CameraAnimator.h.

Referenced by animate(), and CameraInstructionSet::execute().

unsigned int CameraAnimator::mPC [private]

the next instruction

Definition at line 199 of file CameraAnimator.h.

Referenced by animate(), CameraInstructionStay::execute(), CameraInstructionNormal::execute(), CameraInstructionSet::execute(), and CameraInstructionMove::execute().

std::vector<CameraInstructions*> CameraAnimator::mInstructions [private]

vector for all instructions

Definition at line 200 of file CameraAnimator.h.

Referenced by animate(), parse(), and ~CameraAnimator().

std::vector<Camera*> CameraAnimator::mCameras [private]

vector for all cameras

Definition at line 201 of file CameraAnimator.h.

Referenced by animate(), CameraInstructionMove::execute(), parse(), and ~CameraAnimator().


The documentation for this class was generated from the following file:
Generated on Fri Feb 1 00:02:12 2008 for Grayfall by  doxygen 1.5.1