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.
56 lines
1.4 KiB
56 lines
1.4 KiB
#ifndef __GUI_CORTEX_LAYER_WIDGET__
|
|
#define __GUI_CORTEX_LAYER_WIDGET__
|
|
|
|
#include <opencv2/opencv.hpp>
|
|
#include "../../components/base/basicMutex.h"
|
|
#include "../../components/base/basicThread.h"
|
|
#include "../../data/cortex/base/basicLayer.h"
|
|
#include "../guiClass.h"
|
|
|
|
class CortexLayerWidget : public QWidget{
|
|
private:
|
|
bool m_bDirectDrawing;
|
|
|
|
basicLogCollection * m_pLog;
|
|
IplImage * m_pGraber;
|
|
cv::Mat * m_mFrame;
|
|
cv::Mat * m_mOutput;
|
|
cortexLayer * m_pLayer;
|
|
|
|
//basicVideoSource *m_pCapture;
|
|
basicMutex * m_pPropertiesProtectorMutex;
|
|
basicMutex * m_pWidgetProtectorMutex;
|
|
protected:
|
|
QPixmap * m_pPixmap;
|
|
QPixmap * m_pOverlayPixmap;
|
|
public:
|
|
explicit CortexLayerWidget(QWidget* parent = NULL);
|
|
~CortexLayerWidget();
|
|
void attachCortexLayer( cortexLayer *L );
|
|
virtual void render(QPainter* painter);
|
|
|
|
bool init(void);
|
|
signals:
|
|
//void selected(void* P);
|
|
public slots:
|
|
//void setGrayScale();
|
|
//void setEnhanced();
|
|
//void showCameraSettings();
|
|
//void removeThisCamera();
|
|
void renderLater();
|
|
void renderNow();
|
|
//void ShowContextMenu(const QPoint& pos);
|
|
protected:
|
|
bool event(QEvent* event);
|
|
|
|
//void resizeEvent(QResizeEvent *event);
|
|
void exposeEvent(QExposeEvent* event);
|
|
void paintEvent(QPaintEvent* event);
|
|
//void drawContents(QPainter * p, const QRectF & rect = QRectF());
|
|
private:
|
|
bool m_bUpdateIsPending;
|
|
QTimer * m_pTimer;
|
|
};
|
|
|
|
|
|
#endif
|