-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcamera.h
More file actions
29 lines (24 loc) · 709 Bytes
/
camera.h
File metadata and controls
29 lines (24 loc) · 709 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
#ifndef CAMERA_H
#define CAMERA_H
#include <QObject>
#include "types.h"
#include "geometry.h"
class Camera
{
public:
Camera() {}
Camera(Point position, tilt_t tilt, fov_t fov);
const fov_t get_fov() const { return this->fov; }
Point &get_position() {return this->position; }
const tilt_t get_tilt() const {return tilt; }
void set_tilt(tilt_t tilt) {this->tilt = tilt; }
void set_position(Point position) {this->position = position; }
void move(double step_x=0, double step_y=0, double step_z=0);
void rotate(double step_x=0, double step_y=0, double step_z=0);
void to_standart();
private:
Point position;
tilt_t tilt;
fov_t fov;
};
#endif // CAMERA_H