18 #ifndef _FLOOR_ITEM_HH_
19 #define _FLOOR_ITEM_HH_
32 class WallSegmentItem;
51 public:
virtual QVector3D GetSize()
const;
54 public:
virtual QVector3D GetScenePosition()
const;
57 public:
virtual double GetSceneRotation()
const;
64 private:
virtual void paint(QPainter *_painter,
65 const QStyleOptionGraphicsItem *_option, QWidget *_widget);
68 private:
virtual void mousePressEvent(QGraphicsSceneMouseEvent *_event);
71 private:
virtual void contextMenuEvent(
72 QGraphicsSceneContextMenuEvent *_event);
76 private slots:
void NotifyChange();
79 private slots:
void RecalculateBoundingBox();
82 private slots:
void WallSegmentDeleted();
85 private:
void Update();
88 public:
void FloorChanged();
91 private:
void SizeChanged();
94 private:
double floorDepth;
97 private:
double floorHeight;
100 private:
double floorWidth;
103 private: QPointF floorPos;
110 private: std::vector<WallSegmentItem *> wallSegments;
113 private: QPolygonF floorBoundingRect;
2D representation of a floor.
Definition: FloorItem.hh:39
2D rectangle.
Definition: RectItem.hh:40
#define GZ_GUI_BUILDING_VISIBLE
Definition: system.hh:393
Base class of a items that have building level properties such as the level number and level height...
Definition: BuildingItem.hh:33
2D representation of a wall.
Definition: WallSegmentItem.hh:40