-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaserpointer.h
More file actions
42 lines (31 loc) · 905 Bytes
/
laserpointer.h
File metadata and controls
42 lines (31 loc) · 905 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
#ifndef LASERPOINTER_H
#define LASERPOINTER_H
#include <algorithm>
#include <vector>
#include <iterator>
#include <QtGlobal>
#include <QPointF>
#include <QRectF>
#include "observedsubject.h"
class Laserpointer : public ObservedSubject
{
public:
Laserpointer();
~Laserpointer();
void notifyObservers();
QPointF getAngles(){return angles;}
void setAngles(QPointF angles);
void setAngleX(qreal x);
void setAngleY(qreal y);
void setMinMaxAngles(QRectF minMaxAngles);
QRectF getMinMaxAngles(){return minMaxAngles;}
void setLaserMode(LaserMode laserMode);
LaserMode getLaserMode(){return laserMode;}
void setCalibrationAngles(QPointF *calibrationAngles);
private:
QPointF angles;
QRectF minMaxAngles;
LaserMode laserMode;
std::vector<QPointF> calibrationAngles; //Topleft, topright, bottomright, bottomleft
};
#endif // LASERPOINTER_H