2017-02-02 17:01:08 +00:00
|
|
|
#pragma once
|
|
|
|
#include "CameraInterface.h"
|
|
|
|
|
|
|
|
|
|
|
|
class MoveCamera : public CameraInterface
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit MoveCamera();
|
|
|
|
virtual ~MoveCamera();
|
|
|
|
|
|
|
|
// attributes
|
|
|
|
private:
|
2017-02-05 11:34:24 +00:00
|
|
|
QVector3D m_position;
|
|
|
|
double m_phi;
|
|
|
|
double m_theta;
|
|
|
|
int m_forwardSpeed;
|
|
|
|
int m_sidewardSpeed;
|
2017-02-02 17:01:08 +00:00
|
|
|
|
|
|
|
// functions
|
|
|
|
public:
|
|
|
|
virtual void rotateAction(QVector2D diff) Q_DECL_OVERRIDE;
|
|
|
|
virtual void moveAction(QVector2D diff) Q_DECL_OVERRIDE;
|
|
|
|
virtual void wheelAction(double value) Q_DECL_OVERRIDE;
|
|
|
|
virtual void recalculateMatrix() Q_DECL_OVERRIDE;
|
|
|
|
virtual void resetView() Q_DECL_OVERRIDE;
|
|
|
|
};
|