VAT  3.0
Video Analysis Tool
paintView.h
1 #ifndef PAINTVIEW_H
2 #define PAINTVIEW_H
3 
4 #include "QtXml/QDomDocument"
5 #include "DRAW/drawInterface.h"
6 #include "Datapool.h"
7 #include <iostream>
8 
12 class paintView
13 {
14 public:
15  paintView();
16  paintView(Datapool *i_data, QString afterModule, int col, int row, int m_vwidth);
17  ~paintView();
18 
19  //Set module configuration parameters
20  bool setParameters(QDomNode &config);
21 
22  //Initialization after reading parameters
23  bool init();
24 
25  //Function executed at each frame
26  bool draw();
27 
28  QString getAfterModule();
29  int getIndexView();
30  QImage *getImage();
31  void setDisplayPaint(bool value);
32  bool getDisplayPaint();
33 
34  void setDraw();
35  static void copyBytes(QImage *im1, QImage *im2);
36  static void initBytes(QImage *im1, uchar value);
37 
38  static bool isValidDrawName(std::string name);
39 
40 
41  std::deque<drawInterface *> drawSequence;
42  static std::map<std::string, drawInterface *(*)(Datapool *)> drawConstructor;
43  static QImage *defaultBg;
44 
45  static QDomNode getParameterNode(QString pname, QDomElement& elem);
46  static QDomNode getParameterNode(QString pname, QDomNode& node);
47  static QString getParameterValue(QDomNode& node);
48  static QString getParameterValue(QDomElement& elem);
49 
50  bool saveImage;
51  QString saveDir;
52  int fnumber;
53 
54 protected:
55  //Reference to external datapool:
56  Datapool *m_data;
57 
58 private:
59  bool displayPaint;
60  int column, row;
61  int indexView;
62  QString afterModule;
63  QImage *image;
64 };
65 
66 #endif // PAINTVIEW_H
The paintView class.
Definition: paintView.h:12
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39