removed all dependence on NodeOutputs
If Nodes only have the one output, we don't need to do so much differentiation between them. Previous iteration used outputs as like a distinct function within a Node (e.g. length output would return one result, buffer output would produce a different result - each run different code to produce their results). Now in this iteration, it's more accurate to say a Node is just one function (which seems more appropriate for a node system anyway).
This commit is contained in:
@@ -24,21 +24,22 @@
|
||||
#include <QMetaType>
|
||||
|
||||
#include "common/timerange.h"
|
||||
#include "node/output.h"
|
||||
|
||||
class Node;
|
||||
|
||||
class NodeDependency {
|
||||
public:
|
||||
NodeDependency();
|
||||
NodeDependency(NodeOutput* node, const TimeRange& range);
|
||||
NodeDependency(NodeOutput* node, const rational& in, const rational &out);
|
||||
NodeDependency(Node* node, const TimeRange& range);
|
||||
NodeDependency(Node* node, const rational& in, const rational &out);
|
||||
|
||||
NodeOutput* node() const;
|
||||
Node* node() const;
|
||||
const rational& in() const;
|
||||
const rational& out() const;
|
||||
const TimeRange& range() const;
|
||||
|
||||
private:
|
||||
NodeOutput* node_;
|
||||
Node* node_;
|
||||
TimeRange range_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user