Blender V4.5
blender::ed::space_node::TreeDrawContext Struct Reference

Public Attributes

Mainbmain
wmWindowwindow
Scenescene
ARegionregion
Depsgraph * depsgraph
const bNodeactive_geometry_nodes_viewer = nullptr
geo_log::ContextualGeoTreeLogs tree_logs
NestedTreePreviewsnested_group_infos = nullptr
bool used_by_compositor = false
Map< bNodeInstanceKey, timeit::Nanoseconds > * compositor_per_node_execution_time = nullptr
Map< const bNode *, StringRefreroute_auto_labels
Array< Vector< NodeExtraInfoRow > > extra_info_rows_per_node

Detailed Description

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

Definition at line 123 of file node_draw.cc.

Member Data Documentation

◆ active_geometry_nodes_viewer

const bNode* blender::ed::space_node::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 137 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().

◆ bmain

◆ compositor_per_node_execution_time

◆ depsgraph

◆ extra_info_rows_per_node

Array<Vector<NodeExtraInfoRow> > blender::ed::space_node::TreeDrawContext::extra_info_rows_per_node

Precomputed extra info rows for each node. This avoids having to compute them multiple times during drawing. The array is indexed by bNode::index().

Definition at line 161 of file node_draw.cc.

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

◆ nested_group_infos

NestedTreePreviews* blender::ed::space_node::TreeDrawContext::nested_group_infos = nullptr

◆ region

◆ reroute_auto_labels

Map<const bNode *, StringRef> blender::ed::space_node::TreeDrawContext::reroute_auto_labels

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

Definition at line 155 of file node_draw.cc.

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

◆ scene

◆ tree_logs

◆ used_by_compositor

bool blender::ed::space_node::TreeDrawContext::used_by_compositor = false

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

Definition at line 148 of file node_draw.cc.

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

◆ window


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