Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
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