Blender
V5.3
source
blender
compositor
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
7
#include "
COM_simple_operation.hh
"
8
9
namespace
blender
{
10
struct
Scene
;
11
struct
PointerRNA
;
12
struct
bNodeTreeInterfaceSocket
;
13
}
// namespace blender
14
15
namespace
blender::compositor
{
16
17
class
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. */
27
class
SceneCompositorEffectsOperation
:
public
SimpleOperation
{
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. */
34
SceneCompositorEffectsOperation
(
Context
&
context
);
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. */
42
bool
has_output
()
43
{
44
return
has_output_;
45
}
46
};
47
48
}
// namespace blender::compositor
COM_simple_operation.hh
blender::compositor::Context
Definition
COM_context.hh:53
blender::compositor::Operation::context
Context & context() const
Definition
operation.cc:57
blender::compositor::SceneCompositorEffectsOperation::has_output
bool has_output()
Definition
COM_scene_compositor_effects_operation.hh:42
blender::compositor::SceneCompositorEffectsOperation::SceneCompositorEffectsOperation
SceneCompositorEffectsOperation(Context &context)
Definition
scene_compositor_effects_operation.cc:28
blender::compositor::SceneCompositorEffectsOperation::execute
void execute() override
Definition
scene_compositor_effects_operation.cc:164
blender::compositor::SimpleOperation
Definition
COM_simple_operation.hh:21
blender::compositor
Definition
BKE_node.hh:77
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::PointerRNA
Definition
RNA_types.hh:52
blender::Scene
Definition
DNA_scene_types.h:2876
blender::bNodeTreeInterfaceSocket
Definition
DNA_node_tree_interface_types.h:128
Generated on
for Blender by
doxygen
1.18.0