Blender
V5.3
source
blender
compositor
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
11
namespace
blender
{
12
struct
bNodeSocket
;
13
class
ComputeContext
;
14
namespace
bke
{
15
class
bNodeTreeZone
;
16
}
17
}
// namespace blender
18
19
namespace
blender::compositor
{
20
21
class
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. */
32
class
ZoneTreeOperation
:
public
Operation
{
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
:
40
ZoneTreeOperation
(
Context
&
context
,
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
COM_operation.hh
output
#define output
blender::ComputeContext
Definition
BLI_compute_context.hh:80
blender::bke::bNodeTreeZone
Definition
BKE_node_tree_zones.hh:23
blender::compositor::Context
Definition
COM_context.hh:53
blender::compositor::Operation::Operation
Operation(Context &context)
Definition
operation.cc:22
blender::compositor::Operation::context
Context & context() const
Definition
operation.cc:57
blender::compositor::ZoneTreeOperation::get_external_input_identifier
static std::string get_external_input_identifier(const bNodeSocket &output)
Definition
zone_tree_operation.cc:95
blender::compositor::ZoneTreeOperation::execute
void execute() override
Definition
zone_tree_operation.cc:80
blender::compositor::ZoneTreeOperation::ZoneTreeOperation
ZoneTreeOperation(Context &context, const bke::bNodeTreeZone &zone, const ComputeContext &compute_context)
Definition
zone_tree_operation.cc:21
blender::bke
Definition
AS_asset_library.hh:32
blender::compositor
Definition
BKE_node.hh:77
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::bNodeSocket
Definition
DNA_node_types.h:1447
Generated on
for Blender by
doxygen
1.18.0