VAT
3.0
Video Analysis Tool
Main Page
ToDo
Modules
Parameters
Classes
Files
File List
File Members
draw_macros.h
1
#ifndef DRAW_MACROS_H
2
#define DRAW_MACROS_H
3
4
#define ADD_DRAW(draw) \
5
drawInterface *ALLOCATE_##draw (Datapool *i_data) { \
6
drawInterface *m = new draw(i_data); \
7
m->name = #draw; \
8
return m; }
9
10
#define ALLOCATE_DRAW(draw) ALLOCATE_##draw()
11
12
/*
13
#define REGISTER_DRAW(name) \
14
VideoAnalysis::drawConstructor[#name] = &ALLOCATE_##name; \
15
*/
16
17
#define REGISTER_DRAW_PAINT(name) \
18
paintView::drawConstructor[#name] = &ALLOCATE_##name; \
19
20
#endif // DRAW_MACROS_H
Generated on Fri Jan 15 2016 06:14:51 for VAT by
1.8.11