OP-1900 have path_progress updated correctly for leg_remaining and error_below end...
[librepilot.git] / ground / openpilotgcs / src / plugins / osgearthview / osgearthviewgadget.cpp
blobccff62dd8b7ff4c8f628fa65df1161937591e4d8
1 /********************************************************************************
2 * @file osgearthviewgadget.cpp
3 * @author The OpenPilot Team Copyright (C) 2012.
4 * @addtogroup GCSPlugins GCS Plugins
5 * @{
6 * @addtogroup OsgEarthview Plugin
7 * @{
8 * @brief Osg Earth view of UAV
9 *****************************************************************************/
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 3 of the License, or
14 * (at your option) any later version.
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.
21 * You should have received a copy of the GNU General Public License along
22 * with this program; if not, write to the Free Software Foundation, Inc.,
23 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #include "osgearthviewgadget.h"
27 #include "osgearthviewwidget.h"
28 #include "osgearthviewgadgetconfiguration.h"
30 OsgEarthviewGadget::OsgEarthviewGadget(QString classId, OsgEarthviewWidget *widget, QWidget *parent) :
31 IUAVGadget(classId, parent),
32 m_widget(widget)
35 OsgEarthviewGadget::~OsgEarthviewGadget()
37 delete m_widget;
41 This is called when a configuration is loaded, and updates the plugin's settings.
42 Careful: the plugin is already drawn before the loadConfiguration method is called the
43 first time, so you have to be careful not to assume all the plugin values are initialized
44 the first time you use them
46 void OsgEarthviewGadget::loadConfiguration(IUAVGadgetConfiguration *config)
48 OsgEarthviewGadgetConfiguration *m = qobject_cast<OsgEarthviewGadgetConfiguration *>(config);