#include <CameraAnimator.h>
Public Member Functions | |
| CameraAnimator (std::string filename) | |
| ~CameraAnimator () | |
| Camera * | animate () |
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 |
Definition at line 17 of file CameraAnimator.h.
| CameraAnimator::CameraAnimator | ( | std::string | filename | ) | [inline] |
| CameraAnimator::~CameraAnimator | ( | ) | [inline] |
| 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().
friend class CameraInstructionMove [friend] |
friend class CameraInstructionSet [friend] |
friend class CameraInstructionNormal [friend] |
friend class CameraInstructionStay [friend] |
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().
1.5.1