17 #ifndef GAZEBO_GUI_MODELMANIPULATOR_HH_
18 #define GAZEBO_GUI_MODELMANIPULATOR_HH_
22 #include <ignition/math/Vector2.hh>
23 #include <ignition/math/Vector3.hh>
24 #include <ignition/math/Pose3.hh>
42 class ModelManipulatorPrivate;
63 public:
void Detach();
67 public:
void SetManipulationMode(
const std::string &_mode);
106 const ignition::math::Vector3d &_axis,
107 const bool _local =
false);
123 const ignition::math::Vector3d &_axis,
124 const bool _local =
false);
140 const ignition::math::Vector3d &_axis,
141 const bool _local =
false);
153 double _interval = 1.0,
double _sensitivity = 0.4)
164 public:
static ignition::math::Vector3d SnapPoint(
165 const ignition::math::Vector3d &_point,
166 const double _interval = 1.0,
const double _sensitivity = 0.4);
183 public:
static ignition::math::Vector3d MousePositionOnPlane(
210 public:
static ignition::math::Vector3d MouseMoveDistance(
212 const ignition::math::Vector2i &_start,
213 const ignition::math::Vector2i &_end,
214 const ignition::math::Pose3d &_pose,
215 const ignition::math::Vector3d &_axis,
const bool _local);
222 private: ignition::math::Vector3d MouseMoveDistance(
223 const ignition::math::Pose3d &_pose,
224 const ignition::math::Vector3d &_axis,
const bool _local)
const;
244 private: ignition::math::Vector3d UpdateScale(
245 const ignition::math::Vector3d &_axis,
246 const ignition::math::Vector3d &_scale,
const std::string &_geom);
253 private: std::unique_ptr<ModelManipulatorPrivate> dataPtr;
Generic description of a mouse event.
Definition: MouseEvent.hh:35
Encapsulates a position and rotation in three space.
Definition: Pose.hh:42
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:44
Generic integer x, y vector.
Definition: Vector2i.hh:36
Generic description of a keyboard event.
Definition: KeyEvent.hh:32
Singleton template class.
Definition: SingletonT.hh:33
Manipulator tool for translating/rotating/scaling models and links.
Definition: ModelManipulator.hh:47
#define GAZEBO_DEPRECATED(version)
Definition: system.hh:302
std::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:113
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
boost::shared_ptr< Camera > CameraPtr
Definition: RenderTypes.hh:89