#include <CameraInstructions.h>
Inherits CameraInstructions.
Inheritance diagram for CameraInstructionMove:


Public Member Functions | |
| CameraInstructionMove (CameraAnimator *anim, Vec3f end, Vec3f dir, Vec3f up, float aperture, float distance, unsigned int depthsamples, unsigned int framesleft, unsigned int camnum) | |
| virtual | ~CameraInstructionMove () |
| virtual void | execute () |
Private Attributes | |
| Vec3f | mEndPos |
| the position after the move | |
| Vec3f | mEndDir |
| the direction after the move | |
| Vec3f | mEndUp |
| the up vector after the move | |
| float | mEndAperture |
| the aperture after the move | |
| float | mEndFocusDistance |
| the focus distance after the move | |
| unsigned int | mEndDepthSamples |
| the number of depth samples after the move | |
| unsigned int | mFramesLeft |
| the number of frames left in this move | |
| unsigned int | mCameraNumber |
| the camera number | |
| Matrix | mDirMatrix |
| the matrix for calculating the directory change | |
| Matrix | mUpMatrix |
| the matrix for calculating the up vector change | |
| bool | mRuned |
| bool for checking if we run already, for setting up the matrizes | |
Definition at line 38 of file CameraInstructions.h.
| CameraInstructionMove::CameraInstructionMove | ( | CameraAnimator * | anim, | |
| Vec3f | end, | |||
| Vec3f | dir, | |||
| Vec3f | up, | |||
| float | aperture, | |||
| float | distance, | |||
| unsigned int | depthsamples, | |||
| unsigned int | framesleft, | |||
| unsigned int | camnum | |||
| ) |
Constructor
| anim | The animator pointer | |
| end | The ending position | |
| dir | the ending direction | |
| up | the ending up vector | |
| aperture | the ending aperture | |
| distance | the ending distance | |
| depthsamples | the number of samples at the end of the animation | |
| framesleft | the number of frames the animation should last | |
| camnum | the number of the camera |
Definition at line 7 of file CameraInstructions.cpp.
| virtual CameraInstructionMove::~CameraInstructionMove | ( | ) | [inline, virtual] |
Definition at line 54 of file CameraInstructions.h.
| void CameraInstructionMove::execute | ( | ) | [virtual] |
ececutes the move and increments the pc if no frames are left
Implements CameraInstructions.
Definition at line 23 of file CameraInstructions.cpp.
References CameraInstructions::animator, Camera::aperture(), Vec3f::cross(), Camera::depthSamples(), Camera::dir(), Vec3f::dot(), EPSILON, Camera::focusDistance(), LOG, mCameraNumber, CameraAnimator::mCameras, mDirMatrix, mEndAperture, mEndDepthSamples, mEndDir, mEndFocusDistance, mEndPos, mEndUp, mFramesLeft, CameraAnimator::mPC, mRuned, mUpMatrix, Vec3f::normal(), Camera::pos(), Camera::setAperture(), Camera::setDepthSamples(), Camera::setDir(), Camera::setFocusDistance(), Camera::setPos(), Camera::setUp(), Matrix::transformVector(), and Camera::up().
Vec3f CameraInstructionMove::mEndPos [private] |
the position after the move
Definition at line 62 of file CameraInstructions.h.
Referenced by execute().
Vec3f CameraInstructionMove::mEndDir [private] |
the direction after the move
Definition at line 63 of file CameraInstructions.h.
Referenced by execute().
Vec3f CameraInstructionMove::mEndUp [private] |
the up vector after the move
Definition at line 64 of file CameraInstructions.h.
Referenced by execute().
float CameraInstructionMove::mEndAperture [private] |
the aperture after the move
Definition at line 65 of file CameraInstructions.h.
Referenced by execute().
float CameraInstructionMove::mEndFocusDistance [private] |
the focus distance after the move
Definition at line 66 of file CameraInstructions.h.
Referenced by execute().
unsigned int CameraInstructionMove::mEndDepthSamples [private] |
the number of depth samples after the move
Definition at line 67 of file CameraInstructions.h.
Referenced by execute().
unsigned int CameraInstructionMove::mFramesLeft [private] |
the number of frames left in this move
Definition at line 68 of file CameraInstructions.h.
Referenced by execute().
unsigned int CameraInstructionMove::mCameraNumber [private] |
Matrix CameraInstructionMove::mDirMatrix [private] |
the matrix for calculating the directory change
Definition at line 70 of file CameraInstructions.h.
Referenced by execute().
Matrix CameraInstructionMove::mUpMatrix [private] |
the matrix for calculating the up vector change
Definition at line 71 of file CameraInstructions.h.
Referenced by execute().
bool CameraInstructionMove::mRuned [private] |
bool for checking if we run already, for setting up the matrizes
Definition at line 72 of file CameraInstructions.h.
Referenced by execute().
1.5.1