18#ifndef _GAZEBO_GUI_BUILDING_WALLSEGMENTITEM_HH_
19#define _GAZEBO_GUI_BUILDING_WALLSEGMENTITEM_HH_
22#include <ignition/math/Vector2.hh>
34 class WallSegmentItemPrivate;
50 const ignition::math::Vector2d &_end,
const double _height);
84 private:
void contextMenuEvent(QGraphicsSceneContextMenuEvent *_event);
88 private:
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *_event);
93 private: QVariant itemChange(GraphicsItemChange _change,
94 const QVariant &_value);
97 private slots:
void OnApply();
100 private slots:
void OnOpenInspector();
103 private slots:
void OnDeleteItem();
107 private: std::unique_ptr<WallSegmentItemPrivate> dataPtr;
gui
Definition KeyEventHandler.hh:29
2D line segment.
Definition SegmentItem.hh:46
2D representation of a wall.
Definition WallSegmentItem.hh:42
WallSegmentItem * Clone() const
Clone the wall segment item.
double Height() const
Get the height of the wall segment item.
void UpdateInspector()
Update inspector with current values.
void SetHeight(const double _height)
Set the height of the wall segment item.
WallSegmentItem(const ignition::math::Vector2d &_start, const ignition::math::Vector2d &_end, const double _height)
Constructor param[in] _start Start position of the item in pixel coordinates.
void SetHighlighted(const bool _highlighted)
Set whether this item should be highlighted or not.
void WallSegmentChanged()
Emit wall segment changed Qt signals.
void SegmentUpdated()
Update wall segment when segment updated.
~WallSegmentItem()
Destructor.
void Update()
Update by emitting Qt signals.
Forward declarations for the common classes.
Definition Animation.hh:27