ViewerSettingsPanelCamera.h
Go to the documentation of this file.
1 /*
2  * This file is part of OctoMap - An Efficient Probabilistic 3D Mapping
3  * Framework Based on Octrees
4  * http://octomap.github.io
5  *
6  * Copyright (c) 2009-2014, K.M. Wurm and A. Hornung, University of Freiburg
7  * All rights reserved. License for the viewer octovis: GNU GPL v2
8  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
9  *
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful, but
17  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  * for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program. If not, see http://www.gnu.org/licenses/.
23  */
24 
25 #ifndef VIEWERSETTINGSPANELFLYMODE_H
26 #define VIEWERSETTINGSPANELFLYMODE_H
27 
28 #include <qglobal.h>
29 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
30 #include <QtWidgets/QWidget>
31 #else
32 #include <QtGui/QWidget>
33 #endif
34 #include "ui_ViewerSettingsPanelCamera.h"
35 
36 class ViewerSettingsPanelCamera : public QWidget
37 {
38  Q_OBJECT
39 
40 public:
41  ViewerSettingsPanelCamera(QWidget *parent = 0);
43  QSize sizeHint() const;
44 
45 public slots:
46  void setNumberOfFrames(unsigned frames);
47  void setCurrentFrame(unsigned frame);
48  void setRobotTrajectoryAvailable(bool available);
49  void setStopped();
50 
51 private slots:
57  void on_scanProgressSlider_sliderMoved(int value);
64  void positionEditDone(double);
65 
66 
67 signals:
68  void changeCamPosition(double x, double y, double z, double lookX, double lookY, double lookZ);
69  void jumpToFrame(unsigned int frame);
70  void play();
71  void pause();
72  void clearCameraPath();
73  void saveToCameraPath();
74  void removeFromCameraPath();
75  void addToCameraPath();
76  void followCameraPath();
77  void followRobotPath();
78 
79 private:
80  void dataChanged();
81  void gotoFrame(unsigned int frame);
82  bool followRobotTrajectory();
83  Ui::ViewerSettingsPanelCameraClass ui;
84  unsigned int m_currentFrame;
85  unsigned int m_numberFrames;
87 };
88 
89 #endif // VIEWERSETTINGSPANELFLYMODE_H
Ui::ViewerSettingsPanelCameraClass ui
ViewerSettingsPanelCamera(QWidget *parent=0)
void setNumberOfFrames(unsigned frames)
void jumpToFrame(unsigned int frame)
void changeCamPosition(double x, double y, double z, double lookX, double lookY, double lookZ)
void setRobotTrajectoryAvailable(bool available)
void gotoFrame(unsigned int frame)


octovis
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Mon Feb 28 2022 22:58:17