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


octovis
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Thu Aug 27 2015 14:13:26