#include <node_graphicsitem.hpp>
|
| | NodeGraphicsItem (QGraphicsItem *parent=nullptr, Node *node=nullptr) |
| |
| void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *) override |
| |
| QRectF | boundingRect () const override |
| |
| int | type () const override |
| |
| Node * | getNode () |
| | Gets the node represented by the graphicsitem.
|
| |
|
| static const int | Type = QGraphicsItem::UserType + 2 |
| |
◆ NodeGraphicsItem()
| NodeGraphicsItem::NodeGraphicsItem |
( |
QGraphicsItem * | parent = nullptr, |
|
|
Node * | node = nullptr ) |
|
explicit |
◆ boundingRect()
| QRectF NodeGraphicsItem::boundingRect |
( |
| ) |
const |
|
override |
◆ getNode()
| Node * NodeGraphicsItem::getNode |
( |
| ) |
|
|
inline |
Gets the node represented by the graphicsitem.
This method gets the node that the NodeGrpahicsItem represents.
- Returns
- Pointer to the node
- See also
- Node::Node
◆ paint()
| void NodeGraphicsItem::paint |
( |
QPainter * | painter, |
|
|
const QStyleOptionGraphicsItem * | option, |
|
|
QWidget * | widget ) |
|
override |
◆ type()
| int NodeGraphicsItem::type |
( |
| ) |
const |
|
inlineoverride |
◆ Type
| const int NodeGraphicsItem::Type = QGraphicsItem::UserType + 2 |
|
static |
The documentation for this class was generated from the following files: