18#ifndef _GAZEBO_GUI_BUILDING_FLOORITEM_HH_
19#define _GAZEBO_GUI_BUILDING_FLOORITEM_HH_
22#include <ignition/math/Vector3.hh>
33 class WallSegmentItem;
36 class FloorItemPrivate;
54 public:
virtual ignition::math::Vector3d
Size()
const;
70 private:
virtual void paint(QPainter *_painter,
71 const QStyleOptionGraphicsItem *_option, QWidget *_widget);
74 private:
virtual void mousePressEvent(QGraphicsSceneMouseEvent *_event);
77 private:
virtual void contextMenuEvent(
78 QGraphicsSceneContextMenuEvent *_event);
82 private slots:
void NotifyChange();
85 private slots:
void RecalculateBoundingBox();
88 private slots:
void WallSegmentDeleted();
91 private:
void Update();
94 private:
void SizeChanged();
98 private: std::unique_ptr<FloorItemPrivate> dataPtr;
gui
Definition KeyEventHandler.hh:29
2D representation of a floor.
Definition FloorItem.hh:44
virtual double SceneRotation() const
Get the scene rotation of the editor item.
virtual ignition::math::Vector3d ScenePosition() const
Get the scene position of editor item.
void AttachWallSegment(WallSegmentItem *_wallSegmentItem)
Attach walls so the floor can auto expand to hold the wall.
void FloorChanged()
Emit floor changed Qt signals.
virtual ignition::math::Vector3d Size() const
Get the size of the item in pixels.
2D rectangle.
Definition RectItem.hh:51
2D representation of a wall.
Definition WallSegmentItem.hh:42
Forward declarations for the common classes.
Definition Animation.hh:27