sequence is now a node graph

This commit is contained in:
itsmattkc
2019-05-11 11:38:18 +10:00
parent 3fe0d1cda5
commit f796c2b379
9 changed files with 179 additions and 94 deletions
+5 -13
View File
@@ -12,15 +12,6 @@ class NodeGraph : public QObject
public:
NodeGraph();
/**
* @brief Add a node to this graph
*
* The graph takes ownership of the node.
*
* @param node
*/
void AddNode(NodePtr node);
/**
* @brief Process the graph
*
@@ -43,7 +34,7 @@ public:
*
* The node to set as the output node. The graph takes ownership of the node and the user cannot delete it.
*/
void SetOutputNode(NodePtr node);
void SetOutputNode(Node* node);
/**
* @brief Returns the currently set output node
@@ -53,10 +44,11 @@ public:
signals:
void NodeGraphChanged();
private:
NodePtr output_node_;
protected:
virtual void childEvent(QChildEvent *event) override;
QVector<NodePtr> nodes_;
private:
Node* output_node_;
};
#endif // NODEGRAPH_H