26 #include "../Math_LIB/MInterpolator.h"
30 namespace OpenSkyNet {
32 enum CAMERA_EFFECT {
NO_CAMERA_EFFECT,
ZOOM,
TILT,
PAN,
ROLL,
FADE,
MAX_STATIC_CAMERA_EFFECT,
MOVE,
ORBIT,
PATH,
SHAKE,
MAX_MOVING_CAMERA_EFFECT };
54 _begin(begin_), _end(end_), _speed(speed_) {
85 _useForward(false), _useRot(false), _useAxisAngle(false) {}
90 _centerOfRot(centerOfRot_), _speed(speed_),
91 _useForward(true), _useRot(false), _useAxisAngle(false) {}
96 _centerOfRot(centerOfRot_), _speed(speed_),
97 _useForward(false), _useRot(true), _useAxisAngle(false) {}
102 _radians(radians_), _speed(speed_),
103 _useForward(false), _useRot(false), _useAxisAngle(true) {}
108 std::queue<CameraEffectData*> _q;
120 if (_currEffect)
delete _currEffect;
121 while (!_q.empty()) {
131 setHasAngVelChanged(
true);
136 virtual float getAspectRatio()
const = 0;
145 inline bool isBusy()
const {
return _isBusy; }
DIRECTOR_CAM
Definition: CCamera.h:33
CAMERA_EFFECT _type
Definition: CCamera.h:44
void setFadeColor(const Math::Point<> &fadeColor_)
Definition: CCamera.h:143
bool isBusy() const
Definition: CCamera.h:145
virtual void getAngVel(Math::Point<> &angVel_) const
Definition: CCamera.h:128
CameraEffectData(CAMERA_EFFECT type_)
Definition: CCamera.h:46
Math::Point _endPos
Definition: CCamera.h:64
Math::Point _centerOfRot
Definition: CCamera.h:73
MovingCameraEffectData(const Math::Point<> ¢erOfRot_, const Math::Point<> &axis_, float radians_, float speed_)
Definition: CCamera.h:99
Definition: MInterpolator.h:72
virtual ~Cinematographer()
Definition: CCamera.h:119
StaticCameraEffectData(CAMERA_EFFECT type_, float begin_, float end_, float speed_)
Definition: CCamera.h:52
virtual void setAngVel(const Math::Point<> &angVel_)
Definition: CCamera.h:129
float _speed
Definition: CCamera.h:78
MovingCameraEffectData(const Math::Point<> ¢erOfRot_, const Math::Point<> &endForward_, float speed_)
Definition: CCamera.h:87
float _radians
Definition: CCamera.h:76
#define CORE_DLL
Definition: CCoreDLL.h:57
CAMERA_EFFECT
Definition: CCamera.h:32
Math::Matrix3x3 _endRot
Definition: CCamera.h:61
float _speed
Definition: CCamera.h:50
bool _useRot
Definition: CCamera.h:81
Math::Point _endForward
Definition: CCamera.h:67
Definition: MMatrix3x3.h:32
Cinematographer()
Definition: CCamera.h:114
virtual Math::Point getAngVel() const
Definition: CCamera.h:127
Math::Point _axis
Definition: CCamera.h:70
MovingCameraEffectData(const Math::Point<> ¢erOfRot_, const Math::Matrix3x3 &endRot_, float speed_)
Definition: CCamera.h:93
MovingCameraEffectData(const Math::Point<> &endPos_, float speed_)
Definition: CCamera.h:83
Definition: CCameraUpdater.h:31
CameraEffectData()
Definition: CCamera.h:45