stdr_info_connector.h
Go to the documentation of this file.
00001 /******************************************************************************
00002    STDR Simulator - Simple Two DImensional Robot Simulator
00003    Copyright (C) 2013 STDR Simulator
00004    This program is free software; you can redistribute it and/or modify
00005    it under the terms of the GNU General Public License as published by
00006    the Free Software Foundation; either version 3 of the License, or
00007    (at your option) any later version.
00008    This program is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011    GNU General Public License for more details.
00012    You should have received a copy of the GNU General Public License
00013    along with this program; if not, write to the Free Software Foundation,
00014    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
00015    
00016    Authors : 
00017    * Manos Tsardoulias, etsardou@gmail.com
00018    * Aris Thallas, aris.thallas@gmail.com
00019    * Chris Zalidis, zalidis@gmail.com 
00020 ******************************************************************************/
00021 
00022 #ifndef STDR_INFO_CONNECTOR
00023 #define STDR_INFO_CONNECTOR
00024 
00025 #include "stdr_gui/stdr_info_loader.h"
00026 
00031 namespace stdr_gui
00032 {
00037   class CInfoConnector : 
00038     public QObject
00039   {
00040     Q_OBJECT
00041     //------------------------------------------------------------------------//
00042     private:
00044       int   argc_;
00046       char**  argv_;
00047     
00048     //------------------------------------------------------------------------//
00049     public:
00050     
00052       CInfoLoader loader;
00053       
00060       CInfoConnector(int argc, char **argv);
00061       
00067       void updateTree(const stdr_msgs::RobotIndexedVectorMsg& msg);
00068       
00076       void updateMapInfo(float width,float height,float ocgd);
00077       
00082       QWidget* getLoader(void);
00083 
00084     //------------------------------------------------------------------------//
00085     public Q_SLOTS:
00086     
00093       void treeItemClicked ( QTreeWidgetItem * item, int column ); 
00094       
00101       void adaptColumns(QTreeWidgetItem *item, int column);
00102       
00108       void adaptColumns(QTreeWidgetItem *item);
00109       
00114       void adaptSlot(void);
00115 
00123       void setLaserVisibility(QString robotName,QString laserName,char vs);
00124       
00132       void setSonarVisibility(QString robotName,QString sonarName,char vs);
00133       
00141       void setRfidReaderVisibility(QString robotName,
00142         QString rfidReaderName, char vs);
00143         
00151       void setCO2SensorVisibility(QString robotName,
00152         QString co2SensorName, char vs);
00153         
00161       void setThermalSensorVisibility(QString robotName,
00162         QString thermalSensorName, char vs);
00163         
00171       void setSoundSensorVisibility(QString robotName,
00172         QString soundSensorName, char vs);
00173       
00180       void setRobotVisibility(QString robotName,char vs);
00181       
00182     //------------------------------------------------------------------------//
00183     Q_SIGNALS:
00184     
00191       void laserVisualizerClicked(QString robotName,QString laserName);
00192       
00199       void sonarVisualizerClicked(QString robotName,QString sonarName);
00200       
00206       void robotVisualizerClicked(QString robotName);
00207       
00214       void laserVisibilityClicked(QString robotName,QString laserName);
00215       
00222       void sonarVisibilityClicked(QString robotName,QString sonarName);
00223       
00230       void rfidReaderVisibilityClicked(
00231         QString robotName, QString rfidReaderName);
00232         
00239       void co2SensorVisibilityClicked(
00240         QString robotName, QString co2SensorName);
00241         
00248       void thermalSensorVisibilityClicked(
00249         QString robotName, QString thermalSensorName);
00250         
00257       void soundSensorVisibilityClicked(
00258         QString robotName, QString soundSensorName);
00259       
00265       void robotVisibilityClicked(QString robotName);
00266       
00271       void adaptSignal(void);
00272   };
00273 }
00274 
00275 #endif


stdr_gui
Author(s): Manos Tsardoulias
autogenerated on Wed Sep 2 2015 03:36:44