xoreos  0.0.5
Public Member Functions | Private Attributes | List of all members
Engines::SatelliteCamera Class Reference

#include <satellitecamera.h>

Inheritance diagram for Engines::SatelliteCamera:
Inheritance graph
[legend]
Collaboration diagram for Engines::SatelliteCamera:
Collaboration graph
[legend]

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 ()
 

Detailed Description

Definition at line 36 of file satellitecamera.h.

Constructor & Destructor Documentation

◆ SatelliteCamera()

Engines::SatelliteCamera::SatelliteCamera ( )

Definition at line 37 of file satellitecamera.cpp.

Member Function Documentation

◆ clearInput()

void Engines::SatelliteCamera::clearInput ( )

Definition at line 133 of file satellitecamera.cpp.

References _leftBtnPressed, and _rightBtnPressed.

◆ getYaw()

float Engines::SatelliteCamera::getYaw ( ) const

Definition at line 79 of file satellitecamera.cpp.

References _yaw.

◆ handleCameraInput()

bool Engines::SatelliteCamera::handleCameraInput ( const Events::Event e)

◆ setDistance()

void Engines::SatelliteCamera::setDistance ( float  value)

Definition at line 56 of file satellitecamera.cpp.

References _dirty, and _distance.

◆ setHeight()

void Engines::SatelliteCamera::setHeight ( float  value)

Definition at line 69 of file satellitecamera.cpp.

References _dirty, and _height.

◆ setPitch()

void Engines::SatelliteCamera::setPitch ( float  value)

Definition at line 61 of file satellitecamera.cpp.

References _dirty, _pitch, _pitchCos, _pitchSin, and Common::deg2rad().

Here is the call graph for this function:

◆ setTarget()

void Engines::SatelliteCamera::setTarget ( float  x,
float  y,
float  z 
)

Definition at line 49 of file satellitecamera.cpp.

References _dirty, and _target.

◆ setYaw()

void Engines::SatelliteCamera::setYaw ( float  value)

Definition at line 74 of file satellitecamera.cpp.

References _dirty, and _yaw.

◆ update()

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().

Here is the call graph for this function:

Member Data Documentation

◆ _dirty

bool Engines::SatelliteCamera::_dirty
private

Definition at line 61 of file satellitecamera.h.

Referenced by setDistance(), setHeight(), setPitch(), setTarget(), setYaw(), and update().

◆ _distance

float Engines::SatelliteCamera::_distance
private

Definition at line 53 of file satellitecamera.h.

Referenced by setDistance(), and update().

◆ _height

float Engines::SatelliteCamera::_height
private

Definition at line 58 of file satellitecamera.h.

Referenced by setHeight(), and update().

◆ _leftBtnPressed

bool Engines::SatelliteCamera::_leftBtnPressed
private

Definition at line 59 of file satellitecamera.h.

Referenced by clearInput(), handleCameraInput(), and update().

◆ _pitch

float Engines::SatelliteCamera::_pitch
private

Definition at line 55 of file satellitecamera.h.

Referenced by setPitch(), and update().

◆ _pitchCos

float Engines::SatelliteCamera::_pitchCos
private

Definition at line 57 of file satellitecamera.h.

Referenced by setPitch().

◆ _pitchSin

float Engines::SatelliteCamera::_pitchSin
private

Definition at line 56 of file satellitecamera.h.

Referenced by setPitch().

◆ _rightBtnPressed

bool Engines::SatelliteCamera::_rightBtnPressed
private

Definition at line 60 of file satellitecamera.h.

Referenced by clearInput(), handleCameraInput(), and update().

◆ _target

glm::vec3 Engines::SatelliteCamera::_target
private

Definition at line 52 of file satellitecamera.h.

Referenced by setTarget(), and update().

◆ _yaw

float Engines::SatelliteCamera::_yaw
private

Definition at line 54 of file satellitecamera.h.

Referenced by getYaw(), setYaw(), and update().


The documentation for this class was generated from the following files: