17#ifndef GZ_SIM_WRENCHVISUALIZER_HH_
18#define GZ_SIM_WRENCHVISUALIZER_HH_
22#include <gz/sim/config.hh>
23#include <gz/sim/rendering/Export.hh>
24#include <gz/utils/ImplPtr.hh>
27#include <gz/rendering/RenderTypes.hh>
34inline namespace GZ_SIM_VERSION_NAMESPACE
39 class GZ_SIM_RENDERING_VISIBLE WrenchVisualizer
42 public: WrenchVisualizer();
45 public: ~WrenchVisualizer();
50 bool Init(rendering::ScenePtr _scene);
55 public: rendering::ArrowVisualPtr CreateForceVisual(
56 rendering::MaterialPtr _material);
61 public: rendering::VisualPtr CreateTorqueVisual(
62 rendering::MaterialPtr _material);
71 public:
void UpdateVectorVisual(rendering::VisualPtr _visual,
72 const math::Vector3d &_direction,
73 const math::Vector3d &_position,
75 const bool _tip =
false);
79 GZ_UTILS_UNIQUE_IMPL_PTR(dataPtr)