00001 /* 00002 * Copyright (C) 2007. PARP Research Group. 00003 * <http://perception.inf.um.es> 00004 * University of Murcia, Spain. 00005 * 00006 * This file is part of the QVision library. 00007 * 00008 * QVision is free software: you can redistribute it and/or modify 00009 * it under the terms of the GNU Lesser General Public License as 00010 * published by the Free Software Foundation, version 3 of the License. 00011 * 00012 * QVision is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with QVision. If not, see <http://www.gnu.org/licenses/>. 00019 */ 00020 00024 00025 #ifndef QVGUI_H 00026 #define QVGUI_H 00027 00028 #include <QWidget> 00029 #include <QMap> 00030 #include <QCloseEvent> 00031 00032 #include <QToolBox> 00033 #include <QHBoxLayout> 00034 #include <QVBoxLayout> 00035 #include <QGroupBox> 00036 00037 #include <qvcore/qvapplication.h> 00038 #include <qvcore/qvimage.h> 00039 #include <qvgui/qvimagecanvas.h> 00040 #include <qvgui/qvparamsinspectorwidget.h> 00041 #include <qvgui/qvcamerawidgetsmall.h> 00042 #include <qvgui/qvworkerinterfacesmall.h> 00043 00113 class QVGUI: public QWidget 00114 { 00115 Q_OBJECT 00116 public: 00117 //Ui::QVisionForm form; 00118 00122 QVGUI(QWidget *parent = 0); 00123 ~QVGUI(); 00124 00125 void closeEvent(QCloseEvent *event); 00126 00128 // Adds controls for a QVCamera object to the interface, allowing the user to control and inspect the state of 00129 // the camera. 00130 // param camera QVCamera object which will be controlled 00131 void add(QVCamera *camera); 00132 00133 // Adds a new QVPropertyContainer, which double, integer and boolean properties will be added to the interface to be 00134 // controlled in real time by the final user 00135 // the camera. 00136 // param name Identification name of the QVPropertyContainer in the interface 00137 // param object QVPropertyContainer object which property controls will be shown 00138 void add(QVWorker * worker); 00139 //bool setVisible(QVWorker *worker,QString prop_orig,float low=0.0,float high=255.0); 00141 00142 signals: 00145 void closed(); 00146 00147 private: 00148 QHBoxLayout *hboxlayout; 00149 QWidget *leftwidget; 00150 QToolBox *toolbox; 00151 QGroupBox *qgroupbox; 00152 QVBoxLayout *leftvboxlayout; 00153 QVBoxLayout *groupboxlayout; 00154 QList<QVImageCanvas*> qvimagecanvaslist; 00155 }; 00156 00157 #endif