sequence is now a node graph
This commit is contained in:
+5
-13
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user