nodes can now be connected through the node editor
This commit is contained in:
@@ -148,6 +148,11 @@ void Node::AddRow(EffectRow *row)
|
||||
rows.append(row);
|
||||
}
|
||||
|
||||
int Node::IndexOfRow(EffectRow *row)
|
||||
{
|
||||
return rows.indexOf(row);
|
||||
}
|
||||
|
||||
void Node::copy_field_keyframes(NodePtr e) {
|
||||
for (int i=0;i<rows.size();i++) {
|
||||
EffectRow* row = rows.at(i);
|
||||
@@ -191,6 +196,17 @@ int Node::gizmo_count() {
|
||||
return gizmos.size();
|
||||
}
|
||||
|
||||
QVector<NodeEdge *> Node::GetAllEdges()
|
||||
{
|
||||
QVector<NodeEdge*> edges;
|
||||
|
||||
for (int i=0;i<row_count();i++) {
|
||||
edges.append(row(i)->edges());
|
||||
}
|
||||
|
||||
return edges;
|
||||
}
|
||||
|
||||
void Node::refresh() {}
|
||||
|
||||
void Node::FieldChanged() {
|
||||
@@ -310,6 +326,11 @@ void Node::SetExpanded(bool e)
|
||||
expanded_ = e;
|
||||
}
|
||||
|
||||
void Node::SetPos(const QPointF &pos)
|
||||
{
|
||||
pos_ = pos;
|
||||
}
|
||||
|
||||
void Node::SetEnabled(bool b) {
|
||||
enabled_ = b;
|
||||
emit EnabledChanged(b);
|
||||
@@ -615,6 +636,11 @@ void Node::setIterations(int i) {
|
||||
iterations = i;
|
||||
}
|
||||
|
||||
const QPointF &Node::pos()
|
||||
{
|
||||
return pos_;
|
||||
}
|
||||
|
||||
void Node::process_image(double, uint8_t *, uint8_t *, int){}
|
||||
|
||||
NodePtr Node::copy(Clip *c) {
|
||||
|
||||
Reference in New Issue
Block a user