Gazebo Sim

API Reference

9.0.0~pre1
Gui.hh
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 Open Source Robotics Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17
18#ifndef GZ_SIM_GUI_GUI_HH_
19#define GZ_SIM_GUI_GUI_HH_
20
21#include <memory>
22#include <string>
23#include <gz/gui/Application.hh>
24
25#include "gz/sim/config.hh"
26#include "gz/sim/gui/Export.hh"
27
28namespace gz
29{
30namespace sim
31{
32// Inline bracket to help doxygen filtering.
33inline namespace GZ_SIM_VERSION_NAMESPACE {
34namespace gui
35{
47 GZ_SIM_GUI_VISIBLE int runGui(int &_argc,
48 char **_argv, const char *_guiConfig, const char *_renderEngine = nullptr);
49
66 GZ_SIM_GUI_VISIBLE int runGui(int &_argc, char **_argv,
67 const char *_guiConfig, const char *_sdfFile, int _waitGui,
68 const char *_renderEngine = nullptr,
69 const char *_renderEngineApiBackend = nullptr);
70
89 GZ_SIM_GUI_VISIBLE
91 int &_argc, char **_argv, const char *_guiConfig,
92 const char *_defaultGuiConfig = nullptr, bool _loadPluginsFromSdf = true,
93 const char *_renderEngine = nullptr);
94
118 GZ_SIM_GUI_VISIBLE
120 int &_argc, char **_argv, const char *_guiConfig,
121 const char *_defaultGuiConfig, bool _loadPluginsFromSdf,
122 const char *_sdfFile, int _waitGui, const char *_renderEngine = nullptr,
123 const char *_renderEngineGuiApiBackend = nullptr );
124} // namespace gui
125} // namespace GZ_SIM_VERSION_NAMESPACE
126} // namespace sim
127} // namespace gz
128
129#endif