Handle for rotating an editor item.
More...
#include <RotateHandle.hh>
Handle for rotating an editor item.
gazebo::gui::RotateHandle::RotateHandle |
( |
QGraphicsItem * |
_parent = 0 | ) |
|
Constructor param[in] _parent Parent graphics item.
gazebo::gui::RotateHandle::~RotateHandle |
( |
| ) |
|
virtual QRectF gazebo::gui::RotateHandle::boundingRect |
( |
| ) |
const |
|
virtual |
Get the bounding box of the rotate handle.
- Returns
- The grabber handle bounding box.
double gazebo::gui::RotateHandle::GetMouseDownX |
( |
| ) |
const |
Get the X position of the mouse press.
- Returns
- Mouse press X position in pixel coordinates.
double gazebo::gui::RotateHandle::GetMouseDownY |
( |
| ) |
const |
Get the Y position of the mouse press.
- Returns
- Mouse press Y position in pixel coordinates.
int gazebo::gui::RotateHandle::GetMouseState |
( |
| ) |
const |
Get the current mouse state.
void gazebo::gui::RotateHandle::hoverEnterEvent |
( |
QGraphicsSceneHoverEvent * |
_event | ) |
|
|
protected |
Qt mouse hover enter event.
- Parameters
-
[in] | _event | Qt mouse hover event |
void gazebo::gui::RotateHandle::hoverLeaveEvent |
( |
QGraphicsSceneHoverEvent * |
_event | ) |
|
|
protected |
Qt mouse hover leave event.
- Parameters
-
[in] | _event | Qt mouse hover event |
void gazebo::gui::RotateHandle::mouseMoveEvent |
( |
QGraphicsSceneMouseEvent * |
_event | ) |
|
|
protected |
Qt mouse move event.
- Parameters
-
void gazebo::gui::RotateHandle::mousePressEvent |
( |
QGraphicsSceneMouseEvent * |
_event | ) |
|
|
protected |
Qt mouse press event.
- Parameters
-
void gazebo::gui::RotateHandle::mouseReleaseEvent |
( |
QGraphicsSceneMouseEvent * |
_event | ) |
|
|
protected |
Qt mouse release event.
- Parameters
-
void gazebo::gui::RotateHandle::SetMouseDownX |
( |
double |
_x | ) |
|
Set the X position of the mouse press.
- Parameters
-
[in] | _x | Mouse press X position in pixel coordinates. |
void gazebo::gui::RotateHandle::SetMouseDownY |
( |
double |
_y | ) |
|
Set the Y position of the mouse press.
- Parameters
-
[in] | _y | Mouse press Y position in pixel coordinates. |
void gazebo::gui::RotateHandle::SetMouseState |
( |
int |
_state | ) |
|
Set the current mouse state.
The documentation for this class was generated from the following file: