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


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