|
AvogadroLibs 1.103.0
|
Public Member Functions | |
| ElementItem (int elementNumber=0) | |
| QRectF | boundingRect () const override |
| QPainterPath | shape () const override |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
| ElementItem | ( | int | elementNumber = 0 | ) |
Constructor. Should be called with the element number for this item. The constructor uses setData to set the element number using the key 0. This is then used by PeriodicTable to figure out which element was clicked on.
|
override |
|
override |
|
override |
This is where most of the action takes place. The element box is drawn along with its symbol.