Blender  V3.3
deg_builder.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2016 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 struct Base;
11 struct ID;
12 struct Main;
13 struct Object;
14 struct bPoseChannel;
15 
16 namespace blender::deg {
17 
18 struct Depsgraph;
19 class DepsgraphBuilderCache;
20 
22  public:
23  virtual ~DepsgraphBuilder() = default;
24 
25  virtual bool need_pull_base_into_graph(const Base *base);
26 
27  virtual bool is_object_visibility_animated(const Object *object);
28 
29  virtual bool check_pchan_has_bbone(const Object *object, const bPoseChannel *pchan);
30  virtual bool check_pchan_has_bbone_segments(const Object *object, const bPoseChannel *pchan);
31  virtual bool check_pchan_has_bbone_segments(const Object *object, const char *bone_name);
32 
33  protected:
34  /* NOTE: The builder does NOT take ownership over any of those resources. */
36 
37  /* State which never changes, same for the whole builder time. */
41 };
42 
43 bool deg_check_id_in_depsgraph(const Depsgraph *graph, ID *id_orig);
46 
47 } // namespace blender::deg
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:35
DepsgraphBuilderCache * cache_
Definition: deg_builder.h:40
virtual bool check_pchan_has_bbone_segments(const Object *object, const bPoseChannel *pchan)
Definition: deg_builder.cc:118
virtual bool need_pull_base_into_graph(const Base *base)
Definition: deg_builder.cc:67
virtual bool check_pchan_has_bbone(const Object *object, const bPoseChannel *pchan)
Definition: deg_builder.cc:98
virtual ~DepsgraphBuilder()=default
virtual bool is_object_visibility_animated(const Object *object)
Definition: deg_builder.cc:82
DepsgraphBuilder(Main *bmain, Depsgraph *graph, DepsgraphBuilderCache *cache)
Definition: deg_builder.cc:62
Depsgraph * graph
bool deg_check_base_in_depsgraph(const Depsgraph *graph, Base *base)
Definition: deg_builder.cc:48
void deg_graph_build_finalize(Main *bmain, Depsgraph *graph)
Definition: deg_builder.cc:136
bool deg_check_id_in_depsgraph(const Depsgraph *graph, ID *id_orig)
Definition: deg_builder.cc:42
Definition: DNA_ID.h:368
Definition: BKE_main.h:121