17 #ifndef _GAZEBO_GUI_MAINWINDOW_HH_
18 #define _GAZEBO_GUI_MAINWINDOW_HH_
23 #include "gazebo/gazebo_config.h"
25 #include "gazebo/msgs/MessageTypes.hh"
41 class MainWindowPrivate;
62 public:
unsigned int EntityId(
const std::string &_name);
67 public:
bool HasEntityName(
const std::string &_name);
72 public:
void AddToLeftColumn(
const std::string &_name, QWidget *_widget);
79 public:
void ShowLeftColumnWidget(
const std::string &_name =
"default");
93 public:
bool IsPaused()
const;
96 public slots:
void Play();
99 public slots:
void Pause();
103 public:
void SetLeftPaneVisibility(
bool _on);
107 public:
void AddMenu(QMenu *_menu);
113 public:
void ShowMenuBar(QMenuBar *_bar =
NULL);
123 public: QAction *CloneAction(QAction *_action, QObject *_parent);
138 signals:
void AddPlugins();
141 signals:
void Close();
143 protected:
void closeEvent(QCloseEvent *_event);
145 private:
void OnGUI(ConstGUIPtr &_msg);
147 private slots:
void ItemSelected(QTreeWidgetItem *,
int);
148 private slots:
void New();
149 private slots:
void Open();
150 private slots:
void Save();
151 private slots:
void SaveAs();
154 private slots:
void SaveINI();
157 private slots:
void Clone();
160 private slots:
void HotkeyChart();
163 private slots:
void About();
165 private slots:
void Step();
168 private slots:
void Arrow();
171 private slots:
void Translate();
174 private slots:
void Rotate();
177 private slots:
void Scale();
181 private slots:
void Align();
184 private slots:
void Snap();
186 private slots:
void CreateBox();
187 private slots:
void CreateSphere();
188 private slots:
void CreateCylinder();
189 private slots:
void CreateMesh();
190 private slots:
void CreatePointLight();
191 private slots:
void CreateSpotLight();
192 private slots:
void CreateDirectionalLight();
195 private slots:
void CaptureScreenshot();
197 private slots:
void InsertModel();
200 private slots:
void ShowGrid();
203 private slots:
void ShowOrigin();
206 private slots:
void ShowCollisions();
209 private slots:
void ShowJoints();
212 private slots:
void ShowContacts();
215 private slots:
void ShowCOM();
218 private slots:
void ShowInertia();
221 private slots:
void ShowLinkFrame();
224 private slots:
void FullScreen();
227 private slots:
void ShowToolbars();
229 private slots:
void FPS();
230 private slots:
void Orbit();
231 private slots:
void ViewOculus();
232 private slots:
void OnResetModelOnly();
233 private slots:
void OnResetWorld();
234 private slots:
void SetTransparent();
235 private slots:
void SetWireframe();
238 private slots:
void ShowGUIOverlays();
244 private slots:
void OnDataLoggerClosed();
247 private slots:
void SelectTopic();
253 private slots:
void OnAddPlugins();
257 private slots:
void OnEditorGroup(QAction *_action);
261 private:
void OnFullScreen(
bool _value);
265 private:
void OnShowToolbars(
bool _value);
267 private:
void OnMoveMode(
bool _mode);
270 private:
void CreateActions();
273 private:
void DeleteActions();
276 private:
void CreateMenus();
279 private:
void CreateMenuBar();
282 private:
void CreateEditors();
284 private:
void OnModel(ConstModelPtr &_msg);
288 private:
void OnLight(ConstLightPtr &_msg);
290 private:
void OnResponse(ConstResponsePtr &_msg);
291 private:
void OnWorldModify(ConstWorldModifyPtr &_msg);
292 private:
void OnManipMode(
const std::string &_mode);
293 private:
void OnSetSelectedEntity(
const std::string &_name,
294 const std::string &_mode);
298 private:
void OnInputStepSizeChanged(
int _value);
302 private:
void OnFollow(
const std::string &_modelName);
308 private:
void CreateDisabledIcon(
const std::string &_pixmap,
313 private:
void OnWindowMode(
const std::string &_mode);
317 private: std::unique_ptr<MainWindowPrivate> dataPtr;
A widget that provides data logging functionality.
Definition: DataLogger.hh:37
#define GZ_GUI_VISIBLE
Definition: system.hh:284
#define GAZEBO_DEPRECATED(version)
Definition: CommonTypes.hh:48
Plot diagnostic information.
Definition: gui/Diagnostics.hh:34
#define NULL
Definition: CommonTypes.hh:31
Definition: MainWindow.hh:43
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
Base class for editors, such as BuildingEditor and TerrainEditor.
Definition: Editor.hh:35