|
Blender V5.3
|
#include <BKE_node_runtime.hh>
Inherits blender::blender::NonCopyable, and blender::blender::NonMovable.
Public Attributes | |
| nodes::NodeDeclaration * | declaration = nullptr |
| uint32_t | changed_flag = 0 |
| uint8_t | need_exec = 0 |
| bNode * | original = nullptr |
| rctf | draw_bounds {} |
| short | tmp_flag = 0 |
| char | iter_flag = 0 |
| int | update = 0 |
| float | anim_ofsx |
| Vector< bNodeInternalLink > | internal_links |
| int | index_in_tree = -1 |
| bool | forward_compatible_versioning_done = false |
| bool | is_dangling_reroute = false |
| Vector< bNodeSocket * > | inputs |
| Vector< bNodeSocket * > | outputs |
| Map< UString, bNodeSocket * > | inputs_by_identifier |
| Map< UString, bNodeSocket * > | outputs_by_identifier |
| bool | has_available_linked_inputs = false |
| bool | has_available_linked_outputs = false |
| Vector< bNode * > | direct_children_in_frame |
| bNodeTree * | owner_tree = nullptr |
| int | toposort_left_to_right_index = -1 |
| int | toposort_right_to_left_index = -1 |
| Array< bNodePanelRuntime > | panels |
Run-time data for every node. This should only contain data that is somewhat persistent (i.e. data that lives longer than a single depsgraph evaluation + redraw). Data that's only used in smaller scopes should generally be stored in separate arrays and/or maps.
Definition at line 354 of file BKE_node_runtime.hh.
| float blender::bke::bNodeRuntime::anim_ofsx |
Offset that will be added to #bNode::locx for insert offset animation.
Definition at line 398 of file BKE_node_runtime.hh.
| uint32_t blender::bke::bNodeRuntime::changed_flag = 0 |
Definition at line 377 of file BKE_node_runtime.hh.
| nodes::NodeDeclaration* blender::bke::bNodeRuntime::declaration = nullptr |
Describes the desired interface of the node. This is run-time data only. The actual interface of the node may deviate from the declaration temporarily. It's possible to sync the actual state of the node to the desired state. Currently, this is only done when a node is created or loaded.
In the future, we may want to keep more data only in the declaration, so that it does not have to be synced to other places that are stored in files. That especially applies to data that can't be edited by users directly (e.g. min/max values of sockets, tooltips, ...).
The declaration of a node can be recreated at any time when it is used. Caching it here is just a bit more efficient when it is used a lot. To make sure that the cache is up-to-date, call node_declaration_ensure before using it.
Currently, the declaration is the same for every node of the same type. Going forward, that is intended to change though. Especially when nodes become more dynamic with respect to how many sockets they have.
Definition at line 374 of file BKE_node_runtime.hh.
Definition at line 422 of file BKE_node_runtime.hh.
| rctf blender::bke::bNodeRuntime::draw_bounds {} |
Calculated bounding box of node in the view space of the node editor (including UI scale).
Definition at line 386 of file BKE_node_runtime.hh.
Referenced by blender::ed::space_node::add_reroute_exec(), blender::ed::space_node::find_bounds_by_zone_recursive(), blender::ed::space_node::node_find_exec_fn(), blender::ed::space_node::node_insert_on_link_flags_set(), blender::ed::space_node::node_link_insert_offset_ntree(), blender::ed::space_node::node_select_same_type_step_exec(), and blender::ed::space_node::viewer_linking::position_viewer_node().
| bool blender::bke::bNodeRuntime::forward_compatible_versioning_done = false |
Used to avoid running forward compatibility code more often than necessary.
Definition at line 407 of file BKE_node_runtime.hh.
| bool blender::bke::bNodeRuntime::has_available_linked_inputs = false |
Definition at line 420 of file BKE_node_runtime.hh.
Referenced by blender::bke::node_tree_runtime::update_directly_linked_links_and_sockets().
| bool blender::bke::bNodeRuntime::has_available_linked_outputs = false |
Definition at line 421 of file BKE_node_runtime.hh.
Referenced by blender::bke::node_tree_runtime::update_directly_linked_links_and_sockets().
| int blender::bke::bNodeRuntime::index_in_tree = -1 |
Eagerly maintained cache of the node's index in the tree.
Definition at line 404 of file BKE_node_runtime.hh.
Referenced by blender::bke::ntree_copy_data().
| Vector<bNodeSocket *> blender::bke::bNodeRuntime::inputs |
Only valid if #topology_cache_is_dirty is false.
Definition at line 416 of file BKE_node_runtime.hh.
Referenced by blender::bke::node_tree_runtime::find_logical_origins_for_socket_recursive(), blender::bke::node_tree_runtime::update_dangling_reroute_nodes(), and blender::bke::node_tree_runtime::update_socket_vectors_and_owner_node().
| Map<UString, bNodeSocket *> blender::bke::bNodeRuntime::inputs_by_identifier |
Definition at line 418 of file BKE_node_runtime.hh.
| Vector<bNodeInternalLink> blender::bke::bNodeRuntime::internal_links |
List of cached internal links (input to output), for muted nodes and operators.
Definition at line 401 of file BKE_node_runtime.hh.
Referenced by blender::bke::node_copy_with_mapping().
| bool blender::bke::bNodeRuntime::is_dangling_reroute = false |
If this node is reroute and this reroute is not logically linked with any source except other reroute, this will be true.
Definition at line 413 of file BKE_node_runtime.hh.
Referenced by blender::bke::node_tree_runtime::update_dangling_reroute_nodes().
| char blender::bke::bNodeRuntime::iter_flag = 0 |
Used at runtime when iterating over node branches.
Definition at line 392 of file BKE_node_runtime.hh.
Referenced by blender::bke::iter_backwards_ex().
| uint8_t blender::bke::bNodeRuntime::need_exec = 0 |
Used as a boolean for execution.
Definition at line 380 of file BKE_node_runtime.hh.
Referenced by blender::group_execute(), and blender::tex_call_delegate().
The original node in the tree (for localized tree).
Definition at line 383 of file BKE_node_runtime.hh.
Referenced by blender::bke::node_tree_localize().
| Vector<bNodeSocket *> blender::bke::bNodeRuntime::outputs |
| Map<UString, bNodeSocket *> blender::bke::bNodeRuntime::outputs_by_identifier |
Definition at line 419 of file BKE_node_runtime.hh.
Definition at line 423 of file BKE_node_runtime.hh.
| Array<bNodePanelRuntime> blender::bke::bNodeRuntime::panels |
Panel runtime state.
Definition at line 429 of file BKE_node_runtime.hh.
Referenced by blender::bke::node_tree_runtime::update_panels().
| short blender::bke::bNodeRuntime::tmp_flag = 0 |
Used at runtime when going through the tree. Initialize before use.
Definition at line 389 of file BKE_node_runtime.hh.
Referenced by blender::ntree_branch_count_and_tag_nodes(), blender::ntree_branch_node_tag(), blender::ntree_shader_pruned_unused(), blender::ntree_shader_weight_tree_invert(), blender::ntree_weight_tree_merge_weight(), and blender::ntree_weight_tree_tag_nodes().
| int blender::bke::bNodeRuntime::toposort_left_to_right_index = -1 |
Can be used to toposort a subset of nodes.
Definition at line 425 of file BKE_node_runtime.hh.
Referenced by blender::nodes::partial_eval::get_global_node_sort_vector_left_to_right().
| int blender::bke::bNodeRuntime::toposort_right_to_left_index = -1 |
Definition at line 426 of file BKE_node_runtime.hh.
Referenced by blender::nodes::partial_eval::get_global_node_sort_vector_right_to_left().
| int blender::bke::bNodeRuntime::update = 0 |
Update flags.
Definition at line 395 of file BKE_node_runtime.hh.