Page MenuHomec4science

camera.h
No OneTemporary

File Metadata

Created
Wed, Dec 4, 01:14

camera.h

#ifndef __CAMERA_H__
#define __CAMERA_H__
#include "svector.h"
#include <QMatrix4x4>
enum Axys
{
X = 0, Y, Z
};
class Camera
{
public:
Camera();
~Camera();
// TODO Member access functions
// Accesseurs
SVector<3> getPosition() const;
void move(const SVector<3>&);
void move(float, Axys);
void rotate(float, Axys);
// get position relative to the axys
const double& get(Axys);
// get the angles relative to the camera view
const double& verticalAngle() const;
const double& horizontalAngle() const;
void home();
/* It determines the result from the view matrix and an other one passed as argument */
QMatrix4x4 resolve(const QMatrix4x4&);
private:
SVector<3> position;
SVector<2> angles;
// TODO OpenGL portview specifics
QMatrix4x4 matrix;
//QMatrix4x4 translationMatrix;
//QMatrix4x4 rotationMatrix;
};
#endif

Event Timeline