Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94116254
camera.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Dec 4, 01:14
Size
924 B
Mime Type
text/x-c++
Expires
Fri, Dec 6, 01:14 (2 d)
Engine
blob
Format
Raw Data
Handle
22738530
Attached To
rSYMKIT symkit
camera.h
View Options
#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
Log In to Comment