Blender V5.3
DEG_depsgraph_build.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2013 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11#pragma once
12
13#include "BLI_span.hh"
14
15/* ************************************************* */
16
17/* Dependency Graph */
18
19namespace blender {
20
21/* ------------------------------------------------ */
22
23struct CacheFile;
24struct Collection;
26struct Depsgraph;
27struct DepsNodeHandle;
28struct ID;
29struct Main;
30struct Object;
31struct Scene;
32struct bNodeTree;
33struct VFont;
34
35/* Graph Building -------------------------------- */
36
38void DEG_graph_build_from_view_layer(Depsgraph *graph);
39
43void DEG_graph_build_for_all_objects(Depsgraph *graph);
44
49void DEG_graph_build_for_render_pipeline(Depsgraph *graph);
50
54void DEG_graph_build_for_compositor_preview(Depsgraph *graph);
55
59void DEG_graph_build_from_collection(Depsgraph *graph, Collection *collection);
60
64void DEG_graph_build_from_ids(Depsgraph *graph, Span<ID *> ids);
65
67void DEG_graph_tag_relations_update(Depsgraph *graph);
68
70void DEG_graph_relations_update(Depsgraph *graph);
71
74
75/* Add Dependencies ----------------------------- */
76
84 /* Parameters Component - Default when nothing else fits
85 * (i.e. just SDNA property setting). */
87 /* Animation Component
88 * TODO(sergey): merge in with parameters? */
90 /* Sequencer Component (Scene Only). */
92 /* Compositor Component. */
94};
95
97 /* Used in query API, to denote which component caller is interested in. */
99
100 /* Parameters Component - Default when nothing else fits
101 * (i.e. just SDNA property setting). */
103 /* Animation Component.
104 *
105 * TODO(sergey): merge in with parameters? */
107 /* Transform Component (Parenting/Constraints) */
109 /* Geometry Component (#Mesh / #Curves, etc.). */
111
112 /* Evaluation-Related Outer Types (with Sub-data) */
113
114 /* Pose Component - Owner/Container of Bones Eval */
116 /* Bone Component - Child/Sub-component of Pose */
118
119 /* Material Shading Component */
121 /* Cache Component */
123};
124
125void DEG_add_scene_relation(DepsNodeHandle *node_handle,
126 Scene *scene,
127 eDepsSceneComponentType component,
128 const char *description);
129void DEG_add_scene_camera_relation(DepsNodeHandle *node_handle,
130 Scene *scene,
131 eDepsObjectComponentType component,
132 const char *description);
133void DEG_add_object_relation(DepsNodeHandle *node_handle,
134 Object *object,
135 eDepsObjectComponentType component,
136 const char *description);
137void DEG_add_collection_geometry_relation(DepsNodeHandle *node_handle,
138 Collection *collection,
139 const char *description);
140void DEG_add_collection_geometry_customdata_mask(DepsNodeHandle *node_handle,
141 Collection *collection,
142 const CustomData_MeshMasks *masks);
143void DEG_add_node_tree_output_relation(DepsNodeHandle *node_handle,
144 bNodeTree *node_tree,
145 const char *description);
146void DEG_add_bone_relation(DepsNodeHandle *handle,
147 Object *object,
148 const char *bone_name,
149 eDepsObjectComponentType component,
150 const char *description);
151void DEG_add_object_cache_relation(DepsNodeHandle *handle,
152 CacheFile *cache_file,
153 eDepsObjectComponentType component,
154 const char *description);
155void DEG_add_vfont_relation(DepsNodeHandle *handle, VFont *vfont, const char *description);
160void DEG_add_generic_id_relation(DepsNodeHandle *node_handle, ID *id, const char *description);
161
169void DEG_add_depends_on_transform_relation(DepsNodeHandle *node_handle, const char *description);
170
175void DEG_add_object_pointcache_relation(DepsNodeHandle *node_handle,
176 Object *object,
177 eDepsObjectComponentType component,
178 const char *description);
179
180void DEG_add_time_source_relation(DepsNodeHandle *node_handle, const char *description);
181
182void DEG_add_special_eval_flag(DepsNodeHandle *handle, ID *id, uint32_t flag);
183void DEG_add_customdata_mask(DepsNodeHandle *handle,
184 Object *object,
185 const CustomData_MeshMasks *masks);
186
187ID *DEG_get_id_from_handle(DepsNodeHandle *node_handle);
188Depsgraph *DEG_get_graph_from_handle(DepsNodeHandle *node_handle);
189
191
192/* ************************************************ */
193
194} // namespace blender
Definition scene.h:133
BMesh Iterators.
void DEG_graph_tag_relations_update(Depsgraph *graph)
void DEG_graph_build_from_view_layer(Depsgraph *graph)
void DEG_graph_build_from_collection(Depsgraph *graph, Collection *collection)
void DEG_add_generic_id_relation(DepsNodeHandle *node_handle, ID *id, const char *description)
Depsgraph * DEG_get_graph_from_handle(DepsNodeHandle *node_handle)
void DEG_add_special_eval_flag(DepsNodeHandle *handle, ID *id, uint32_t flag)
void DEG_add_object_pointcache_relation(DepsNodeHandle *node_handle, Object *object, eDepsObjectComponentType component, const char *description)
void DEG_add_object_relation(DepsNodeHandle *node_handle, Object *object, eDepsObjectComponentType component, const char *description)
void DEG_add_bone_relation(DepsNodeHandle *handle, Object *object, const char *bone_name, eDepsObjectComponentType component, const char *description)
void DEG_add_collection_geometry_relation(DepsNodeHandle *node_handle, Collection *collection, const char *description)
void DEG_add_depends_on_transform_relation(DepsNodeHandle *node_handle, const char *description)
void DEG_add_node_tree_output_relation(DepsNodeHandle *node_handle, bNodeTree *node_tree, const char *description)
void DEG_graph_build_for_render_pipeline(Depsgraph *graph)
void DEG_add_object_cache_relation(DepsNodeHandle *handle, CacheFile *cache_file, eDepsObjectComponentType component, const char *description)
unsigned int uint32_t
Definition BKE_text.h:81
void DEG_add_time_source_relation(DepsNodeHandle *node_handle, const char *description)
void DEG_graph_build_from_ids(Depsgraph *graph, Span< ID * > ids)
void DEG_graph_build_for_all_objects(Depsgraph *graph)
void DEG_graph_build_for_compositor_preview(Depsgraph *graph)
void DEG_add_collection_geometry_customdata_mask(DepsNodeHandle *node_handle, Collection *collection, const CustomData_MeshMasks *masks)
bool DEG_object_has_geometry_component(Object *object)
void DEG_graph_relations_update(Depsgraph *graph)
void DEG_relations_tag_update(Main *bmain)
void DEG_add_scene_camera_relation(DepsNodeHandle *node_handle, Scene *scene, eDepsObjectComponentType component, const char *description)
ID * DEG_get_id_from_handle(DepsNodeHandle *node_handle)
void DEG_add_scene_relation(DepsNodeHandle *node_handle, Scene *scene, eDepsSceneComponentType component, const char *description)
void DEG_add_vfont_relation(DepsNodeHandle *handle, VFont *vfont, const char *description)
void DEG_add_customdata_mask(DepsNodeHandle *handle, Object *object, const CustomData_MeshMasks *masks)