2D line segment. More...
#include <LineSegmentItem.hh>


Public Member Functions | |
| LineSegmentItem (QGraphicsItem *_parent=0, int _index=0) | |
| Constructor. More... | |
| ~LineSegmentItem () | |
| Destructor. More... | |
| int | GetIndex () const |
| Get the index of the line. More... | |
| double | GetMouseDownX () const |
| Get the X position of the mouse press. More... | |
| double | GetMouseDownY () const |
| Get the Y position of the mouse press. More... | |
| int | GetMouseState () const |
| Get the current mouse state. More... | |
| QVector3D | GetScenePosition () const |
| Get the scene position of editor item. More... | |
| double | GetSceneRotation () const |
| Get the scene rotation of the editor item. More... | |
| QVector3D | GetSize () const |
| Get the size of the item in pixels. More... | |
| void | SetEndPoint (const QPointF &_end) |
| Set the end position of the line. More... | |
| void | SetLine (const QPointF &_start, const QPointF &_end) |
| Set the line. More... | |
| void | SetMouseDownX (double _x) |
| Set the X position of the mouse press. More... | |
| void | SetMouseDownY (double _y) |
| Set the Y position of the mouse press. More... | |
| void | SetMouseState (int _state) |
| Set the current mouse state. More... | |
| void | SetStartPoint (const QPointF &_start) |
| Set the start position of the line. More... | |
| void | Update () |
| Update by emtting the LineChanged signal. More... | |
Public Member Functions inherited from gazebo::gui::EditorItem | |
| EditorItem () | |
| Constructor. More... | |
| ~EditorItem () | |
| Destructor. More... | |
| virtual std::string | GetName () const |
| Get the name of the editor item. More... | |
| virtual std::string | GetType () const |
| Get the type of the editor item. More... | |
| virtual void | SetName (const std::string &_name) |
| Set the name of this editor item. More... | |
Additional Inherited Members | |
Signals inherited from gazebo::gui::EditorItem | |
| void | DepthChanged (double _depth) |
| Qt signal emitted when the editor item depth has changed. More... | |
| void | HeightChanged (double _height) |
| Qt signal emitted when the editor item height has changed. More... | |
| void | ItemDeleted () |
| Qt signal emitted when the editor item is being deleted. More... | |
| void | PoseChanged (double _x, double _y, double _z, double _roll, double _pitch, double _yaw) |
| Qt signal emitted when the editor item pose has changed. More... | |
| void | PoseOriginTransformed (double _x, double _y, double _z, double _roll, double _pitch, double _yaw) |
| Qt signal emitted when the editor item pose origin has changed. More... | |
| void | PositionChanged (double _x, double _y, double _z) |
| Qt signal emitted when the editor item position has changed. More... | |
| void | PosXChanged (double _posX) |
| Qt signal emitted when the editor item's X position has changed. More... | |
| void | PosYChanged (double _posY) |
| Qt signal emitted when the editor item's Y position has changed. More... | |
| void | PosZChanged (double _posZ) |
| Qt signal emitted when the editor item's Z position has changed. More... | |
| void | RotationChanged (double _roll, double _pitch, double _yaw) |
| Qt signal emitted when the editor item rotation has changed. More... | |
| void | SizeChanged (double _width, double _depth, double _height) |
| Qt signal emitted when the editor item size has changed. More... | |
| void | WidthChanged (double _width) |
| Qt signal emitted when the editor item width has changed. More... | |
| void | YawChanged (double _yaw) |
| Qt signal emitted when the editor item yaw rotation has changed. More... | |
Protected Attributes inherited from gazebo::gui::EditorItem | |
| std::string | editorType |
| Type of editor item. More... | |
| std::string | name |
| Name of editor item. More... | |
2D line segment.
| gazebo::gui::LineSegmentItem::LineSegmentItem | ( | QGraphicsItem * | _parent = 0, |
| int | _index = 0 |
||
| ) |
Constructor.
| [in] | _parent | Parent graphics item. |
| [in] | _index | Index of the line segment in polyline. |
| gazebo::gui::LineSegmentItem::~LineSegmentItem | ( | ) |
Destructor.
| int gazebo::gui::LineSegmentItem::GetIndex | ( | ) | const |
Get the index of the line.
| double gazebo::gui::LineSegmentItem::GetMouseDownX | ( | ) | const |
Get the X position of the mouse press.
| double gazebo::gui::LineSegmentItem::GetMouseDownY | ( | ) | const |
Get the Y position of the mouse press.
| int gazebo::gui::LineSegmentItem::GetMouseState | ( | ) | const |
Get the current mouse state.
|
virtual |
Get the scene position of editor item.
Reimplemented from gazebo::gui::EditorItem.
|
virtual |
Get the scene rotation of the editor item.
Reimplemented from gazebo::gui::EditorItem.
|
virtual |
Get the size of the item in pixels.
Reimplemented from gazebo::gui::EditorItem.
| void gazebo::gui::LineSegmentItem::SetEndPoint | ( | const QPointF & | _end | ) |
Set the end position of the line.
| [in] | _end | End position of the line in pixel coordinates. |
| void gazebo::gui::LineSegmentItem::SetLine | ( | const QPointF & | _start, |
| const QPointF & | _end | ||
| ) |
Set the line.
| [in] | _start | Start position of the line in pixel coordinates. |
| [in] | _end | End position of the line in pixel coordinates. |
| void gazebo::gui::LineSegmentItem::SetMouseDownX | ( | double | _x | ) |
Set the X position of the mouse press.
| [in] | _x | Mouse press X position in pixel coordinates. |
| void gazebo::gui::LineSegmentItem::SetMouseDownY | ( | double | _y | ) |
Set the Y position of the mouse press.
| [in] | _y | Mouse press Y position in pixel coordinates. |
| void gazebo::gui::LineSegmentItem::SetMouseState | ( | int | _state | ) |
Set the current mouse state.
| [in] | _state | Mouse state. |
| void gazebo::gui::LineSegmentItem::SetStartPoint | ( | const QPointF & | _start | ) |
Set the start position of the line.
| [in] | _start | Start position of the line in pixel coordinates. |
| void gazebo::gui::LineSegmentItem::Update | ( | ) |
Update by emtting the LineChanged signal.