39 loader.stdrInformationTree,
40 SIGNAL(itemClicked(QTreeWidgetItem*,
int)),
51 loader.stdrInformationTree,
52 SIGNAL(itemCollapsed(QTreeWidgetItem *)),
57 loader.stdrInformationTree,
58 SIGNAL(itemExpanded(QTreeWidgetItem *)),
71 loader.stdrInformationTree->resizeColumnToContents(0);
72 loader.stdrInformationTree->resizeColumnToContents(1);
73 loader.stdrInformationTree->resizeColumnToContents(2);
74 loader.stdrInformationTree->resizeColumnToContents(3);
84 loader.stdrInformationTree->resizeColumnToContents(0);
85 loader.stdrInformationTree->resizeColumnToContents(1);
86 loader.stdrInformationTree->resizeColumnToContents(2);
87 loader.stdrInformationTree->resizeColumnToContents(3);
96 loader.stdrInformationTree->resizeColumnToContents(0);
97 loader.stdrInformationTree->resizeColumnToContents(1);
98 loader.stdrInformationTree->resizeColumnToContents(2);
99 loader.stdrInformationTree->resizeColumnToContents(3);
121 const stdr_msgs::RobotIndexedVectorMsg& msg)
143 else if(item->parent()->text(0) == QString(
"Lasers") && column == 3)
146 item->parent()->parent()->text(0), item->text(0));
148 else if(item->parent()->text(0) == QString(
"Lasers") && column == 2)
151 item->parent()->parent()->text(0), item->text(0));
153 else if(item->parent()->text(0) == QString(
"Sonars") && column == 3)
156 item->parent()->parent()->text(0),item->text(0));
158 else if(item->parent()->text(0) == QString(
"Sonars") && column == 2)
161 item->parent()->parent()->text(0),item->text(0));
163 else if(item->parent()->text(0) == QString(
"RFID readers") && column == 2)
166 item->parent()->parent()->text(0), item->text(0));
168 else if(item->parent()->text(0) == QString(
"CO2 sensors") && column == 2)
171 item->parent()->parent()->text(0), item->text(0));
173 else if(item->parent()->text(0) == QString(
"Thermal sensors") && column == 2)
176 item->parent()->parent()->text(0), item->text(0));
178 else if(item->parent()->text(0) == QString(
"Sound sensors") && column == 2)
181 item->parent()->parent()->text(0), item->text(0));
201 return static_cast<QWidget *
>(&
loader);
212 QString robotName,QString laserName,
char vs)
217 if(text == robotName)
220 for(
int j = 0 ; j < it->childCount() ; j++)
222 if(it->child(j)->text(0) == QString(
"Lasers"))
224 for(
int k = 0 ; k < it->child(j)->childCount() ; k++)
226 if(it->child(j)->child(k)->text(0) == laserName)
228 QTreeWidgetItem *inIt = it->child(j)->child(k);
264 QString robotName,QString sonarName,
char vs)
269 if(text == robotName)
272 for(
int j = 0 ; j < it->childCount() ; j++)
274 if(it->child(j)->text(0) == QString(
"Sonars"))
276 for(
int k = 0 ; k < it->child(j)->childCount() ; k++)
278 if(it->child(j)->child(k)->text(0) == sonarName)
280 QTreeWidgetItem *inIt = it->child(j)->child(k);
316 QString robotName,QString rfidReaderName,
char vs)
321 if(text == robotName)
324 for(
int j = 0 ; j < it->childCount() ; j++)
326 if(it->child(j)->text(0) == QString(
"RFID readers"))
328 for(
int k = 0 ; k < it->child(j)->childCount() ; k++)
330 if(it->child(j)->child(k)->text(0) == rfidReaderName)
332 QTreeWidgetItem *inIt = it->child(j)->child(k);
367 QString robotName,QString sensorName,
char vs)
372 if(text == robotName)
375 for(
int j = 0 ; j < it->childCount() ; j++)
377 if(it->child(j)->text(0) == QString(
"CO2 sensors"))
379 for(
int k = 0 ; k < it->child(j)->childCount() ; k++)
381 if(it->child(j)->child(k)->text(0) == sensorName)
383 QTreeWidgetItem *inIt = it->child(j)->child(k);
418 QString robotName,QString sensorName,
char vs)
423 if(text == robotName)
426 for(
int j = 0 ; j < it->childCount() ; j++)
428 if(it->child(j)->text(0) == QString(
"Thermal sensors"))
430 for(
int k = 0 ; k < it->child(j)->childCount() ; k++)
432 if(it->child(j)->child(k)->text(0) == sensorName)
434 QTreeWidgetItem *inIt = it->child(j)->child(k);
469 QString robotName,QString sensorName,
char vs)
474 if(text == robotName)
477 for(
int j = 0 ; j < it->childCount() ; j++)
479 if(it->child(j)->text(0) == QString(
"Sound sensors"))
481 for(
int k = 0 ; k < it->child(j)->childCount() ; k++)
483 if(it->child(j)->child(k)->text(0) == sensorName)
485 QTreeWidgetItem *inIt = it->child(j)->child(k);
524 if(text == robotName)
545 for(
int j = 0 ; j < it->childCount() ; j++)
547 if(it->child(j)->text(0) == QString(
"Sonars"))
549 for(
int k = 0 ; k < it->child(j)->childCount() ; k++)
551 QTreeWidgetItem *inIt = it->child(j)->child(k);
572 if(it->child(j)->text(0) == QString(
"Lasers"))
574 for(
int k = 0 ; k < it->child(j)->childCount() ; k++)
576 QTreeWidgetItem *inIt = it->child(j)->child(k);
void setLaserVisibility(QString robotName, QString laserName, char vs)
Changes a laser visibility icon.
QIcon visible_icon_off_
Icon of visibility medium (orange)
void laserVisualizerClicked(QString robotName, QString laserName)
Emmited when a laser visualizer is clicked.
QIcon visible_icon_on_
< Icon of visibility on (green)
void co2SensorVisibilityClicked(QString robotName, QString co2SensorName)
Emmited when a co2 sensor visibility icon is clicked.
void setCO2SensorVisibility(QString robotName, QString co2SensorName, char vs)
Changes a co2 sensor visibility icon.
QWidget * getLoader(void)
Returns the CInfoLoader object.
void adaptSignal(void)
Emmited when resize of columns according to whats visible is needed.
void robotVisualizerClicked(QString robotName)
Emmited when a robot visualizer is clicked.
void deleteTree(void)
Deletes the information tree.
QTreeWidgetItem robotsInfo
Tree item : Map height.
void robotVisibilityClicked(QString robotName)
Emmited when a robot visibility icon is clicked.
void updateTree(const stdr_msgs::RobotIndexedVectorMsg &msg)
Updates the information tree according to the ensemble of robots.
void sonarVisibilityClicked(QString robotName, QString sonarName)
Emmited when a sonar visibility icon is clicked.
void updateMapInfo(float width, float height, float ocgd)
Updates the information tree according to the specific map.
void sonarVisualizerClicked(QString robotName, QString sonarName)
Emmited when a sonar visualizer is clicked.
CInfoLoader loader
< Object of CInfoLoader
void laserVisibilityClicked(QString robotName, QString laserName)
Emmited when a laser visibility icon is clicked.
void setSonarVisibility(QString robotName, QString sonarName, char vs)
Changes a sonar visibility icon.
void updateRobots(const stdr_msgs::RobotIndexedVectorMsg &msg)
Updates the information tree according to the ensemble of robots.
The main namespace for STDR GUI.
QIcon visible_icon_trans_
Tree item : Root.
void adaptColumns(QTreeWidgetItem *item, int column)
Adapts the columns width according to what is visible when an item is clicked.
void treeItemClicked(QTreeWidgetItem *item, int column)
Called when a click occurs in the tree.
void thermalSensorVisibilityClicked(QString robotName, QString thermalSensorName)
Emmited when a thermal sensor visibility icon is clicked.
void setRfidReaderVisibility(QString robotName, QString rfidReaderName, char vs)
Changes a rfid reader visibility icon.
void adaptSlot(void)
Adapts the columns width according to what is visible. Called when adaptSignal is emmited...
void setRobotVisibility(QString robotName, char vs)
Changes a robot visibility icon.
QTreeWidgetItem generalInfo
Tree item : Robot root.
void setThermalSensorVisibility(QString robotName, QString thermalSensorName, char vs)
Changes a thermal sensor visibility icon.
void rfidReaderVisibilityClicked(QString robotName, QString rfidReaderName)
Emmited when a rfid reader visibility icon is clicked.
CInfoConnector(int argc, char **argv)
Default contructor.
void setSoundSensorVisibility(QString robotName, QString soundSensorName, char vs)
Changes a sound sensor visibility icon.
void updateMapInfo(float width, float height, float ocgd)
Updates the information tree according to the specific map.
void soundSensorVisibilityClicked(QString robotName, QString soundSensorName)
Emmited when a sound sensor visibility icon is clicked.