|
Blender V5.3
|
#include <depsgraph.hh>
Public Types | |
| using | OperationNodes = Vector<OperationNode *> |
| using | IDDepsNodes = Vector<IDNode *> |
Public Member Functions | |
| Depsgraph (Main *bmain, Scene *scene, ViewLayer *view_layer, eEvaluationMode mode) | |
| ~Depsgraph () | |
| TimeSourceNode * | add_time_source () |
| TimeSourceNode * | find_time_source () const |
| void | tag_time_source () |
| IDNode * | find_id_node (const ID *id) const |
| IDNode * | add_id_node (ID *id, ID *id_cow_hint=nullptr) |
| void | clear_id_nodes () |
| Relation * | add_new_relation (Node *from, Node *to, const char *description, int flags=0) |
| Relation * | check_nodes_connected (const Node *from, const Node *to, const char *description) |
| void | add_entry_tag (OperationNode *node) |
| void | clear_all_nodes () |
| ID * | get_cow_id (const ID *id_orig) const |
| MEM_CXX_CLASS_ALLOC_FUNCS ("Depsgraph") | |
Definition at line 50 of file depsgraph.hh.
| using blender::deg::Depsgraph::IDDepsNodes = Vector<IDNode *> |
Definition at line 52 of file depsgraph.hh.
Definition at line 51 of file depsgraph.hh.
| blender::deg::Depsgraph::Depsgraph | ( | Main * | bmain, |
| Scene * | scene, | ||
| ViewLayer * | view_layer, | ||
| eEvaluationMode | mode ) |
Definition at line 42 of file depsgraph.cc.
References add_time_source(), blender::BKE_scene_ctime_get(), blender::BKE_scene_frame_get(), blender::BLI_spin_init(), bmain, ctime, blender::DEG_EVALUATE_SYNC_WRITEBACK_NO, blender::false, frame, has_animated_visibility, id_type_exist, id_type_updated, id_type_updated_backup, is_active, is_evaluating, is_render_pipeline_depsgraph, lock, mode, need_tag_id_on_graph_visibility_time_update, need_tag_id_on_graph_visibility_update, need_update_nodes_visibility, need_update_relations, blender::nullptr, physics_relations_collision, physics_relations_effector, scene, scene_cow, sync_writeback, time_source, blender::true, update_count, use_editors_update, use_visibility_optimization, and view_layer.
| blender::deg::Depsgraph::~Depsgraph | ( | ) |
Definition at line 74 of file depsgraph.cc.
References blender::BLI_spin_end(), clear_id_nodes(), lock, and time_source.
| void blender::deg::Depsgraph::add_entry_tag | ( | OperationNode * | node | ) |
Definition at line 225 of file depsgraph.cc.
References entry_tags, and node.
Referenced by blender::deg::OperationNode::tag_update().
Definition at line 107 of file depsgraph.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BKE_idtype_idcode_to_index(), blender::BLI_assert(), blender::deg::DepsNodeFactory::create_node(), find_id_node(), blender::GS(), id_hash, id_nodes, blender::deg::ID_REF, blender::ID_TAG_COPIED_ON_EVAL, id_type_exist, blender::deg::IDNode::init_copy_on_write(), and blender::deg::type_get_factory().
Referenced by blender::deg::DepsgraphNodeBuilder::add_id_node().
| Relation * blender::deg::Depsgraph::add_new_relation | ( | Node * | from, |
| Node * | to, | ||
| const char * | description, | ||
| int | flags = 0 ) |
Add new relationship between two nodes.
Definition at line 174 of file depsgraph.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BLI_assert(), build_allocator, check_nodes_connected(), blender::LinearAllocator< Allocator >::construct(), blender::deg::COPY_ON_EVAL, blender::deg::Relation::flag, blender::deg::Node::inlinks, blender::deg::OPERATION, blender::deg::Node::outlinks, blender::deg::OperationNode::owner, blender::deg::RELATION_CHECK_BEFORE_ADD, and blender::deg::Node::type.
Referenced by blender::deg::DepsgraphRelationBuilder::add_operation_relation(), blender::deg::DepsgraphRelationBuilder::add_time_relation(), blender::deg::DepsgraphRelationBuilder::build_animdata_fcurve_target(), and blender::deg::DepsgraphRelationBuilder::build_copy_on_write_relations().
| TimeSourceNode * blender::deg::Depsgraph::add_time_source | ( | ) |
Definition at line 83 of file depsgraph.cc.
References blender::deg::DepsNodeFactory::create_node(), time_source, blender::deg::TIMESOURCE, and blender::deg::type_get_factory().
Referenced by blender::deg::DepsgraphNodeBuilder::add_time_source(), and Depsgraph().
| Relation * blender::deg::Depsgraph::check_nodes_connected | ( | const Node * | from, |
| const Node * | to, | ||
| const char * | description ) |
Definition at line 206 of file depsgraph.cc.
References blender::BLI_assert(), blender::deg::Relation::from, blender::deg::Relation::name, blender::deg::Node::outlinks, STREQ, and blender::deg::Relation::to.
Referenced by add_new_relation().
| void blender::deg::Depsgraph::clear_all_nodes | ( | ) |
Definition at line 238 of file depsgraph.cc.
References build_allocator, clear_id_nodes(), and time_source.
Referenced by blender::deg::DepsgraphNodeBuilder::begin_build().
| void blender::deg::Depsgraph::clear_id_nodes | ( | ) |
Definition at line 154 of file depsgraph.cc.
References blender::deg::light_linking::Cache::clear(), blender::deg::clear_id_nodes_conditional(), blender::deg::clear_physics_relations(), id_hash, id_nodes, blender::ID_PA, blender::ID_SCE, and light_linking_cache.
Referenced by clear_all_nodes(), and ~Depsgraph().
Definition at line 102 of file depsgraph.cc.
References id_hash.
Referenced by blender::deg::DepsgraphRelationBuilder::add_customdata_mask(), add_id_node(), blender::deg::DepsgraphRelationBuilder::add_special_eval_flag(), blender::deg::deg_check_base_in_depsgraph(), blender::deg::deg_check_id_in_depsgraph(), blender::DEG_get_customdata_mask_for_object(), blender::DEG_get_eval_flags_for_id(), blender::DEG_graph_tag_relations_update(), blender::DEG_id_is_fully_evaluated(), blender::DEG_id_is_user_modified(), blender::DEG_scene_component_is_user_modified(), blender::deg::deg_update_eval_copy_datablock(), blender::deg::do_sanity_checks(), blender::deg::DepsgraphNodeBuilder::find_id_node(), blender::deg::DepsgraphRelationBuilder::find_node(), blender::deg::DepsgraphRelationBuilder::find_node(), blender::deg::RNANodeQuery::find_node(), get_cow_id(), blender::deg::get_evaluated_id(), blender::deg::DepsgraphRelationBuilder::get_node(), blender::deg::graph_id_tag_update(), and blender::operation_needs_update().
| TimeSourceNode * blender::deg::Depsgraph::find_time_source | ( | ) | const |
Definition at line 92 of file depsgraph.cc.
References time_source.
Referenced by blender::deg::deg_debug_graphviz_graph_nodes(), blender::deg::deg_debug_graphviz_graph_relations(), and blender::DEG_stats_simple().
Definition at line 248 of file depsgraph.cc.
References find_id_node(), blender::deg::IDNode::id_cow, blender::ID_TAG_COPIED_ON_EVAL, and blender::ID::tag.
Referenced by blender::deg::AbstractBuilderPipeline::build_step_finalize(), and blender::deg::DepsgraphNodeBuilder::get_cow_id().
| blender::deg::Depsgraph::MEM_CXX_CLASS_ALLOC_FUNCS | ( | "Depsgraph" | ) |
| void blender::deg::Depsgraph::tag_time_source | ( | ) |
Definition at line 97 of file depsgraph.cc.
References blender::deg::DEG_UPDATE_SOURCE_TIME, blender::deg::TimeSourceNode::tag_update(), and time_source.
Referenced by blender::DEG_evaluate_on_framechange(), blender::DEG_evaluate_on_refresh(), and blender::DEG_graph_time_tag_update().
| Main* blender::deg::Depsgraph::bmain |
Definition at line 142 of file depsgraph.hh.
Referenced by blender::DEG_get_bmain(), blender::deg::deg_graph_flush_updates(), blender::DEG_graph_replace_owners(), blender::DEG_graph_tag_relations_update(), Depsgraph(), blender::deg::graph_tag_ids_for_visible_update(), blender::deg::register_graph(), and blender::deg::unregister_graph().
| LinearAllocator blender::deg::Depsgraph::build_allocator |
Used to decrease the cost of allocating many small structs when building the graph. This is a viable strategy because the graph is rebuilt from scratch rather than changed in-place.
Definition at line 90 of file depsgraph.hh.
Referenced by add_new_relation(), and clear_all_nodes().
| float blender::deg::Depsgraph::ctime |
Definition at line 150 of file depsgraph.hh.
Referenced by blender::DEG_evaluate_on_framechange(), blender::DEG_evaluate_on_refresh(), blender::DEG_get_ctime(), and Depsgraph().
| DepsgraphDebug blender::deg::Depsgraph::debug |
Definition at line 168 of file depsgraph.hh.
Referenced by blender::DEG_debug_flags_get(), blender::DEG_debug_flags_set(), blender::DEG_debug_name_get(), blender::DEG_debug_name_set(), blender::deg::deg_evaluate_on_refresh(), and blender::DEG_get_last_evaluation_time().
| Set<OperationNode *> blender::deg::Depsgraph::entry_tags |
Definition at line 129 of file depsgraph.hh.
Referenced by add_entry_tag(), blender::deg::DepsgraphNodeBuilder::begin_build(), blender::deg::deg_evaluate_on_refresh(), blender::deg::deg_graph_clear_tags(), blender::deg::deg_graph_flush_updates(), and blender::DEG_is_fully_evaluated().
| float blender::deg::Depsgraph::frame |
Definition at line 149 of file depsgraph.hh.
Referenced by blender::DEG_evaluate_on_framechange(), blender::DEG_evaluate_on_refresh(), blender::deg_flush_updates_and_refresh(), and Depsgraph().
| bool blender::deg::Depsgraph::has_animated_visibility |
Definition at line 105 of file depsgraph.hh.
Referenced by blender::deg::DepsgraphNodeBuilder::build_object_modifiers(), blender::deg::DepsgraphNodeBuilder::build_view_layer(), blender::deg::deg_evaluate_on_refresh(), and Depsgraph().
Definition at line 94 of file depsgraph.hh.
Referenced by add_id_node(), clear_id_nodes(), and find_id_node().
| IDDepsNodes blender::deg::Depsgraph::id_nodes |
Definition at line 99 of file depsgraph.hh.
Referenced by add_id_node(), blender::deg::DepsgraphNodeBuilder::begin_build(), blender::deg::DepsgraphRelationBuilder::build_copy_on_write_relations(), blender::deg::DepsgraphRelationBuilder::build_driver_data(), blender::deg::DepsgraphRelationBuilder::build_driver_relations(), clear_id_nodes(), blender::deg::deg_debug_graphviz_graph_nodes(), blender::deg::deg_debug_graphviz_graph_relations(), blender::deg::deg_eval_stats_aggregate(), blender::deg::deg_graph_build_finalize(), blender::deg::deg_graph_flush_visibility_flags(), blender::DEG_ids_clear_recalc(), blender::DEG_ids_restore_recalc(), blender::DEG_iterator_ids_begin(), blender::DEG_iterator_ids_next(), blender::DEG_iterator_objects_begin(), blender::DEG_stats_simple(), blender::deg::do_sanity_checks(), blender::deg::graph_tag_ids_for_visible_update(), and blender::deg::DepsgraphNodeBuilder::update_invalid_cow_pointers().
| char blender::deg::Depsgraph::id_type_exist[INDEX_ID_MAX] |
Definition at line 124 of file depsgraph.hh.
Referenced by add_id_node(), blender::DEG_id_type_any_exists(), and Depsgraph().
| char blender::deg::Depsgraph::id_type_updated[INDEX_ID_MAX] |
Definition at line 119 of file depsgraph.hh.
Referenced by blender::DEG_graph_id_type_tag(), blender::DEG_id_type_any_updated(), blender::DEG_id_type_updated(), blender::DEG_ids_clear_recalc(), blender::DEG_ids_restore_recalc(), and Depsgraph().
| char blender::deg::Depsgraph::id_type_updated_backup[INDEX_ID_MAX] |
Definition at line 121 of file depsgraph.hh.
Referenced by blender::DEG_ids_clear_recalc(), blender::DEG_ids_restore_recalc(), and Depsgraph().
| bool blender::deg::Depsgraph::is_active |
Definition at line 163 of file depsgraph.hh.
Referenced by blender::deg::sync_writeback::add(), blender::deg::AnimationBackup::AnimationBackup(), blender::deg_flush_updates_and_refresh(), blender::deg::deg_graph_build_finalize(), blender::DEG_ids_clear_recalc(), blender::DEG_is_active(), blender::DEG_make_active(), blender::DEG_make_inactive(), and Depsgraph().
| bool blender::deg::Depsgraph::is_evaluating |
Definition at line 170 of file depsgraph.hh.
Referenced by blender::deg::deg_evaluate_on_refresh(), blender::DEG_is_evaluating(), Depsgraph(), and blender::deg::graph_id_tag_update().
| bool blender::deg::Depsgraph::is_render_pipeline_depsgraph |
Definition at line 176 of file depsgraph.hh.
Referenced by blender::deg::DepsgraphRelationBuilder::build_object_pointcache(), blender::deg::CompositorBuilderPipeline::CompositorBuilderPipeline(), Depsgraph(), and blender::deg::RenderBuilderPipeline::RenderBuilderPipeline().
| light_linking::Cache blender::deg::Depsgraph::light_linking_cache |
Definition at line 187 of file depsgraph.hh.
Referenced by blender::deg::DepsgraphNodeBuilder::build_object_light_linking(), clear_id_nodes(), blender::deg::DepsgraphNodeBuilder::end_build(), and blender::deg::light_linking::eval_runtime_data().
| SpinLock blender::deg::Depsgraph::lock |
Definition at line 139 of file depsgraph.hh.
Referenced by Depsgraph(), and ~Depsgraph().
| eEvaluationMode blender::deg::Depsgraph::mode |
Definition at line 145 of file depsgraph.hh.
Referenced by blender::deg::DepsgraphNodeBuilder::build_collection(), blender::deg::DepsgraphNodeBuilder::build_layer_collections(), blender::deg::DepsgraphRelationBuilder::build_layer_collections(), blender::deg::DepsgraphRelationBuilder::build_object_instance_collection(), blender::deg::DepsgraphNodeBuilder::build_object_modifiers(), blender::deg::deg_evaluate_object_modifiers_mode_node_visibility(), blender::deg::deg_evaluate_object_node_visibility(), blender::DEG_get_mode(), Depsgraph(), blender::deg::FromCollectionBuilderPipeline::FromCollectionBuilderPipeline(), blender::deg::DepsgraphBuilder::is_modifier_visibility_animated(), blender::deg::DepsgraphBuilder::is_object_visibility_animated(), and blender::deg::DepsgraphBuilder::need_pull_base_into_graph().
| bool blender::deg::Depsgraph::need_tag_id_on_graph_visibility_time_update |
Definition at line 116 of file depsgraph.hh.
Referenced by Depsgraph(), and blender::deg::graph_tag_ids_for_visible_update().
| bool blender::deg::Depsgraph::need_tag_id_on_graph_visibility_update |
Definition at line 115 of file depsgraph.hh.
Referenced by Depsgraph(), and blender::deg::graph_tag_ids_for_visible_update().
| bool blender::deg::Depsgraph::need_update_nodes_visibility |
Definition at line 111 of file depsgraph.hh.
Referenced by blender::deg::deg_evaluate_object_modifiers_mode_node_visibility(), blender::deg::deg_evaluate_object_node_visibility(), blender::deg::deg_evaluate_on_refresh(), blender::deg::deg_graph_flush_visibility_flags(), blender::deg::deg_graph_flush_visibility_flags_if_needed(), Depsgraph(), and blender::deg::OperationNode::tag_update().
| bool blender::deg::Depsgraph::need_update_relations |
| OperationNodes blender::deg::Depsgraph::operations |
Definition at line 135 of file depsgraph.hh.
Referenced by blender::deg::DepsgraphNodeBuilder::add_id_node(), blender::deg::DepsgraphNodeBuilder::add_operation_node(), blender::deg::DepsgraphNodeBuilder::begin_build(), blender::DEG_debug_compare(), blender::DEG_debug_consistency_check(), blender::deg::deg_eval_stats_aggregate(), blender::deg::deg_graph_flush_visibility_flags(), blender::deg::deg_graph_remove_unused_noops(), blender::deg::deg_graph_transitive_reduction(), and blender::DEG_stats_simple().
| Map<const ID *, ListBaseT<CollisionRelation> *>* blender::deg::Depsgraph::physics_relations_collision[DEG_PHYSICS_COLLISION_NUM] |
Definition at line 185 of file depsgraph.hh.
Referenced by blender::deg::build_collision_relations(), blender::deg::clear_physics_relations(), blender::DEG_get_collision_relations(), and Depsgraph().
| Map<const ID *, ListBaseT<EffectorRelation> *>* blender::deg::Depsgraph::physics_relations_effector |
Definition at line 183 of file depsgraph.hh.
Referenced by blender::deg::build_effector_relations(), blender::deg::clear_physics_relations(), blender::DEG_get_effector_relations(), and Depsgraph().
| Scene* blender::deg::Depsgraph::scene |
Definition at line 143 of file depsgraph.hh.
Referenced by blender::deg::DepsgraphNodeBuilder::build_driver_variables(), blender::deg::DepsgraphRelationBuilder::build_driver_variables(), blender::deg::build_effector_relations(), blender::deg::DepsgraphNodeBuilder::build_object_light_linking(), blender::deg::AbstractBuilderPipeline::build_step_finalize(), blender::deg::AbstractBuilderPipeline::build_step_sanity_check(), blender::deg::deg_create_eval_copy(), blender::DEG_get_input_scene(), blender::deg::deg_graph_flush_updates(), blender::DEG_graph_replace_owners(), blender::DEG_graph_tag_relations_update(), Depsgraph(), and blender::deg::DepsgraphNodeBuilder::end_build().
| Scene* blender::deg::Depsgraph::scene_cow |
Definition at line 154 of file depsgraph.hh.
Referenced by blender::deg::AbstractBuilderPipeline::build_step_finalize(), blender::deg_flush_updates_and_refresh(), blender::DEG_get_evaluated_scene(), and Depsgraph().
| DepsgraphEvaluateSyncWriteback blender::deg::Depsgraph::sync_writeback |
Definition at line 193 of file depsgraph.hh.
Referenced by blender::deg::sync_writeback::add(), blender::deg_flush_updates_and_refresh(), and Depsgraph().
| Vector<std::function<void()> > blender::deg::Depsgraph::sync_writeback_callbacks |
Stores functions that can be called after depsgraph evaluation to writeback some changes to original data. Also see DEG_depsgraph_writeback_sync.hh.
Definition at line 198 of file depsgraph.hh.
Referenced by blender::deg::sync_writeback::add(), and blender::deg_flush_updates_and_refresh().
| Mutex blender::deg::Depsgraph::sync_writeback_callbacks_mutex |
Needs to be locked when adding a writeback callback during evaluation.
Definition at line 200 of file depsgraph.hh.
Referenced by blender::deg::sync_writeback::add().
| TimeSourceNode* blender::deg::Depsgraph::time_source |
Definition at line 102 of file depsgraph.hh.
Referenced by add_time_source(), clear_all_nodes(), blender::deg::deg_graph_clear_tags(), blender::deg::deg_graph_flush_updates(), Depsgraph(), find_time_source(), blender::deg::DepsgraphRelationBuilder::get_node(), tag_time_source(), and ~Depsgraph().
| uint64_t blender::deg::Depsgraph::update_count |
Definition at line 190 of file depsgraph.hh.
Referenced by blender::deg::deg_evaluate_on_refresh(), blender::DEG_get_update_count(), and Depsgraph().
| bool blender::deg::Depsgraph::use_editors_update |
Definition at line 179 of file depsgraph.hh.
Referenced by blender::DEG_editors_update(), blender::DEG_enable_editors_update(), and Depsgraph().
| bool blender::deg::Depsgraph::use_visibility_optimization |
Definition at line 166 of file depsgraph.hh.
Referenced by blender::DEG_disable_visibility_optimization(), blender::deg::deg_evaluate_object_modifiers_mode_node_visibility(), blender::deg::deg_evaluate_object_node_visibility(), Depsgraph(), blender::deg::FromCollectionBuilderPipeline::FromCollectionBuilderPipeline(), and blender::deg::DepsgraphBuilder::need_pull_base_into_graph().
| ViewLayer* blender::deg::Depsgraph::view_layer |
Definition at line 144 of file depsgraph.hh.
Referenced by blender::deg::DepsgraphNodeBuilder::build_driver_variables(), blender::deg::DepsgraphRelationBuilder::build_driver_variables(), blender::deg::build_effector_relations(), blender::deg::AbstractBuilderPipeline::build_step_sanity_check(), blender::DEG_get_evaluated_view_layer(), blender::DEG_get_input_view_layer(), blender::deg::deg_graph_flush_updates(), blender::DEG_graph_replace_owners(), and Depsgraph().