forked from alvarotolentino/PeopleTracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImageWindow.cpp
More file actions
86 lines (86 loc) · 1.48 KB
/
ImageWindow.cpp
File metadata and controls
86 lines (86 loc) · 1.48 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
//#include "ImageWindow.h"
//
//#include <stdio.h>
//#include <fl_draw.H>
//
//ImageWindow::ImageWindow(int width, int height, char* title) :
//Fl_Window(width, height, title)
//{
//
// this->width = width;
// this->height = height;
//
// this->begin();
// imageWidget = new ImageWidget(0, 0, width, height);
// this->end();
//
// doStuff = 0;
//}
//
//ImageWindow::ImageWindow(HOGImage* image, char* title) :
//Fl_Window(image->width, image->height, title)
//{
// this->width = image->width;
// this->height = image->height;
//
// this->begin();
// imageWidget = new ImageWidget(0, 0, image->width, image->height, image->pixels);
// this->end();
//
// doStuff = 0;
//}
//
//ImageWindow::~ImageWindow(void) { }
//
//void ImageWindow::show(int x, int y)
//{
// if (x == -1 || y == 1)
// Fl_Window::show();
// else
// {
// this->position(x, y);
// Fl_Window::show();
// }
//}
//
//void ImageWindow::setImage(HOGImage* image)
//{
// this->begin();
// imageWidget->setImage((unsigned char*)image->pixels);
// imageWidget->draw();
// this->end();
//}
//
//int ImageWindow::handle(int eventId)
//{
// int ret = 0;
// /*switch (eventId)
// {
// case fltk::MOVE:
// ret = 1;
//
// break;
// case fltk::PUSH:
//
// imageWidget->rects.clear();
//
// if (doStuff != 0)
// doStuff();
//
// break;
// }*/
//
// return ret;
//}
//
//void ImageWindow::drawRect(int x, int y, int w, int h)
//{
// imageWidget->drawRect(x, y, w, h);
//}
//
//void ImageWindow::Close()
//{
// delete imageWidget;
//
// //this->destroy();
//}