17 #ifndef GZ_SIM_RENDERUTIL_HH_
18 #define GZ_SIM_RENDERUTIL_HH_
25 #include <sdf/Sensor.hh>
27 #include <gz/sim/config.hh>
28 #include <gz/sim/rendering/Export.hh>
40 inline namespace GZ_SIM_VERSION_NAMESPACE {
42 class RenderUtilPrivate;
57 public:
void Destroy();
64 public:
int PendingSensors()
const;
67 public:
void Update();
71 public: rendering::ScenePtr
Scene()
const;
76 public:
void UpdateECM(
const UpdateInfo &_info,
80 public:
void UpdateFromECM(
const UpdateInfo &_info,
93 public:
void SetEngineName(
const std::string &_engineName);
101 public:
void SetHeadlessRendering(
const bool &_headless);
105 public:
bool HeadlessRendering()
const;
109 public:
void SetSceneName(
const std::string &_sceneName);
117 public:
void SetScene(
const rendering::ScenePtr &_scene);
122 public:
void SetBackgroundColor(
const math::Color &_color);
127 public:
void SetAmbientLight(
const math::Color &_ambient);
131 public:
void SetSkyEnabled(
bool _enabled);
134 public:
void ShowGrid();
138 public:
void SetUseCurrentGLContext(
bool _enable);
156 public :
void SetRemoveSensorCb(
161 public:
void ViewTransparent(
const Entity &_entity);
165 public:
void ViewCOM(
const Entity &_entity);
169 public:
void ViewInertia(
const Entity &_entity);
173 public:
void ViewJoints(
const Entity &_entity);
177 public:
void ViewWireframes(
const Entity &_entity);
181 public:
void ViewCollisions(
const Entity &_entity);
194 public: std::chrono::steady_clock::duration SimTime()
const;
198 public:
void SetSelectedEntity(
const rendering::NodePtr &_node);
205 public:
void DeselectAllEntities();
209 public:
void InitRenderEnginePluginPaths();
218 private:
void HideWireboxes(
const Entity &_entity);
222 public:
void SetTransformActive(
bool _active);