33 #include <QGraphicsScene>
34 #include <QGraphicsEllipseItem>
69 void update(QPointF positionLeftTop = QPointF(0, 0));
81 std::vector<TreeNodePtr> getChildren()
const;
116 virtual void drawEdge(QLineF line);
122 virtual void drawNode(QRectF boundingBox);
129 void updateLayout(QPointF center);
132 QSize calculateSubTreeSize();
135 QRectF calculateChildsBoundingBox();
139 QGraphicsEllipseItem* nodeItem;
140 QGraphicsLineItem* edgeItem;
149 std::vector<TreeNodePtr> childs;