-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gesture.h
49 lines (36 loc) · 884 Bytes
/
Gesture.h
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
46
47
48
49
#ifndef GESTURE_H_INCLUDED
#define GESTURE_H_INCLUDED
#include <vector>
class Gesture
{
public:
struct Point
{
int x;
int y;
};
Gesture(int cutoff, int width, int height);
~Gesture();
void Recreate(int cutoff, int width, int height); // Redefine the attributes.
// ACCESSORS
int GetWidth();
int GetHeight();
int GetCutoff();
std::vector<Point*>& GetPoints(); // Return a reference to the point container.
Gesture::Point* GetPoint(int pointNumber); // Return specific point.
Gesture::Point* GetPoint(); // Return last point.
int GetEnabled(); // Returns whether gesture is enabled.
// MUTATORS
void SetWidth(int value);
void SetHeight(int value);
void SetCutoff(int value);
void SetEnabled(int enable);
private:
std::vector<Point*> m_points;
// Attributes.
int m_width, m_height;
int m_cutoff;
int m_percent;
int m_enabled;
};
#endif