Blender V5.3
COM_closure_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 <string>
8
9#include "BLI_map.hh"
10
11#include "COM_result.hh"
12#include "COM_zone_operation.hh"
13
14namespace blender::bke {
15class bNodeTreeZone;
16} // namespace blender::bke
17
18namespace blender::compositor {
19
20/* ------------------------------------------------------------------------------------------------
21 * Closure Zone Operation
22 *
23 * An operation that returns a closure type representing a closure zone. */
25 public:
27
28 void execute() override;
29
30 private:
31 /* Get a map of the values that the closure captures from outside of the zone, which corresponds
32 * to the external values of the zone tree operation, identified by the identifier returned by
33 * ZoneTreeOperation::get_external_input_identifier. */
34 Map<std::string, Result *> get_captured_values();
35};
36
37} // namespace blender::compositor
ZoneOperation(Context &context, const bke::bNodeTreeZone &zone, const ComputeContext &compute_context)
ZoneOperation(Context &context, const bke::bNodeTreeZone &zone, const ComputeContext &compute_context)