VAT  3.0
Video Analysis Tool
productionthread.h
1 #ifndef PRODUCTIONTHREAD_H
2 #define PRODUCTIONTHREAD_H
3 
4 #include <QThread>
5 #include <QMutex>
6 #include <QWaitCondition>
7 #include "VideoAnalysis.h"
8 
13 class ProductionThread : public QThread {
14  Q_OBJECT
15 
16 public:
24  ProductionThread(VideoAnalysis *i_va, QObject *parent = 0);
26 
30  void run();
31 
37  bool init();
38 
44 
50 
54  void do_play();
55 
59  void do_next();
60 
64  void do_pause();
65 
69  void do_init();
70 
74  void do_end();
75 
79  void load_done();
80 
81  //Execution flags
82  bool done;
83  bool paused;
84  bool waiting;
85  bool next;
86 signals:
87  void load_data();
88  void bad_init();
89 
90 };
91 
92 #endif // PRODUCTIONTHREAD_H
void do_init()
restart video analysis modules and its parameters.
Definition: productionthread.cpp:157
ProductionThread(VideoAnalysis *i_va, QObject *parent=0)
Constructor.
Definition: productionthread.cpp:14
void do_next()
Ensure that video analysis entity is fully initialized and ask for execution to it.
Definition: productionthread.cpp:119
void do_end()
notifies the thread to terminate.
Definition: productionthread.cpp:112
bool newVideoAnalysisInstance
used to identify if video analysis entity is completely configured.
Definition: productionthread.h:49
void load_done()
notifies the thread to continue, since the load is complete.
Definition: productionthread.cpp:148
void do_play()
Allow to continuously execute next frame.
Definition: productionthread.cpp:105
void run()
cyclical process executed as a separate thread. This method shouldn&#39;t be called directly, but start() method instead.
Definition: productionthread.cpp:38
The VideoAnalysis class is in charge to manage each module to actual video processing.
Definition: VideoAnalysis.h:27
void do_pause()
set flag of pause. This flag is perceived by the thread in run() method.
Definition: productionthread.cpp:142
VideoAnalysis * m_videoAnalysis
reference to video analysis entity used.
Definition: productionthread.h:43
The ProductionThread class is a Thread in carge of coordinate frame navigation and kick video analysi...
Definition: productionthread.h:13
bool init()
Reads parameters of video analysis entity and then initialize video analyisis entity.
Definition: productionthread.cpp:23