Webcam Tracker  V1.0
Using openCV and an Arduino Uno
Menu.h
Go to the documentation of this file.
1 
8 #pragma once
9 
10 #include <opencv2/highgui.hpp>
11 #include <opencv2/core/core.hpp>
12 #include <opencv2/features2d/features2d.hpp>
13 #include <opencv2/imgproc.hpp>
14 
15 #include "Button.h"
16 
17 using namespace std;
18 
22 class Menu
23 {
24 private:
25  cv::Mat img;
26  vector<Button>buttons;
27 
28 public:
30  Menu();
31 
34  Menu(cv::Size size);
35 
41  void addButton(cv::Point startPoint, int height, cv::String text);
42 
46  cv::Mat draw();
47 
51  void checkClicks(int x, int y);
52 
55  vector<Button>* getButtons();
56 };
header file of the Button class
Menu like structure with clickable buttons. Member of GUI classes Graphic group.
Definition: Menu.h:23
cv::Mat img
Image matrix of the menu.
Definition: Menu.h:25
vector< Button > buttons
Vector holding all buttons.
Definition: Menu.h:26