|
Developer Documentation
|
#include <Plugin-VSI/scene/elementArea.hh>
Public Member Functions | |
| ElementArea (GraphicsScene *_scene) | |
| Constructor. | |
| ~ElementArea () | |
| Destructor. | |
| void | addElement (SceneElement *_element) |
| Add a child element. | |
| bool | removeElement (SceneElement *_element, bool _force=false) |
| Remove an element, if its removeable or _force is set. | |
| QRectF | boundingRect () const |
| Bounding rectangle. | |
| const QList< SceneElement * > & | elements () const |
| All elements. | |
| void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *=0) |
| for QGraphicsItem | |
Private Attributes | |
| GraphicsScene * | scene_ |
| QList< SceneElement * > | elements_ |
| QRectF | elementsBoundingRect_ |
Widget that acts as parent for all elements in scene. It is used to realize movement and scaling of all its child elements
Definition at line 62 of file elementArea.hh.
|
explicit |
Constructor.
Definition at line 63 of file elementArea.cc.
| VSI::ElementArea::~ElementArea | ( | ) |
Destructor.
Definition at line 71 of file elementArea.cc.
| void VSI::ElementArea::addElement | ( | SceneElement * | _element | ) |
Add a child element.
Definition at line 86 of file elementArea.cc.
| QRectF VSI::ElementArea::boundingRect | ( | ) | const |
Bounding rectangle.
Definition at line 78 of file elementArea.cc.
| const QList< SceneElement * > & VSI::ElementArea::elements | ( | ) | const |
All elements.
Definition at line 123 of file elementArea.cc.
|
inline |
for QGraphicsItem
Definition at line 88 of file elementArea.hh.
| bool VSI::ElementArea::removeElement | ( | SceneElement * | _element, |
| bool | _force = false |
||
| ) |
Remove an element, if its removeable or _force is set.
Definition at line 103 of file elementArea.cc.
|
private |
Definition at line 93 of file elementArea.hh.
|
private |
Definition at line 95 of file elementArea.hh.
|
private |
Definition at line 91 of file elementArea.hh.