Serves the Qt events of the tree-like information widget. Inherits from QObject. More...
#include <stdr_info_connector.h>
Public Slots | |
void | adaptColumns (QTreeWidgetItem *item, int column) |
Adapts the columns width according to what is visible when an item is clicked. | |
void | adaptColumns (QTreeWidgetItem *item) |
Adapts the columns width according to what is visible when an item expands or collapses. | |
void | adaptSlot (void) |
Adapts the columns width according to what is visible. Called when adaptSignal is emmited. | |
void | setCO2SensorVisibility (QString robotName, QString co2SensorName, char vs) |
Changes a co2 sensor visibility icon. | |
void | setLaserVisibility (QString robotName, QString laserName, char vs) |
Changes a laser visibility icon. | |
void | setRfidReaderVisibility (QString robotName, QString rfidReaderName, char vs) |
Changes a rfid reader visibility icon. | |
void | setRobotVisibility (QString robotName, char vs) |
Changes a robot visibility icon. | |
void | setSonarVisibility (QString robotName, QString sonarName, char vs) |
Changes a sonar visibility icon. | |
void | setSoundSensorVisibility (QString robotName, QString soundSensorName, char vs) |
Changes a sound sensor visibility icon. | |
void | setThermalSensorVisibility (QString robotName, QString thermalSensorName, char vs) |
Changes a thermal sensor visibility icon. | |
void | treeItemClicked (QTreeWidgetItem *item, int column) |
Called when a click occurs in the tree. | |
Signals | |
void | adaptSignal (void) |
Emmited when resize of columns according to whats visible is needed. | |
void | co2SensorVisibilityClicked (QString robotName, QString co2SensorName) |
Emmited when a co2 sensor visibility icon is clicked. | |
void | laserVisibilityClicked (QString robotName, QString laserName) |
Emmited when a laser visibility icon is clicked. | |
void | laserVisualizerClicked (QString robotName, QString laserName) |
Emmited when a laser visualizer is clicked. | |
void | rfidReaderVisibilityClicked (QString robotName, QString rfidReaderName) |
Emmited when a rfid reader visibility icon is clicked. | |
void | robotVisibilityClicked (QString robotName) |
Emmited when a robot visibility icon is clicked. | |
void | robotVisualizerClicked (QString robotName) |
Emmited when a robot visualizer is clicked. | |
void | sonarVisibilityClicked (QString robotName, QString sonarName) |
Emmited when a sonar visibility icon is clicked. | |
void | sonarVisualizerClicked (QString robotName, QString sonarName) |
Emmited when a sonar visualizer is clicked. | |
void | soundSensorVisibilityClicked (QString robotName, QString soundSensorName) |
Emmited when a sound sensor visibility icon is clicked. | |
void | thermalSensorVisibilityClicked (QString robotName, QString thermalSensorName) |
Emmited when a thermal sensor visibility icon is clicked. | |
Public Member Functions | |
CInfoConnector (int argc, char **argv) | |
Default contructor. | |
QWidget * | getLoader (void) |
Returns the CInfoLoader object. | |
void | updateMapInfo (float width, float height, float ocgd) |
Updates the information tree according to the specific map. | |
void | updateTree (const stdr_msgs::RobotIndexedVectorMsg &msg) |
Updates the information tree according to the ensemble of robots. | |
Public Attributes | |
CInfoLoader | loader |
< Object of CInfoLoader | |
Private Attributes | |
int | argc_ |
< Number of input arguments | |
char ** | argv_ |
Serves the Qt events of the tree-like information widget. Inherits from QObject.
Definition at line 37 of file stdr_info_connector.h.
stdr_gui::CInfoConnector::CInfoConnector | ( | int | argc, |
char ** | argv | ||
) |
Default contructor.
argc | [int] Number of input arguments |
argv | [char **] Input arguments |
Definition at line 32 of file stdr_info_connector.cpp.
void stdr_gui::CInfoConnector::adaptColumns | ( | QTreeWidgetItem * | item, |
int | column | ||
) | [slot] |
Adapts the columns width according to what is visible when an item is clicked.
item | [QTreeWidgetItem*] Item clicked |
column | [int] Column clicked |
Definition at line 69 of file stdr_info_connector.cpp.
void stdr_gui::CInfoConnector::adaptColumns | ( | QTreeWidgetItem * | item | ) | [slot] |
Adapts the columns width according to what is visible when an item expands or collapses.
item | [QTreeWidgetItem*] Item expanded / collapsed |
Definition at line 82 of file stdr_info_connector.cpp.
void stdr_gui::CInfoConnector::adaptSignal | ( | void | ) | [signal] |
Emmited when resize of columns according to whats visible is needed.
void stdr_gui::CInfoConnector::adaptSlot | ( | void | ) | [slot] |
Adapts the columns width according to what is visible. Called when adaptSignal is emmited.
Definition at line 94 of file stdr_info_connector.cpp.
void stdr_gui::CInfoConnector::co2SensorVisibilityClicked | ( | QString | robotName, |
QString | co2SensorName | ||
) | [signal] |
Emmited when a co2 sensor visibility icon is clicked.
robotName | [QString] The robot frame id |
co2SensorName | [QString] The co2 sensor frame id |
QWidget * stdr_gui::CInfoConnector::getLoader | ( | void | ) |
Returns the CInfoLoader object.
Definition at line 199 of file stdr_info_connector.cpp.
void stdr_gui::CInfoConnector::laserVisibilityClicked | ( | QString | robotName, |
QString | laserName | ||
) | [signal] |
Emmited when a laser visibility icon is clicked.
robotName | [QString] The robot frame id |
laserName | [QString] The laser frame id |
void stdr_gui::CInfoConnector::laserVisualizerClicked | ( | QString | robotName, |
QString | laserName | ||
) | [signal] |
Emmited when a laser visualizer is clicked.
robotName | [QString] The robot frame id |
laserName | [QString] The laser frame id |
void stdr_gui::CInfoConnector::rfidReaderVisibilityClicked | ( | QString | robotName, |
QString | rfidReaderName | ||
) | [signal] |
Emmited when a rfid reader visibility icon is clicked.
robotName | [QString] The robot frame id |
rfidReaderName | [QString] The rfid reader frame id |
void stdr_gui::CInfoConnector::robotVisibilityClicked | ( | QString | robotName | ) | [signal] |
Emmited when a robot visibility icon is clicked.
robotName | [QString] The robot frame id |
void stdr_gui::CInfoConnector::robotVisualizerClicked | ( | QString | robotName | ) | [signal] |
Emmited when a robot visualizer is clicked.
robotName | [QString] The robot frame id |
void stdr_gui::CInfoConnector::setCO2SensorVisibility | ( | QString | robotName, |
QString | sensorName, | ||
char | vs | ||
) | [slot] |
Changes a co2 sensor visibility icon.
robotName | [QString] The robot frame id |
co2SensorName | [QString] The co2Sensor frame id |
vs | [char] The visibility state |
robotName | [QString] The robot frame id |
sensorName | [QString] The sensor frame id |
vs | [char] The visibility state |
Definition at line 366 of file stdr_info_connector.cpp.
void stdr_gui::CInfoConnector::setLaserVisibility | ( | QString | robotName, |
QString | laserName, | ||
char | vs | ||
) | [slot] |
Changes a laser visibility icon.
robotName | [QString] The robot frame id |
laserName | [QString] The laser frame id |
vs | [char] The visibility state |
Definition at line 211 of file stdr_info_connector.cpp.
void stdr_gui::CInfoConnector::setRfidReaderVisibility | ( | QString | robotName, |
QString | rfidReaderName, | ||
char | vs | ||
) | [slot] |
Changes a rfid reader visibility icon.
robotName | [QString] The robot frame id |
rfidReaderName | [QString] The rfidReader frame id |
vs | [char] The visibility state |
robotName | [QString] The robot frame id |
rfidReaderName | [QString] The rfid reader frame id |
vs | [char] The visibility state |
Definition at line 315 of file stdr_info_connector.cpp.
void stdr_gui::CInfoConnector::setRobotVisibility | ( | QString | robotName, |
char | vs | ||
) | [slot] |
Changes a robot visibility icon.
robotName | [QString] The robot frame id |
vs | [char] The visibility state |
Definition at line 519 of file stdr_info_connector.cpp.
void stdr_gui::CInfoConnector::setSonarVisibility | ( | QString | robotName, |
QString | sonarName, | ||
char | vs | ||
) | [slot] |
Changes a sonar visibility icon.
robotName | [QString] The robot frame id |
sonarName | [QString] The sonar frame id |
vs | [char] The visibility state |
Definition at line 263 of file stdr_info_connector.cpp.
void stdr_gui::CInfoConnector::setSoundSensorVisibility | ( | QString | robotName, |
QString | sensorName, | ||
char | vs | ||
) | [slot] |
Changes a sound sensor visibility icon.
robotName | [QString] The robot frame id |
soundSensorName | [QString] The soundSensor frame id |
vs | [char] The visibility state |
robotName | [QString] The robot frame id |
sensorName | [QString] The sensor frame id |
vs | [char] The visibility state |
Definition at line 468 of file stdr_info_connector.cpp.
void stdr_gui::CInfoConnector::setThermalSensorVisibility | ( | QString | robotName, |
QString | sensorName, | ||
char | vs | ||
) | [slot] |
Changes a thermal sensor visibility icon.
robotName | [QString] The robot frame id |
thermalSensorName | [QString] The thermalSensor frame id |
vs | [char] The visibility state |
robotName | [QString] The robot frame id |
sensorName | [QString] The sensor frame id |
vs | [char] The visibility state |
Definition at line 417 of file stdr_info_connector.cpp.
void stdr_gui::CInfoConnector::sonarVisibilityClicked | ( | QString | robotName, |
QString | sonarName | ||
) | [signal] |
Emmited when a sonar visibility icon is clicked.
robotName | [QString] The robot frame id |
sonarName | [QString] The sonar frame id |
void stdr_gui::CInfoConnector::sonarVisualizerClicked | ( | QString | robotName, |
QString | sonarName | ||
) | [signal] |
Emmited when a sonar visualizer is clicked.
robotName | [QString] The robot frame id |
sonarName | [QString] The sonar frame id |
void stdr_gui::CInfoConnector::soundSensorVisibilityClicked | ( | QString | robotName, |
QString | soundSensorName | ||
) | [signal] |
Emmited when a sound sensor visibility icon is clicked.
robotName | [QString] The robot frame id |
soundSensorName | [QString] The sound sensor frame id |
void stdr_gui::CInfoConnector::thermalSensorVisibilityClicked | ( | QString | robotName, |
QString | thermalSensorName | ||
) | [signal] |
Emmited when a thermal sensor visibility icon is clicked.
robotName | [QString] The robot frame id |
thermalSensorName | [QString] The thermal sensor frame id |
void stdr_gui::CInfoConnector::treeItemClicked | ( | QTreeWidgetItem * | item, |
int | column | ||
) | [slot] |
Called when a click occurs in the tree.
item | [QTreeWidgetItem*] Item clicked |
column | [int] Column clicked |
Definition at line 136 of file stdr_info_connector.cpp.
void stdr_gui::CInfoConnector::updateMapInfo | ( | float | width, |
float | height, | ||
float | ocgd | ||
) |
Updates the information tree according to the specific map.
width | [float] The map width |
height | [float] The map height |
ocgd | [float] The map resolution (m/pixel) |
Definition at line 109 of file stdr_info_connector.cpp.
void stdr_gui::CInfoConnector::updateTree | ( | const stdr_msgs::RobotIndexedVectorMsg & | msg | ) |
Updates the information tree according to the ensemble of robots.
msg | [const stdr_msgs::RobotIndexedVectorMsg&] The existent robots |
Definition at line 120 of file stdr_info_connector.cpp.
int stdr_gui::CInfoConnector::argc_ [private] |
char** stdr_gui::CInfoConnector::argv_ [private] |
Definition at line 46 of file stdr_info_connector.h.
< Object of CInfoLoader
Definition at line 52 of file stdr_info_connector.h.