stdr_info_loader.h
Go to the documentation of this file.
1 /******************************************************************************
2  STDR Simulator - Simple Two DImensional Robot Simulator
3  Copyright (C) 2013 STDR Simulator
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 3 of the License, or
7  (at your option) any later version.
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software Foundation,
14  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15 
16  Authors :
17  * Manos Tsardoulias, etsardou@gmail.com
18  * Aris Thallas, aris.thallas@gmail.com
19  * Chris Zalidis, zalidis@gmail.com
20 ******************************************************************************/
21 
22 #ifndef STDR_INFO_LOADER
23 #define STDR_INFO_LOADER
24 
25 #include "ui_information.h"
26 #include "stdr_gui/stdr_tools.h"
27 
32 namespace stdr_gui
33 {
38  class CInfoLoader :
39  public QWidget,
40  public Ui_information
41  {
42  //------------------------------------------------------------------------//
43  private:
44 
46  int argc_;
48  char ** argv_;
49 
52 
53  //------------------------------------------------------------------------//
54  public:
55 
58 
61 
64 
66  QTreeWidgetItem generalInfo;
68  QTreeWidgetItem robotsInfo;
70  QTreeWidgetItem mapHeight;
72  QTreeWidgetItem mapWidth;
74  QTreeWidgetItem mapOcgd;
75 
82  CInfoLoader(int argc, char **argv);
83 
88  ~CInfoLoader(void);
89 
94  void deleteTree(void);
95 
101  void deleteTreeNode(QTreeWidgetItem *item);
102 
110  void updateMapInfo(float width,float height,float ocgd);
111 
117  void updateRobots(const stdr_msgs::RobotIndexedVectorMsg& msg);
118 
123  void autoResizeColumns(void);
124  };
125 }
126 
127 #endif
~CInfoLoader(void)
Default destructor.
QIcon visible_icon_off_
Icon of visibility medium (orange)
int argc_
< Number of input arguments
QIcon visible_icon_on_
< Icon of visibility on (green)
CInfoLoader(int argc, char **argv)
Default contructor.
void deleteTree(void)
Deletes the information tree.
QTreeWidgetItem robotsInfo
Tree item : Map height.
Implements the low level Qt functionalities of the information tree. Inherits from Ui_information (ge...
QTreeWidgetItem mapHeight
Tree item : Map width.
QTreeWidgetItem mapOcgd
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 deleteTreeNode(QTreeWidgetItem *item)
Deletes a specific tree node. Recursive function.
void autoResizeColumns(void)
Autoresizes the columns according to the visible contents.
QTreeWidgetItem mapWidth
Tree item : Map resolution.
QTreeWidgetItem generalInfo
Tree item : Robot root.
char ** argv_
Icon of visualization actions.
void updateMapInfo(float width, float height, float ocgd)
Updates the information tree according to the specific map.


stdr_gui
Author(s): Manos Tsardoulias
autogenerated on Mon Jun 10 2019 15:15:16