Blender V5.3
COM_zone_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 "COM_operation.hh"
8
9namespace blender {
10class ComputeContext;
11namespace bke {
12class bNodeTreeZone;
13}
14} // namespace blender
15
16namespace blender::compositor {
17
18class Context;
19struct Schedule;
20
21/* ------------------------------------------------------------------------------------------------
22 * Zone Operation
23 *
24 * The zone operation is the abstract base class of zone operations. Its outputs match the type and
25 * identifier of the outputs of the zone output node. Its inputs match the type and identifier of
26 * the inputs of the zone input node. Finally it also has inputs representing links that cross the
27 * border of the zone and are connected to outputs outside of the zone, those inputs match those of
28 * the ZoneTreeOperation, see its description for more information. */
29class ZoneOperation : public Operation {
30 protected:
31 /* The zone that this operation represents. */
33 /* The compute context of the operation that uses the zone. */
35
36 public:
39 const ComputeContext &compute_context);
40
41 /* Compute and set the initial reference counts of all the results of the operation. The node
42 * execution schedule is given as an input. */
43 void compute_results_reference_counts(const Schedule &schedule);
44
45 const bke::bNodeTreeZone &zone() const;
46
47 protected:
48 /* Log the values for the outputs of the zone. */
49 void log_data() override;
50};
51
52} // namespace blender::compositor
Operation(Context &context)
Definition operation.cc:22
Context & context() const
Definition operation.cc:57
const bke::bNodeTreeZone & zone() const
ZoneOperation(Context &context, const bke::bNodeTreeZone &zone, const ComputeContext &compute_context)
void compute_results_reference_counts(const Schedule &schedule)
BMesh Iterators.