Blender V5.3
COM_node_group_operation.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include "DNA_node_types.h"
8
9#include "BKE_node.hh"
10
11#include "COM_context.hh"
12#include "COM_node_operation.hh"
13#include "COM_operation.hh"
15#include "COM_result.hh"
16
17namespace blender {
18class ComputeContext;
19} // namespace blender
20
21namespace blender::compositor {
22
23/* ------------------------------------------------------------------------------------------------
24 * Node Group Operation
25 *
26 * The node group operation represents and evaluates a node group. */
28 private:
29 /* The node group that this operation represents. */
30 const bNodeTree &node_group_;
31 /* A compute context that identifies the particular group node that uses this node group or the
32 * scene for the top-level compositor node tree. */
33 const ComputeContext &compute_context_;
34
35 public:
36 /* Populate the output results based on the node group interface outputs and populate the input
37 * descriptors based on the node group interface inputs. */
39 const bNodeTree &node_group,
40 const ComputeContext &compute_context);
41
42 /* Compile and evaluate the node group. */
43 void execute() override;
44
45 /* An accessors for node_group_. */
46 const bNodeTree &node_group() const;
47};
48
49} // namespace blender::compositor
NodeGroupOperation(Context &context, const bNodeTree &node_group, const ComputeContext &compute_context)
Operation(Context &context)
Definition operation.cc:22
Context & context() const
Definition operation.cc:57
BMesh Iterators.