00001 00034 #ifndef __VETLIB_VETWINDOWQT_H__ 00035 #define __VETLIB_VETWINDOWQT_H__ 00036 00037 #include "../vetDefs.h" 00038 #include "../vetOutput.h" 00039 00040 #include "../vetFrameYUV420.h" 00041 #include "../vetFrameRGB24.h" 00042 #include "../vetFrameT.h" 00043 00044 00045 //Trolltech QT headers 00046 #include <qapplication.h> 00047 #include <qpainter.h> 00048 #include <qwidget.h> 00049 00053 #define VETWQT_DEF_WIDTH 320 00054 00057 #define VETWQT_DEF_HEIGHT 240 00058 00059 00060 class vetWindowQT : public vetOutput, 00061 public QWidget 00062 { 00063 00064 protected: 00065 00069 QPainter* dataCanvas; 00070 00075 virtual void paintEvent(QPaintEvent* event) { } 00076 00077 public: 00078 00079 00083 vetWindowQT(); 00084 00091 vetWindowQT(unsigned int width, unsigned int height); 00092 00098 VETRESULT setHeight(unsigned int value); 00099 00105 VETRESULT setWidth(unsigned int value); 00106 00107 00112 VETRESULT run() { return VETRET_NOT_IMPLEMENTED; }; 00113 00114 00125 VETRESULT importFrom(vetFrameYUV420& img); 00126 00137 VETRESULT importFrom(vetFrameRGB24& img); 00138 00149 VETRESULT importFrom(vetFrameT<unsigned char>& img); 00150 00151 00152 }; 00153 00154 #endif //__VETLIB_VETWINDOWQT_H__
1.4.4