Blender V5.3
source/blender/depsgraph/intern/builder/pipeline.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2020 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "deg_builder_cache.h"
12
13#include "BLI_set.hh"
14
15namespace blender {
16
17struct Depsgraph;
18struct Main;
19struct Scene;
20struct ViewLayer;
21
22namespace deg {
23
24struct Depsgraph;
27
28/* Base class for Depsgraph Builder pipelines.
29 *
30 * Basically it runs through the following steps:
31 * - sanity check
32 * - build nodes
33 * - build relations
34 * - finalize
35 */
37 public:
38 AbstractBuilderPipeline(blender::Depsgraph *graph);
39 virtual ~AbstractBuilderPipeline() = default;
40
41 void build();
42
43 protected:
49
50 virtual std::unique_ptr<DepsgraphNodeBuilder> construct_node_builder();
51 virtual std::unique_ptr<DepsgraphRelationBuilder> construct_relation_builder();
52
53 virtual void build_step_sanity_check();
54 void build_step_nodes();
57
58 virtual void build_nodes(DepsgraphNodeBuilder &node_builder) = 0;
59 virtual void build_relations(DepsgraphRelationBuilder &relation_builder) = 0;
60
63};
64
65} // namespace deg
66} // namespace blender
virtual std::unique_ptr< DepsgraphNodeBuilder > construct_node_builder()
virtual void build_nodes(DepsgraphNodeBuilder &node_builder)=0
virtual std::unique_ptr< DepsgraphRelationBuilder > construct_relation_builder()
virtual ~AbstractBuilderPipeline()=default
virtual void build_relations(DepsgraphRelationBuilder &relation_builder)=0
BMesh Iterators.