00001 /* 00002 * OctoMap - An Efficient Probabilistic 3D Mapping Framework Based on Octrees 00003 * http://octomap.github.com/ 00004 * 00005 * Copyright (c) 2009-2013, K.M. Wurm and A. Hornung, University of Freiburg 00006 * All rights reserved. 00007 * License (octovis): GNU GPL v2 00008 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt 00009 * 00010 * 00011 * This program is free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation; either version 2 of the License, or 00014 * (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, but 00017 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00018 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00019 * for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License along 00022 * with this program; if not, write to the Free Software Foundation, Inc., 00023 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00024 */ 00025 00026 #ifndef VIEWERSETTINGSPANELFLYMODE_H 00027 #define VIEWERSETTINGSPANELFLYMODE_H 00028 00029 #include <QtGui/QWidget> 00030 #include "ui_ViewerSettingsPanelCamera.h" 00031 00032 class ViewerSettingsPanelCamera : public QWidget 00033 { 00034 Q_OBJECT 00035 00036 public: 00037 ViewerSettingsPanelCamera(QWidget *parent = 0); 00038 ~ViewerSettingsPanelCamera(); 00039 QSize sizeHint() const; 00040 00041 public slots: 00042 void setNumberOfFrames(unsigned frames); 00043 void setCurrentFrame(unsigned frame); 00044 void setRobotTrajectoryAvailable(bool available); 00045 void setStopped(); 00046 00047 private slots: 00048 void on_firstScanButton_clicked(); 00049 void on_lastScanButton_clicked(); 00050 void on_nextScanButton_clicked(); 00051 void on_previousScanButton_clicked(); 00052 void on_playScanButton_clicked(); 00053 void on_scanProgressSlider_sliderMoved(int value); 00054 void on_followCameraPathButton_clicked(); 00055 void on_followTrajectoryButton_clicked(); 00056 void on_cameraPathAdd_clicked(); 00057 void on_cameraPathRemove_clicked(); 00058 void on_cameraPathSave_clicked(); 00059 void on_cameraPathClear_clicked(); 00060 void positionEditDone(double); 00061 00062 00063 signals: 00064 void changeCamPosition(double x, double y, double z, double lookX, double lookY, double lookZ); 00065 void jumpToFrame(unsigned int frame); 00066 void play(); 00067 void pause(); 00068 void clearCameraPath(); 00069 void saveToCameraPath(); 00070 void removeFromCameraPath(); 00071 void addToCameraPath(); 00072 void followCameraPath(); 00073 void followRobotPath(); 00074 00075 private: 00076 void dataChanged(); 00077 void gotoFrame(unsigned int frame); 00078 bool followRobotTrajectory(); 00079 Ui::ViewerSettingsPanelCameraClass ui; 00080 unsigned int m_currentFrame; 00081 unsigned int m_numberFrames; 00082 bool m_robotTrajectoryAvailable; 00083 }; 00084 00085 #endif // VIEWERSETTINGSPANELFLYMODE_H