ViewerSettingsPanel.h
Go to the documentation of this file.
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 VIEWERSETTINGSPANEL_H
00026 #define VIEWERSETTINGSPANEL_H
00027 
00028 #include <math.h>
00029 #include <qglviewer.h>
00030 #include "ui_ViewerSettingsPanel.h"
00031 
00032 #define _TREE_MAX_DEPTH 16
00033 
00034 class ViewerSettingsPanel : public QWidget
00035 {
00036     Q_OBJECT
00037 
00038 public:
00039     ViewerSettingsPanel(QWidget *parent = 0);
00040     ~ViewerSettingsPanel();
00041 
00042 public slots:
00043     void setNumberOfScans(unsigned scans);
00044     void setCurrentScan(unsigned scan);
00045     void setResolution(double resolution);
00046 
00047 private slots:
00048     void on_firstScanButton_clicked();
00049     void on_lastScanButton_clicked();
00050     void on_nextScanButton_clicked();
00051     void on_fastFwdScanButton_clicked();
00052     void setTreeDepth(int depth);
00053 
00054 signals:
00055   void treeDepthChanged(int depth);
00056   void addNextScans(unsigned scans);
00057   void gotoFirstScan();
00058 
00059 
00060 private:
00061     void scanProgressChanged();
00062     void leafSizeChanged();
00063     Ui::ViewerSettingsPanelClass ui;
00064     unsigned m_currentScan;
00065     unsigned m_numberScans;
00066     unsigned m_treeDepth;
00067     double m_resolution;
00068 };
00069 
00070 #endif // VIEWERSETTINGSPANEL_H


octovis
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Thu Feb 11 2016 23:51:20