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 00038 #include <qvgui/qvimagecanvas.h> 00039 #include <qvgui/qvplot.h> 00040 #include <qvcore/qvcamera.h> 00041 #include <qvcore/qvworker.h> 00042 00043 class QVImageCanvas; 00044 00128 class QVGUI: public QWidget 00129 { 00130 Q_OBJECT 00131 public: 00132 //Ui::QVisionForm form; 00133 00137 QVGUI(QWidget *parent = 0); 00138 ~QVGUI(); 00139 00140 void closeEvent(QCloseEvent *event); 00141 00142 #ifndef DOXYGEN_IGNORE_THIS 00143 // Adds controls for a QVCamera object to the interface, allowing the user to control and inspect the state of 00144 // the camera. 00145 // param camera QVCamera object which will be controlled 00146 void add(QVCamera *camera); 00147 00148 // Adds a new QVPropertyContainer, which double, integer and boolean properties will be added to the interface to be 00149 // controlled in real time by the final user 00150 // the camera. 00151 // param name Identification name of the QVPropertyContainer in the interface 00152 // param object QVPropertyContainer object which property controls will be shown 00153 void add(QVWorker * worker); 00154 //bool setVisible(QVWorker *worker,QString prop_orig,float low=0.0,float high=255.0); 00155 #endif 00156 00157 signals: 00160 void closed(); 00161 00162 private: 00163 QHBoxLayout *hboxlayout; 00164 QWidget *leftwidget; 00165 QToolBox *toolbox; 00166 QGroupBox *qgroupbox; 00167 QVBoxLayout *leftvboxlayout; 00168 QVBoxLayout *groupboxlayout; 00169 QList<QVImageCanvas*> qvimagecanvaslist; 00170 }; 00171 00172 #endif