|
xoreos
0.0.5
|
#include <satellitecamera.h>


Public Member Functions | |
| SatelliteCamera () | |
| void | setTarget (float x, float y, float z) |
| void | setDistance (float value) |
| void | setPitch (float value) |
| void | setHeight (float value) |
| void | setYaw (float value) |
| float | getYaw () const |
| bool | handleCameraInput (const Events::Event &e) |
| void | update (float dt) |
| void | clearInput () |
Private Attributes | |
| glm::vec3 | _target |
| float | _distance |
| float | _yaw |
| float | _pitch |
| float | _pitchSin |
| float | _pitchCos |
| float | _height |
| bool | _leftBtnPressed |
| bool | _rightBtnPressed |
| bool | _dirty |
Additional Inherited Members | |
Static Public Member Functions inherited from Common::Singleton< SatelliteCamera > | |
| static SatelliteCamera & | instance () |
| static void | destroy () |
Protected Types inherited from Common::Singleton< SatelliteCamera > | |
| typedef SatelliteCamera | SingletonBaseType |
Protected Member Functions inherited from Common::Singleton< SatelliteCamera > | |
| Singleton () | |
| virtual | ~Singleton () |
Definition at line 36 of file satellitecamera.h.
| Engines::SatelliteCamera::SatelliteCamera | ( | ) |
Definition at line 37 of file satellitecamera.cpp.
| void Engines::SatelliteCamera::clearInput | ( | ) |
Definition at line 133 of file satellitecamera.cpp.
References _leftBtnPressed, and _rightBtnPressed.
| float Engines::SatelliteCamera::getYaw | ( | ) | const |
Definition at line 79 of file satellitecamera.cpp.
References _yaw.
| bool Engines::SatelliteCamera::handleCameraInput | ( | const Events::Event & | e | ) |
Definition at line 83 of file satellitecamera.cpp.
References _leftBtnPressed, _rightBtnPressed, Events::kEventKeyDown, and Events::kEventKeyUp.
| void Engines::SatelliteCamera::setDistance | ( | float | value | ) |
Definition at line 56 of file satellitecamera.cpp.
| void Engines::SatelliteCamera::setHeight | ( | float | value | ) |
Definition at line 69 of file satellitecamera.cpp.
| void Engines::SatelliteCamera::setPitch | ( | float | value | ) |
Definition at line 61 of file satellitecamera.cpp.
References _dirty, _pitch, _pitchCos, _pitchSin, and Common::deg2rad().

| void Engines::SatelliteCamera::setTarget | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) |
Definition at line 49 of file satellitecamera.cpp.
| void Engines::SatelliteCamera::setYaw | ( | float | value | ) |
Definition at line 74 of file satellitecamera.cpp.
| void Engines::SatelliteCamera::update | ( | float | dt | ) |
Definition at line 108 of file satellitecamera.cpp.
References _dirty, _distance, _height, _leftBtnPressed, _pitch, _rightBtnPressed, _target, _yaw, CameraMan, Engines::kRotationSpeed, M_PI, and Common::rad2deg().

|
private |
Definition at line 61 of file satellitecamera.h.
Referenced by setDistance(), setHeight(), setPitch(), setTarget(), setYaw(), and update().
|
private |
Definition at line 53 of file satellitecamera.h.
Referenced by setDistance(), and update().
|
private |
Definition at line 58 of file satellitecamera.h.
Referenced by setHeight(), and update().
|
private |
Definition at line 59 of file satellitecamera.h.
Referenced by clearInput(), handleCameraInput(), and update().
|
private |
Definition at line 55 of file satellitecamera.h.
Referenced by setPitch(), and update().
|
private |
Definition at line 57 of file satellitecamera.h.
Referenced by setPitch().
|
private |
Definition at line 56 of file satellitecamera.h.
Referenced by setPitch().
|
private |
Definition at line 60 of file satellitecamera.h.
Referenced by clearInput(), handleCameraInput(), and update().
|
private |
Definition at line 52 of file satellitecamera.h.
Referenced by setTarget(), and update().
|
private |
Definition at line 54 of file satellitecamera.h.
1.8.14