vrcore  0.45
visuReal Messkern
 All Classes Files Functions Variables
VisualLogger.h
1 #pragma once
2 
3 class OcvMatPainter;
4 
6  {
7  protected:
8  const char *windowName;
9  OcvMatPainter painter;
10  cv::Mat mPaint;
11  int disposeKey;
12 
13  void update (const std::type_info& procInfo);
14  void plotMark (std::string name, StatusValue status, MarkImageData *lpData);
15 
16  public:
17  VisualLogger (const char *name);
18  ~VisualLogger ();
19  void addPainterLevel (const std::string &key, uint8_t r, uint8_t g, uint8_t b);
20  void setPaintLevelStatus (const std::string &key, StatusValue value);
21  void setPaintLevelRestoreOn (const std::string &key);
22  void setPaintLevelRestoreOff (const std::string &key);
23  void initialise ();
24  void dispose ();
25  void logLogable (Logable *lpLogable);
26  int getDisposeKey () { return disposeKey; }
27  };
28 
29 class RoiColator : public Logable
30  {
31  private:
32  RoiRectVector rois;
33  public:
34  RoiRectVector& getRoiRectVector () { return rois; }
35  void clear () { rois.clear(); }
36  void add (RoiRect &r) { rois.push_back(r); }
37  };
38 
40  {
41  protected:
42  cv::Mat gray;
43  int nHorz, nVert, horzFix, vertFix, gap;
44  int iHorz, iVert;
45  ContourVector contours;
46  std::string level;
47  bool bRight;
48  public:
49  ContoursLoggerHelper (cv::Mat &mat_, int nVert_, int nHorz_, bool bRight_, int horzFix_ = 0, int vertFix_ = 0, int gap_ = 3);
50  bool getMountedMat (cv::Mat &mat);
51  int getHorzOffs () { return iHorz * (gray.cols + gap) + horzFix; }
52  int getVertOffs () { return iVert * (gray.rows + gap) + vertFix; }
53  ContourVector& getContoursVector () { return contours; }
54  std::string& getLevel () { return level; }
55  bool isRight () { return bRight; }
56  void setPlot (int iHorz, int iVert, ContourVector &contours, std::string level) {
57 this->iHorz = iHorz; this->iVert = iVert; this->contours = contours; this->level = level; }
58 
59  };
60 
62  {
63  private:
64  bool bRight;
65  bool bInitialized;
66  public:
67  ContoursLogger (const bool bRight, const char *name);
68  void logLogable (Logable *lpLogable);
69  };
beschreibt eine Visierbügelmarke
Definition: types.h:31
Definition: VisualLogger.h:5
Definition: VisualLogger.h:61
Definition: MeasuringLogger.h:5
Definition: Processable.h:18
Definition: OcvMatPainter.h:5
Definition: VisualLogger.h:29
Definition: VisualLogger.h:39