ui: graph view layouting and member rendering
Added simple layouting functions (implementations for simple grid and circle layout). Also the graph displays class members and connections (edges) to or from them "correctly" now. fortune cookie message = Your exotic ideas will lead you to many exciting new adventures.
This commit is contained in:
@@ -18,19 +18,25 @@ public:
|
||||
QtGraphNode(const Vec2i& position, const std::string& name, const Id tokenId);
|
||||
virtual ~QtGraphNode();
|
||||
|
||||
virtual std::string getName();
|
||||
virtual Vec2i getPosition();
|
||||
virtual std::string getName() const;
|
||||
virtual Vec2i getPosition() const;
|
||||
virtual void setPosition(const Vec2i& position);
|
||||
|
||||
virtual bool addOutEdge(const std::shared_ptr<GraphEdge>& edge);
|
||||
virtual bool addInEdge(const std::weak_ptr<GraphEdge>& edge);
|
||||
|
||||
virtual void removeOutEdge(GraphEdge* edge);
|
||||
|
||||
virtual std::list<std::shared_ptr<GraphNode> > getSubNodes() const;
|
||||
virtual void addSubNode(const std::shared_ptr<GraphNode>& node);
|
||||
|
||||
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event);
|
||||
|
||||
virtual void notifyParentMoved();
|
||||
|
||||
protected:
|
||||
void notifyEdgesAfterMove();
|
||||
|
||||
std::list<std::shared_ptr<GraphEdge> > m_outEdges;
|
||||
std::list<std::weak_ptr<GraphEdge> > m_inEdges;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user