VAT  3.0
Video Analysis Tool
LightSourceInstance.h
1 #ifndef LIGHTSOURCE_H
2 #define LIGHTSOURCE_H
3 
4 #include <QDomNode>
5 #include <QImage>
6 #include <vector>
7 #include <QSharedPointer>
8 
9 #include "reliabilitysinglemodelinterface.h"
10 #include "src/blob.h"
11 #include "Blob2DFromBGSubstractionModel.h"
12 
13 class LightSourceInstance: public Blob2DFromBGSubstractionModelInstance {
14 public:
16 
18 
19  //Initializes the visible model attributes for the interface.
20  //The function is called by the interface constructor
21  void initAttributes();
22 
23  //sets activation criteria: reliability on input (distance, bad data),
24  // needs (occlusion, priority),
25  //sets priority of models (hierarchy).
26  void setParameters(QDomNode &i_parameters);
27 
28  //sets activation flags for each model, according to the current context
29  void activate(Blob *);
30 
31  //updates the model
32  void update(Blob *);
33 
34  //sets blob enclosing the model.
35  void setBlobInterface();
36 
37  //Visualization
38 
39  void printAttributes();
40 
41  void printGeneral();
42 
43  bool draw(QPainter &painter);
44 
45  bool draw(QPainter &painter, int r, int g, int b);
46 
47 };
48 
49 
50 #endif // LIGHTSOURCE_H
Definition: LightSourceInstance.h:13
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39
Definition: blob.h:79