00001 //###################################################################### 00002 // 00003 // GraspIt! 00004 // Copyright (C) 2002-2009 Columbia University in the City of New York. 00005 // All rights reserved. 00006 // 00007 // GraspIt! is free software: you can redistribute it and/or modify 00008 // it under the terms of the GNU General Public License as published by 00009 // the Free Software Foundation, either version 3 of the License, or 00010 // (at your option) any later version. 00011 // 00012 // GraspIt! 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 General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU General Public License 00018 // along with GraspIt!. If not, see <http://www.gnu.org/licenses/>. 00019 // 00020 // Author(s): Matei T. Ciocarlie 00021 // 00022 // $Id: gloveCalibrationDlg.h,v 1.3 2009/04/21 14:53:08 cmatei Exp $ 00023 // 00024 //###################################################################### 00025 00026 #ifndef _glovecalibrationdlg_h_ 00027 #define _glovecalibrationdlg_h_ 00028 00029 #include "ui_gloveCalibrationDlg.h" 00030 00031 #include <QDialog> 00032 00033 class GloveInterface; 00034 class CalibrationPose; 00035 00037 00056 class GloveCalibrationDlg : public QDialog, public Ui::GloveCalibrationDlgUI 00057 { 00058 Q_OBJECT 00059 private: 00060 GloveInterface *mInterface; 00061 CalibrationPose *mCurrentPose; 00062 00063 void init(); 00064 void update(); 00065 00066 public: 00067 GloveCalibrationDlg(QWidget *parent = 0) : QDialog(parent) { 00068 setupUi(this); 00069 init(); 00070 } 00071 00072 public slots: 00073 void prevPose(); 00074 void nextPose(); 00075 void record(); 00076 void calibrate(); 00077 void save(); 00078 void done(); 00079 void savePoses(); 00080 void loadPoses(); 00081 void loadCalibration(); 00082 void initCalibration(); 00083 void clearPoses(); 00084 void startGlove(); 00085 }; 00086 00087 #endif