18 #ifndef _FLOOR_ITEM_HH_
19 #define _FLOOR_ITEM_HH_
32 class WallSegmentItem;
50 public:
virtual QVector3D GetSize()
const;
53 public:
virtual QVector3D GetScenePosition()
const;
56 public:
virtual double GetSceneRotation()
const;
63 private:
virtual void paint(QPainter *_painter,
64 const QStyleOptionGraphicsItem *_option, QWidget *_widget);
67 private:
virtual void mousePressEvent(QGraphicsSceneMouseEvent *_event);
70 private:
virtual void contextMenuEvent(
71 QGraphicsSceneContextMenuEvent *_event);
75 private slots:
void NotifyChange();
78 private slots:
void RecalculateBoundingBox();
81 private slots:
void WallSegmentDeleted();
84 private:
void Update();
87 public:
void FloorChanged();
90 private:
void SizeChanged();
93 private:
double floorDepth;
96 private:
double floorHeight;
99 private:
double floorWidth;
102 private: QPointF floorPos;
109 private: std::vector<WallSegmentItem *> wallSegments;
112 private: QPolygonF floorBoundingRect;
2D representation of a floor.
Definition: FloorItem.hh:39
2D rectangle.
Definition: RectItem.hh:40
Base class of a items that have building level properties such as the level number and level height...
Definition: BuildingItem.hh:33
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
2D representation of a wall.
Definition: WallSegmentItem.hh:40