ported functions to new node type

This commit is contained in:
itsmattkc
2019-05-13 12:00:15 +10:00
parent f796c2b379
commit 49feb12999
53 changed files with 296 additions and 269 deletions
+25
View File
@@ -7,6 +7,11 @@ Node::Node(NodeGraph *graph) :
{
}
QString Node::name()
{
return tr("Node");
}
void Node::AddParameter(NodeIO *param)
{
param->setParent(this);
@@ -27,3 +32,23 @@ int Node::ParameterCount()
{
return parameters_.size();
}
NodeGraph *Node::ParentGraph()
{
return static_cast<NodeGraph*>(parent());
}
double Node::Time()
{
return ParentGraph()->Time();
}
const QPointF &Node::pos()
{
return pos_;
}
void Node::SetPos(const QPointF &pos)
{
pos_ = pos;
}