Blender V5.3
COM_scene_compositor_effects_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
8
9namespace blender {
10struct Scene;
11struct PointerRNA;
13} // namespace blender
14
15namespace blender::compositor {
16
17class Context;
18
19/* ------------------------------------------------------------------------------------------------
20 * Scene Compositor Effects Operation
21 *
22 * An operation that creates a node group operation for each enabled scene compositor effect in
23 * the scene and evaluates them serially. The fits node group takes the input of the operation as
24 * an input. The has_output() and has_viewer_output() methods can be queried after evaluation to
25 * identify of the operation has computed an output or a viewer output. In all cases, the output
26 * will be allocated, albeit with a default value in case has_output() is false. */
28 private:
29 /* True if the operation wrote an output. */
30 bool has_output_ = false;
31
32 public:
33 /* Declares an input of type color and an output of type color. */
35
36 /* Compile and evaluate the node group. */
37 void execute() override;
38
39 /* An assessor for has_output_. This is only initialized after the operation was evaluated. Note
40 * that the output of the operation still needs to be released if this is false as it is default
41 * allocated in those cases. */
43 {
44 return has_output_;
45 }
46};
47
48} // namespace blender::compositor
Context & context() const
Definition operation.cc:57
BMesh Iterators.