blob: a2c75c048cb5092d28c1c0711acc29556bf2174c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright 2020 Blender Foundation. All rights reserved. */
/** \file
* \ingroup depsgraph
*/
#pragma once
#include "pipeline.h"
namespace blender {
namespace deg {
/* Optimized builders for dependency graph built from a given set of IDs.
*
* General notes:
*
* - We pull in all bases if their objects are in the set of IDs. This allows to have proper
* visibility and other flags assigned to the objects.
* All other bases (the ones which points to object which is outside of the set of IDs) are
* completely ignored.
*/
class FromIDsBuilderPipeline : public AbstractBuilderPipeline {
public:
FromIDsBuilderPipeline(::Depsgraph *graph, Span<ID *> ids);
protected:
virtual unique_ptr<DepsgraphNodeBuilder> construct_node_builder() override;
virtual unique_ptr<DepsgraphRelationBuilder> construct_relation_builder() override;
virtual void build_nodes(DepsgraphNodeBuilder &node_builder) override;
virtual void build_relations(DepsgraphRelationBuilder &relation_builder) override;
private:
Span<ID *> ids_;
};
} // namespace deg
} // namespace blender
|