-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcameraIDI.h
More file actions
45 lines (31 loc) · 804 Bytes
/
cameraIDI.h
File metadata and controls
45 lines (31 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef _CAMERAIDI_H_
#define _CAMERAIDI_H_
class cameraIDI;
#include <cmath>
#include "point.h"
#include "scene.h"
class cameraIDI{
float anglecam;
double anterior, posterior;
Point VRP;
double dist;
float angleX, angleY, angleZ;
float zoom;
public:
void iniciTGModelat();
void identitat();
void fiTGModelat();
void trasllada(float tx, float ty, float tz);
void escala(float sx, float sy, float sz);
void rota(float graus, float rx, float ry, float rz);
void resetCam();
void computeDefaultCamera( double radi, const Point& centreEscena);
void setModelview();
void setProjection(int width, int height);
void userRotate(double anglex, double angley);
void userZoom(double zoom);
private:
float rad2angle(float angle);
double radi;
};
#endif