18#ifndef _GAZEBO_APPLYWRENCHVISUAL_HH_
19#define _GAZEBO_APPLYWRENCHVISUAL_HH_
60 public:
virtual void Fini();
65 public:
void SetCoM(
const ignition::math::Vector3d &_comVector);
70 public:
void SetForcePos(
const ignition::math::Vector3d &_forcePosVector);
76 public:
void SetForce(
const ignition::math::Vector3d &_forceVector,
77 const bool _rotatedByMouse);
83 public:
void SetTorque(
const ignition::math::Vector3d &_torqueVector,
84 const bool _rotatedByMouse);
rendering
Definition RenderEngine.hh:31
Visualization for the apply wrench GUI.
Definition ApplyWrenchVisual.hh:35
void Resize()
Resize all children according to target link's size.
void SetForce(const ignition::math::Vector3d &_forceVector, const bool _rotatedByMouse)
Update force vector, force text and mode.
void SetForcePos(const ignition::math::Vector3d &_forcePosVector)
Set the force position vector and update the position of the force visual.
virtual void Fini()
Helper for the destructor.
rendering::VisualPtr GetTorqueVisual() const
Returns the torque visual.
ApplyWrenchVisual(const std::string &_name, VisualPtr _parentVis)
Constructor.
Mode
Definition ApplyWrenchVisual.hh:39
void UpdateForceVisual()
Update the force visual according to the force and force position vectors.
void SetTorque(const ignition::math::Vector3d &_torqueVector, const bool _rotatedByMouse)
Update torque vector, torque text and mode.
void SetMode(Mode _mode)
Set the mode to force, torque or none, update colors and visibility accordingly.
void UpdateTorqueVisual()
Update the torque visual according to the torque and CoM vectors.
rendering::SelectionObjPtr GetRotTool() const
Returns the rotation tool.
void Load()
Load the visual with default parameters.
void SetCoM(const ignition::math::Vector3d &_comVector)
Set the CoM vector and update the position of the torque visual.
virtual ~ApplyWrenchVisual()
Destructor.
rendering::VisualPtr GetForceVisual() const
Returns the force visual.
A renderable object.
Definition Visual.hh:61
std::shared_ptr< Visual > VisualPtr
Definition RenderTypes.hh:114
std::shared_ptr< SelectionObj > SelectionObjPtr
Definition RenderTypes.hh:190
Forward declarations for the common classes.
Definition Animation.hh:27
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition system.hh:59