Blender V5.3
COM_zone_tree_operation.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include <string>
8
9#include "COM_operation.hh"
10
11namespace blender {
12struct bNodeSocket;
13class ComputeContext;
14namespace bke {
15class bNodeTreeZone;
16}
17} // namespace blender
18
19namespace blender::compositor {
20
21class Context;
22
23/* ------------------------------------------------------------------------------------------------
24 * Zone Tree Operation
25 *
26 * The zone tree operation represents and evaluates the internal node tree of a zone. Its outputs
27 * match the type and identifier of the inputs of the zone output node. Its inputs match the type
28 * and identifier of the outputs of the zone input node. Finally it also has inputs representing
29 * links that cross the border of the zone and are connected to outputs outside of the zone, those
30 * inputs have identifiers returned by get_external_input_identifier for outputs outside of the
31 * zone that are connected to inputs inside the zone. */
33 private:
34 /* The zone that this operation represents. */
35 const bke::bNodeTreeZone &zone_;
36 /* The compute context of the zone using this zone tree operation. */
37 const ComputeContext &compute_context_;
38
39 public:
41 const bke::bNodeTreeZone &zone,
42 const ComputeContext &compute_context);
43
44 void execute() override;
45
46 /* Returns the identifier of the input declared for the given output that belongs to a node that
47 * is outside of the zone. */
48 static std::string get_external_input_identifier(const bNodeSocket &output);
49};
50
51} // namespace blender::compositor
#define output
Operation(Context &context)
Definition operation.cc:22
Context & context() const
Definition operation.cc:57
static std::string get_external_input_identifier(const bNodeSocket &output)
ZoneTreeOperation(Context &context, const bke::bNodeTreeZone &zone, const ComputeContext &compute_context)
BMesh Iterators.