17 #ifndef _MAINWINDOW_HH_
18 #define _MAINWINDOW_HH_
25 #include "gazebo/gazebo_config.h"
28 #include "gazebo/msgs/MessageTypes.hh"
42 class ModelListWidget;
55 public:
unsigned int GetEntityId(
const std::string &_name);
56 public:
bool HasEntityName(
const std::string &_name);
61 public:
void AddToLeftColumn(
const std::string &_name, QWidget *_widget);
68 public:
void ShowLeftColumnWidget(
const std::string &_name =
"default");
75 public slots:
void Play();
78 public slots:
void Pause();
80 protected:
void closeEvent(QCloseEvent *_event);
82 private:
void OnGUI(ConstGUIPtr &_msg);
84 private slots:
void ItemSelected(QTreeWidgetItem *,
int);
85 private slots:
void New();
86 private slots:
void Open();
87 private slots:
void Import();
88 private slots:
void Save();
89 private slots:
void SaveAs();
92 private slots:
void SaveINI();
94 private slots:
void About();
95 private slots:
void Step();
96 private slots:
void NewModel();
97 private slots:
void Arrow();
100 private slots:
void Translate();
103 private slots:
void Rotate();
106 private slots:
void Scale();
108 private slots:
void CreateBox();
109 private slots:
void CreateSphere();
110 private slots:
void CreateCylinder();
111 private slots:
void CreateMesh();
112 private slots:
void CreatePointLight();
113 private slots:
void CreateSpotLight();
114 private slots:
void CreateDirectionalLight();
117 private slots:
void CaptureScreenshot();
119 private slots:
void InsertModel();
120 private slots:
void ShowGrid();
121 private slots:
void ShowCollisions();
122 private slots:
void ShowJoints();
123 private slots:
void ShowContacts();
124 private slots:
void ShowCOM();
125 private slots:
void Reset();
126 private slots:
void FullScreen();
127 private slots:
void FPS();
128 private slots:
void Orbit();
129 private slots:
void ViewOculus();
130 private slots:
void OnResetModelOnly();
131 private slots:
void OnResetWorld();
132 private slots:
void SetTransparent();
133 private slots:
void SetWireframe();
136 private slots:
void OnPlayActionChanged();
142 private slots:
void SelectTopic();
149 private:
void OnFullScreen(
bool _value);
150 private:
void OnMoveMode(
bool _mode);
153 private:
void CreateActions();
156 private:
void CreateMenus();
159 private:
void CreateToolbars();
162 private:
void CreateMenuBar();
165 private:
void CreateEditors();
171 public:
void ShowMenuBar(QMenuBar *_bar =
NULL);
173 private:
void OnModel(ConstModelPtr &_msg);
177 private:
void OnLight(ConstLightPtr &_msg);
179 private:
void OnResponse(ConstResponsePtr &_msg);
180 private:
void OnWorldModify(ConstWorldModifyPtr &_msg);
181 private:
void OnManipMode(
const std::string &_mode);
182 private:
void OnSetSelectedEntity(
const std::string &_name,
183 const std::string &_mode);
184 private:
void OnStats(ConstWorldStatisticsPtr &_msg);
188 private:
void OnInputStepSizeChanged(
int _value);
192 private:
void OnFollow(
const std::string &_modelName);
198 private:
void CreateDisabledIcon(
const std::string &_pixmap,
201 private: QToolBar *playToolbar;
221 private: QDockWidget *toolsDock;
223 private: std::vector<event::ConnectionPtr> connections;
226 private: std::map<std::string, unsigned int> entities;
229 private: msgs::Request *requestMsg;
232 private: QTabWidget *tabWidget;
235 private: QMenuBar *menuBar;
238 private: QMenu *editMenu;
241 private: QHBoxLayout *menuLayout;
244 private: QStackedWidget *leftColumn;
247 private: std::map<std::string, int> leftColumnStack;
251 private: std::string saveFilename;
254 private:
int inputStepSize;
257 private: std::list<Editor*> editors;
A widget that provides data logging functionality.
Definition: DataLogger.hh:34
A widget that renders a camera view suitable for the Oculus Rift.
Definition: OculusWindow.hh:39
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:48
Forward declarations for transport.
Plot diagnostic information.
Definition: gui/Diagnostics.hh:39
#define NULL
Definition: CommonTypes.hh:30
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:52
Definition: MainWindow.hh:45
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:44
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48