Go to the documentation of this file.
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);
57 public:
double Height()
const;
61 public:
void SetHeight(
const double _height);
68 public:
void Update();
71 public:
void WallSegmentChanged();
74 public:
void UpdateInspector();
77 public:
void SetHighlighted(
const bool _highlighted);
80 protected:
void SegmentUpdated();
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;
Forward declarations for the common classes.
Definition: Animation.hh:26
void WallSegmentChanged()
Emit wall segment changed Qt signals.
~WallSegmentItem()
Destructor.
void SetHighlighted(const bool _highlighted)
Set whether this item should be highlighted or not.
void UpdateInspector()
Update inspector with current values.
WallSegmentItem * Clone() const
Clone the wall segment item.
void SegmentUpdated()
Update wall segment when segment updated.
2D representation of a wall.
Definition: WallSegmentItem.hh:41
double Height() const
Get the height of the wall segment item.
2D line segment.
Definition: SegmentItem.hh:44
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 Update()
Update by emitting Qt signals.
void SetHeight(const double _height)
Set the height of the wall segment item.