You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.0 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
7 years ago
​
​
​
​
​
​
​
​
  1. #ifndef __REPORT_RECORD_WIDGET__
  2. #define __REPORT_RECORD_WIDGET__
  3. #include "../gui.h"
  4. #include <opencv2/opencv.hpp>
  5. #include "../../components/base/basicLIBAV.h"
  6. #include "../../components/base/basicMediaDestination.h"
  7. #include "../../components/object/objectEventReport.h"
  8. class reportRecordWidget: public QWidget, public basicMediaDestination{
  9. private:
  10. char m_pErrorMsg[CTEXT];
  11. bool m_bErrorMode;
  12. bool m_bUpdateIsPending;
  13. cv::Mat * m_mOutput;
  14. protected:
  15. QPixmap * m_pPixmap;
  16. QPixmap * m_pOverlayPixmap;
  17. videoAVLIBSource * videoIn;
  18. QTimer * m_pTimer;
  19. private:
  20. void setError(bool AAA, CSTR Message = NULL);
  21. public:
  22. explicit reportRecordWidget(QWidget* parent = NULL);
  23. ~reportRecordWidget();
  24. virtual void render(QPainter* painter);
  25. bool init(void);
  26. virtual void pushFrame(cv::Mat* Frame, void* src = NULL);
  27. bool setReport(CSTR base, REPORT_RECORD *ptr);
  28. public slots:
  29. void renderLater();
  30. void renderNow();
  31. protected:
  32. void paintEvent(QPaintEvent* evt);
  33. bool event(QEvent* event);
  34. };
  35. #endif