ViewerSettings.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 VIEWERSETTINGS_H
00027 #define VIEWERSETTINGS_H
00028 
00029 #include <QtGui/QDialog>
00030 #include "ui_ViewerSettings.h"
00031 
00032 class ViewerSettings : public QDialog
00033 {
00034     Q_OBJECT
00035 
00036 public:
00037     ViewerSettings(QWidget *parent = 0);
00038     ~ViewerSettings();
00039     double getResolution(){return ui.resolution->value(); };
00040     void setResolution(double resolution){ui.resolution->setValue(resolution);};
00041     unsigned int getLaserType(){return ui.laserType->currentIndex(); };
00042     void setLaserType(int type){ui.laserType->setCurrentIndex(type); };
00043     double getMaxRange(){return ui.maxRange->value(); };
00044     void setMaxRange(double range){ui.maxRange->setValue(range); };
00045 
00046 private:
00047     Ui::ViewerSettingsClass ui;
00048 };
00049 
00050 #endif // VIEWERSETTINGS_H


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