00001 /* 00002 * This file is part of OctoMap - An Efficient Probabilistic 3D Mapping 00003 * Framework Based on Octrees 00004 * http://octomap.github.io 00005 * 00006 * Copyright (c) 2009-2014, K.M. Wurm and A. Hornung, University of Freiburg 00007 * All rights reserved. License for the viewer 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 00022 * along with this program. If not, see http://www.gnu.org/licenses/. 00023 */ 00024 00025 #ifndef VIEWERSETTINGSPANELFLYMODE_H 00026 #define VIEWERSETTINGSPANELFLYMODE_H 00027 00028 #include <QtGui/QWidget> 00029 #include "ui_ViewerSettingsPanelCamera.h" 00030 00031 class ViewerSettingsPanelCamera : public QWidget 00032 { 00033 Q_OBJECT 00034 00035 public: 00036 ViewerSettingsPanelCamera(QWidget *parent = 0); 00037 ~ViewerSettingsPanelCamera(); 00038 QSize sizeHint() const; 00039 00040 public slots: 00041 void setNumberOfFrames(unsigned frames); 00042 void setCurrentFrame(unsigned frame); 00043 void setRobotTrajectoryAvailable(bool available); 00044 void setStopped(); 00045 00046 private slots: 00047 void on_firstScanButton_clicked(); 00048 void on_lastScanButton_clicked(); 00049 void on_nextScanButton_clicked(); 00050 void on_previousScanButton_clicked(); 00051 void on_playScanButton_clicked(); 00052 void on_scanProgressSlider_sliderMoved(int value); 00053 void on_followCameraPathButton_clicked(); 00054 void on_followTrajectoryButton_clicked(); 00055 void on_cameraPathAdd_clicked(); 00056 void on_cameraPathRemove_clicked(); 00057 void on_cameraPathSave_clicked(); 00058 void on_cameraPathClear_clicked(); 00059 void positionEditDone(double); 00060 00061 00062 signals: 00063 void changeCamPosition(double x, double y, double z, double lookX, double lookY, double lookZ); 00064 void jumpToFrame(unsigned int frame); 00065 void play(); 00066 void pause(); 00067 void clearCameraPath(); 00068 void saveToCameraPath(); 00069 void removeFromCameraPath(); 00070 void addToCameraPath(); 00071 void followCameraPath(); 00072 void followRobotPath(); 00073 00074 private: 00075 void dataChanged(); 00076 void gotoFrame(unsigned int frame); 00077 bool followRobotTrajectory(); 00078 Ui::ViewerSettingsPanelCameraClass ui; 00079 unsigned int m_currentFrame; 00080 unsigned int m_numberFrames; 00081 bool m_robotTrajectoryAvailable; 00082 }; 00083 00084 #endif // VIEWERSETTINGSPANELFLYMODE_H