sequence is now a node graph
This commit is contained in:
+12
-6
@@ -1,20 +1,26 @@
|
||||
#include "nodegraph.h"
|
||||
|
||||
#include <QChildEvent>
|
||||
#include <QDebug>
|
||||
|
||||
NodeGraph::NodeGraph() :
|
||||
output_node_(nullptr)
|
||||
NodeGraph::NodeGraph()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void NodeGraph::AddNode(NodePtr node)
|
||||
void NodeGraph::childEvent(QChildEvent *event)
|
||||
{
|
||||
nodes_.append(node);
|
||||
emit NodeGraphChanged();
|
||||
if (event->type() == QEvent::ChildAdded || event->type() == QEvent::ChildRemoved) {
|
||||
emit NodeGraphChanged();
|
||||
}
|
||||
}
|
||||
|
||||
void NodeGraph::SetOutputNode(Node *node)
|
||||
{
|
||||
output_node_ = node;
|
||||
}
|
||||
|
||||
Node *NodeGraph::OutputNode()
|
||||
{
|
||||
return output_node_.get();
|
||||
return output_node_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user