#ifndef __GUI_CORTEX_LAYER_WIDGET__ #define __GUI_CORTEX_LAYER_WIDGET__ #include #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