Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2021-04-06 13:04:47 +0300
committerJeroen Bakker <jeroen@blender.org>2021-04-06 13:06:47 +0300
commit19ff2479cf686f32c29120ea8be02eef5c2423a2 (patch)
treeeb9684415289732c9550f2ca85e553d93de9c39c /source/blender/compositor/intern/COM_NodeOperationBuilder.h
parent663a82b10d23a8fd8468fec314b2d5ba740542e4 (diff)
Compositor: Add Streaming Operator for NodeOperationBuilder.
For debugging purposes to convert the internal state of the NodeOperationBuilder to a graphviz. Usage: std::cout << *this << "\n"; Inside any method of the NodeOperationBuilder.
Diffstat (limited to 'source/blender/compositor/intern/COM_NodeOperationBuilder.h')
-rw-r--r--source/blender/compositor/intern/COM_NodeOperationBuilder.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/compositor/intern/COM_NodeOperationBuilder.h b/source/blender/compositor/intern/COM_NodeOperationBuilder.h
index b6fb0ebcc9e..3b0ce57ed26 100644
--- a/source/blender/compositor/intern/COM_NodeOperationBuilder.h
+++ b/source/blender/compositor/intern/COM_NodeOperationBuilder.h
@@ -119,6 +119,16 @@ class NodeOperationBuilder {
return m_active_viewer;
}
+ const Vector<NodeOperation *> &get_operations() const
+ {
+ return m_operations;
+ }
+
+ const Vector<Link> &get_links() const
+ {
+ return m_links;
+ }
+
protected:
/** Add datatype conversion where needed */
void add_datatype_conversions();
@@ -160,4 +170,7 @@ class NodeOperationBuilder {
#endif
};
+std::ostream &operator<<(std::ostream &os, const NodeOperationBuilder &builder);
+std::ostream &operator<<(std::ostream &os, const NodeOperationBuilder::Link &link);
+
} // namespace blender::compositor