Blender V5.0
blender::ed::space_node::SpaceNode_Runtime Struct Reference

#include <node_intern.hh>

Public Attributes

float aspect
float2 cursor
std::optional< int > frame_identifier_to_highlight
bool recalc_regular_compositing
std::unique_ptr< bNodeLinkDraglinkdrag
NodeInsertOfsDataiofsd
Map< ComputeContextHash, std::unique_ptr< space_node::NestedTreePreviews > > tree_previews_per_context
std::shared_ptr< asset::AssetItemTreeassets_for_menu
Map< int, bool > node_can_sync_states

Detailed Description

Definition at line 84 of file node_intern.hh.

Member Data Documentation

◆ aspect

◆ assets_for_menu

std::shared_ptr<asset::AssetItemTree> blender::ed::space_node::SpaceNode_Runtime::assets_for_menu

Temporary data for node add menu in order to provide longer-term storage for context pointers. Recreated every time the root menu is opened. In the future this will be replaced with an "all libraries" cache in the asset system itself.

Stored with a shared pointer so that it can be forward declared.

Definition at line 119 of file node_intern.hh.

Referenced by blender::ed::space_node::node_catalog_assets_draw(), blender::ed::space_node::node_unassigned_assets_draw(), blender::ed::space_node::root_catalogs_draw(), and blender::ed::space_node::ui_template_node_asset_menu_items().

◆ cursor

◆ frame_identifier_to_highlight

std::optional<int> blender::ed::space_node::SpaceNode_Runtime::frame_identifier_to_highlight

◆ iofsd

NodeInsertOfsData* blender::ed::space_node::SpaceNode_Runtime::iofsd

Temporary data for node insert offset (in UI called Auto-offset).

Definition at line 103 of file node_intern.hh.

Referenced by blender::ed::space_node::node_insert_offset_invoke(), and blender::ed::space_node::node_insert_on_link_flags().

◆ linkdrag

◆ node_can_sync_states

Map<int, bool> blender::ed::space_node::SpaceNode_Runtime::node_can_sync_states

Caches the sockets of which nodes can be synced. This can occasionally be expensive to compute because it needs to traverse the tree. Also, we don't want to check whether syncing is necessary for all nodes eagerly but only if a relevant node is visible to the user. The cache is reset when something changes that may affect what nodes need to be synced.

Definition at line 127 of file node_intern.hh.

Referenced by blender::ed::space_node::node_can_sync_cache_get().

◆ recalc_regular_compositing

bool blender::ed::space_node::SpaceNode_Runtime::recalc_regular_compositing

Indicates that the compositing int the space tree needs to be re-evaluated using regular compositing pipeline.

Definition at line 96 of file node_intern.hh.

Referenced by blender::ed::space_node::node_area_refresh(), and blender::ed::space_node::node_area_tag_tree_recalc().

◆ tree_previews_per_context

Map<ComputeContextHash, std::unique_ptr<space_node::NestedTreePreviews> > blender::ed::space_node::SpaceNode_Runtime::tree_previews_per_context

Use this to store data for the displayed node tree. It has an entry for every distinct nested node-group.

Definition at line 110 of file node_intern.hh.

Referenced by blender::ed::space_node::free_previews(), and blender::ed::space_node::get_nested_previews().


The documentation for this struct was generated from the following file: