All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
gazebo::gui::LineSegmentItem Class Reference

2D line segment. More...

#include <LineSegmentItem.hh>

Inheritance diagram for gazebo::gui::LineSegmentItem:
Inheritance graph
[legend]
Collaboration diagram for gazebo::gui::LineSegmentItem:
Collaboration graph
[legend]

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...
 

Detailed Description

2D line segment.

Constructor & Destructor Documentation

gazebo::gui::LineSegmentItem::LineSegmentItem ( QGraphicsItem *  _parent = 0,
int  _index = 0 
)

Constructor.

Parameters
[in]_parentParent graphics item.
[in]_indexIndex of the line segment in polyline.
gazebo::gui::LineSegmentItem::~LineSegmentItem ( )

Destructor.

Member Function Documentation

int gazebo::gui::LineSegmentItem::GetIndex ( ) const

Get the index of the line.

Returns
The index of the line.
double gazebo::gui::LineSegmentItem::GetMouseDownX ( ) const

Get the X position of the mouse press.

Returns
Mouse press X position in pixel coordinates.
double gazebo::gui::LineSegmentItem::GetMouseDownY ( ) const

Get the Y position of the mouse press.

Returns
Mouse press Y position in pixel coordinates.
int gazebo::gui::LineSegmentItem::GetMouseState ( ) const

Get the current mouse state.

QVector3D gazebo::gui::LineSegmentItem::GetScenePosition ( ) const
virtual

Get the scene position of editor item.

Returns
Scene position in pixel coordinates.

Reimplemented from gazebo::gui::EditorItem.

double gazebo::gui::LineSegmentItem::GetSceneRotation ( ) const
virtual

Get the scene rotation of the editor item.

Returns
Scene rotation in degrees.

Reimplemented from gazebo::gui::EditorItem.

QVector3D gazebo::gui::LineSegmentItem::GetSize ( ) const
virtual

Get the size of the item in pixels.

Returns
Size in pixels.

Reimplemented from gazebo::gui::EditorItem.

void gazebo::gui::LineSegmentItem::SetEndPoint ( const QPointF &  _end)

Set the end position of the line.

Parameters
[in]_endEnd position of the line in pixel coordinates.
void gazebo::gui::LineSegmentItem::SetLine ( const QPointF &  _start,
const QPointF &  _end 
)

Set the line.

Parameters
[in]_startStart position of the line in pixel coordinates.
[in]_endEnd position of the line in pixel coordinates.
void gazebo::gui::LineSegmentItem::SetMouseDownX ( double  _x)

Set the X position of the mouse press.

Parameters
[in]_xMouse press X position in pixel coordinates.
void gazebo::gui::LineSegmentItem::SetMouseDownY ( double  _y)

Set the Y position of the mouse press.

Parameters
[in]_yMouse press Y position in pixel coordinates.
void gazebo::gui::LineSegmentItem::SetMouseState ( int  _state)

Set the current mouse state.

Parameters
[in]_stateMouse state.
void gazebo::gui::LineSegmentItem::SetStartPoint ( const QPointF &  _start)

Set the start position of the line.

Parameters
[in]_startStart position of the line in pixel coordinates.
void gazebo::gui::LineSegmentItem::Update ( )

Update by emtting the LineChanged signal.


The documentation for this class was generated from the following file: