Blender V4.3
TreeDrawContext Struct Reference

Public Attributes

const bNodeactive_geometry_nodes_viewer = nullptr
 
blender::Map< const bNodeTreeZone *, geo_log::GeoTreeLog * > geo_log_by_zone
 
NestedTreePreviewsnested_group_infos = nullptr
 
bool used_by_realtime_compositor = false
 
blender::Map< bNodeInstanceKey, blender::timeit::Nanoseconds > * compositor_per_node_execution_time = nullptr
 
blender::Map< const bNode *, blender::StringRefNullreroute_auto_labels
 

Detailed Description

This is passed to many functions which draw the node editor.

Definition at line 112 of file node_draw.cc.

Member Data Documentation

◆ active_geometry_nodes_viewer

const bNode* TreeDrawContext::active_geometry_nodes_viewer = nullptr

Whether a viewer node is active in geometry nodes can not be determined by a flag on the node alone. That's because if the node group with the viewer is used multiple times, it's only active in one of these cases. The active node is cached here to avoid doing the more expensive check for every viewer node in the tree.

Definition at line 120 of file node_draw.cc.

Referenced by blender::ed::space_node::draw_nodetree(), blender::ed::space_node::node_draw_basis(), and blender::ed::space_node::node_get_colorid().

◆ compositor_per_node_execution_time

◆ geo_log_by_zone

◆ nested_group_infos

NestedTreePreviews* TreeDrawContext::nested_group_infos = nullptr

◆ reroute_auto_labels

blender::Map<const bNode *, blender::StringRefNull> TreeDrawContext::reroute_auto_labels

Label for reroute nodes that is derived from upstream reroute nodes.

Definition at line 139 of file node_draw.cc.

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

◆ used_by_realtime_compositor

bool TreeDrawContext::used_by_realtime_compositor = false

True if there is an active realtime compositor using the node tree, false otherwise.

Definition at line 131 of file node_draw.cc.

Referenced by blender::ed::space_node::draw_nodetree(), and blender::ed::space_node::node_add_error_message_button().


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