arenasceneelement.h
Go to the documentation of this file.
1 #ifndef ARENASCENEELEMENT_H
2 #define ARENASCENEELEMENT_H
3 
4 #include <QGraphicsScene>
5 #include <QGraphicsPixmapItem>
6 
7 class ArenaElement;
8 
9 class ArenaSceneElement : public QObject, public QGraphicsPixmapItem
10 {
11  Q_OBJECT
12 
13 public:
15 
16  bool isEditorSample() { return m_isEditorSample; }
18 
19  QPointF gridOffset();
20 
21  ArenaElement* element() const { return m_element; }
22 
23 public slots:
24  void slotPosChanged(ArenaElement *element, QPoint pos);
25  void slotRotationChanged(ArenaElement *element, int rotation);
26 
27 private:
28  void mousePressEvent(QGraphicsSceneMouseEvent *event);
29 
32 };
33 
34 #endif // ARENASCENEELEMENT_H
void slotRotationChanged(ArenaElement *element, int rotation)
void mousePressEvent(QGraphicsSceneMouseEvent *event)
void setIsEditorSample(bool isEditorSample)
ArenaElement * element() const
ArenaSceneElement(ArenaElement *element)
void slotPosChanged(ArenaElement *element, QPoint pos)
ArenaElement * m_element


hector_nist_arena_designer
Author(s): Stefan Kohlbrecher , Johannes Simon
autogenerated on Fri Aug 21 2020 10:45:27