50 #ifndef VSI_ELEMENTAREA_HH
51 #define VSI_ELEMENTAREA_HH
54 #include <QGraphicsItem>
71 Q_INTERFACES(QGraphicsItem)
91 const QList<SceneElement *>&
elements ()
const;
94 void paint (QPainter * ,
const QStyleOptionGraphicsItem * , QWidget * = 0) {};
99 QList<SceneElement *> elements_;
101 QRectF elementsBoundingRect_;
ElementArea(GraphicsScene *_scene)
Constructor.
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *=0)
for QGraphicsItem
bool removeElement(SceneElement *_element, bool _force=false)
Remove an element, if its removeable or _force is set.
const QList< SceneElement * > & elements() const
All elements.
QRectF boundingRect() const
Bounding rectangle.
void addElement(SceneElement *_element)
Add a child element.
~ElementArea()
Destructor.