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.
 
 
 
 
 
 

38 lines
1.0 KiB

#ifndef __REPORT_RECORD_WIDGET__
#define __REPORT_RECORD_WIDGET__
#include "../gui.h"
#include <opencv2/opencv.hpp>
#include "../../components/base/basicLIBAV.h"
#include "../../components/base/basicMediaDestination.h"
#include "../../components/object/objectEventReport.h"
class reportRecordWidget: public QWidget, public basicMediaDestination{
private:
char m_pErrorMsg[CTEXT];
bool m_bErrorMode;
bool m_bUpdateIsPending;
cv::Mat * m_mOutput;
protected:
QPixmap * m_pPixmap;
QPixmap * m_pOverlayPixmap;
videoAVLIBSource * videoIn;
QTimer * m_pTimer;
private:
void setError(bool AAA, CSTR Message = NULL);
public:
explicit reportRecordWidget(QWidget* parent = NULL);
~reportRecordWidget();
virtual void render(QPainter* painter);
bool init(void);
virtual void pushFrame(cv::Mat* Frame, void* src = NULL);
bool setReport(CSTR base, REPORT_RECORD *ptr);
public slots:
void renderLater();
void renderNow();
protected:
void paintEvent(QPaintEvent* evt);
bool event(QEvent* event);
};
#endif