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 QVISIONINTERFACE_H 00026 #define QVISIONINTERFACE_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 00044 //#include <ui/ui_qvisionform.h> 00045 00115 class QVisionInterface: public QWidget 00116 { 00117 Q_OBJECT 00118 public: 00119 //Ui::QVisionForm form; 00120 00124 QVisionInterface(QWidget *parent = 0); 00125 ~QVisionInterface(); 00126 00127 void closeEvent(QCloseEvent *event); 00128 00130 // Adds controls for a QVCamera object to the interface, allowing the user to control and inspect the state of 00131 // the camera. 00132 // param camera QVCamera object which will be controlled 00133 void add(QVCamera *camera); 00134 00135 // Adds a new QVPropertyHolder, which double, integer and boolean properties will be added to the interface to be 00136 // controlled in real time by the final user 00137 // the camera. 00138 // param name Identification name of the QVPropertyHolder in the interface 00139 // param object QVPropertyHolder object which property controls will be shown 00140 void add(QVWorker * worker); 00141 //bool setVisible(QVWorker *worker,QString prop_orig,float low=0.0,float high=255.0); 00143 00144 signals: 00147 void closed(); 00148 00149 private: 00150 QHBoxLayout *hboxlayout; 00151 QWidget *leftwidget; 00152 QToolBox *toolbox; 00153 QGroupBox *qgroupbox; 00154 QVBoxLayout *leftvboxlayout; 00155 QVBoxLayout *groupboxlayout; 00156 QList<QVImageCanvas*> qvimagecanvaslist; 00157 }; 00158 #endif