itom 2.2.1
|
00001 /* ******************************************************************** 00002 itom software 00003 URL: http://www.uni-stuttgart.de/ito 00004 Copyright (C) 2016, Institut fuer Technische Optik (ITO), 00005 Universitaet Stuttgart, Germany 00006 00007 This file is part of itom. 00008 00009 itom is free software; you can redistribute it and/or modify it 00010 under the terms of the GNU Library General Public Licence as published by 00011 the Free Software Foundation; either version 2 of the Licence, or (at 00012 your option) any later version. 00013 00014 itom is distributed in the hope that it will be useful, but 00015 WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library 00017 General Public Licence for more details. 00018 00019 You should have received a copy of the GNU Library General Public License 00020 along with itom. If not, see <http://www.gnu.org/licenses/>. 00021 *********************************************************************** */ 00022 00023 #ifndef DIALOGSNAPSHOT_H 00024 #define DIALOGSNAPSHOT_H 00025 00026 #include "../global.h" 00027 #include <qdialog.h> 00028 #include "../common/addInInterface.h" 00029 #include "../DataObject/dataobj.h" 00030 #include "../organizer/addInManager.h" 00031 00032 #include "ui_dialogSnapshot.h" 00033 00034 class QTimerEvent; //forward declaration 00035 class QCloseEvent; //forward declaration 00036 00037 namespace ito { 00038 00039 class DataIOThreadCtrl; //forward declaration 00040 00041 class DialogSnapshot : public QMainWindow 00042 { 00043 Q_OBJECT 00044 00045 public: 00046 DialogSnapshot(QWidget *parent, QPointer<AddInDataIO> cam, ito::RetVal &retval); 00047 ~DialogSnapshot(); 00048 00049 protected: 00050 void init(); 00051 00052 void checkRetval(const ito::RetVal retval); 00053 void setBtnOptions(const bool checking); 00054 void acquisitionStart(); 00055 void acquisitionEnd(); 00056 00057 void timerEvent(QTimerEvent *event); 00058 void closeEvent(QCloseEvent *event); 00059 00060 QString m_path; 00061 QList<ito::AddInAlgo::FilterDef*> m_filterPlugins; 00062 00063 bool addComboItem; 00064 Ui::DialogSnapshot ui; 00065 ito::DataIOThreadCtrl *m_pCamera; 00066 QVector<ito::ParamBase> m_paramsOpt; 00067 QVector<ito::ParamBase> m_paramsMand; 00068 QVector<ito::ParamBase> m_autoOut; 00069 int m_totalSnaps; 00070 int m_numSnapsDone; 00071 int m_timerID; 00072 bool m_wasAutoGrabbing; 00073 QList<ito::DataObject> m_acquiredImages; 00074 00075 private slots: 00076 void on_btnSnap_clicked(); 00077 void on_btnClose_clicked(); 00078 void on_btnFolder_clicked(); 00079 void on_btnOptions_clicked(); 00080 void on_comboType_currentIndexChanged(int index); 00081 void on_checkMulti_stateChanged(int state); 00082 void on_checkTimer_stateChanged(int state); 00083 void on_checkAutograbbing_stateChanged(int state); 00084 void on_checkSaveAfterSnap_stateChanged(int state); 00085 }; 00086 00087 } //end namespace ito 00088 00089 #endif