![]() |
University of Murcia, Spain ![]() |
src/qvgui/qvdefaultgui.hGo to the documentation of this file.00001 /* 00002 * Copyright (C) 2007, 2008. 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 QVDEFAULTGUI_H 00026 #define QVDEFAULTGUI_H 00027 00028 #include <QWidget> 00029 #include <QMap> 00030 #include <QCloseEvent> 00031 #include <QVGUI> 00032 00033 #include <QToolBox> 00034 #include <QHBoxLayout> 00035 #include <QVBoxLayout> 00036 #include <QGroupBox> 00037 00039 #include <QVImageCanvas> 00040 #include <QVCamera> 00041 #include <QVWorker> 00042 #include <qvgui/qvplot.h> 00043 00044 class QVImageCanvas; 00045 00059 class QVDefaultGUI: public QWidget, QVGUI 00060 { 00061 Q_OBJECT 00062 public: 00063 //Ui::QVisionForm form; 00064 00068 QVDefaultGUI(QWidget *parent = 0); 00069 ~QVDefaultGUI(); 00070 00071 void closeEvent(QCloseEvent *event); 00072 00075 void init(); 00076 00077 void show() { QWidget::show(); } 00078 00079 signals: 00081 void closed(); 00082 00083 private: 00084 #ifndef DOXYGEN_IGNORE_THIS 00085 // Adds a new QVPropertyContainer, which double, integer and boolean properties will be added to the interface to be 00086 // controlled in real time by the final user 00087 // the camera. 00088 // param name Identification name of the QVPropertyContainer in the interface 00089 // param object QVPropertyContainer object which property controls will be shown 00090 void add(QVWorker * worker); 00091 00092 // Adds controls for a QVCamera object to the interface, allowing the user to control and inspect the state of 00093 // the camera. 00094 // param camera QVCamera object which will be controlled 00095 void add(QVCamera *camera); 00096 00097 void add(QVImageCanvas *imageCanvas); 00098 00099 //bool setVisible(QVWorker *worker,QString prop_orig,float low=0.0,float high=255.0); 00100 00101 QHBoxLayout *hboxlayout; 00102 QWidget *leftwidget; 00103 QToolBox *toolbox; 00104 QGroupBox *qgroupbox; 00105 QVBoxLayout *leftvboxlayout; 00106 QVBoxLayout *groupboxlayout; 00107 QList<QVImageCanvas*> qvimagecanvaslist; 00108 #endif 00109 }; 00110 00111 #endif |