|
Blender V5.0
|
Public Member Functions | |
| ~TreeDrawContext () | |
Public Attributes | |
| Main * | bmain |
| wmWindow * | window |
| Scene * | scene |
| ARegion * | region |
| Depsgraph * | depsgraph |
| const bNode * | active_geometry_nodes_viewer = nullptr |
| geo_log::ContextualGeoTreeLogs | tree_logs |
| NestedTreePreviews * | nested_group_infos = nullptr |
| Map< bNodeInstanceKey, timeit::Nanoseconds > * | compositor_per_node_execution_time = nullptr |
| Map< const bNode *, StringRef > | reroute_auto_labels |
| Map< const bNode *, const bNode * > | menu_switch_source_by_index_switch |
| Array< Vector< NodeExtraInfoRow > > | extra_info_rows_per_node |
| Map< int32_t, VectorSet< std::string > > | shader_node_errors |
This is passed to many functions which draw the node editor.
Definition at line 123 of file node_draw.cc.
|
inline |
Definition at line 168 of file node_draw.cc.
References BLI_assert.
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().
| Main* blender::ed::space_node::TreeDrawContext::bmain |
| Map<bNodeInstanceKey, timeit::Nanoseconds>* blender::ed::space_node::TreeDrawContext::compositor_per_node_execution_time = nullptr |
Definition at line 146 of file node_draw.cc.
Referenced by blender::ed::space_node::compositor_accumulate_frame_node_execution_time(), blender::ed::space_node::compositor_node_get_execution_time(), and blender::ed::space_node::draw_nodetree().
| Depsgraph* blender::ed::space_node::TreeDrawContext::depsgraph |
| 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 164 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().
| Map<const bNode *, const bNode *> blender::ed::space_node::TreeDrawContext::menu_switch_source_by_index_switch |
Index Switch nodes can draw labels retrieved from a connected menu switch node. The corresponding node pairs are preprocessed to avoid the overhead of having to detect them while drawing individual sockets.
Definition at line 158 of file node_draw.cc.
Referenced by blender::ed::space_node::draw_nodetree(), and blender::ed::space_node::draw_socket_layout().
| NestedTreePreviews* blender::ed::space_node::TreeDrawContext::nested_group_infos = nullptr |
Definition at line 144 of file node_draw.cc.
Referenced by blender::ed::space_node::draw_nodetree(), and blender::ed::space_node::node_draw_basis().
| ARegion* blender::ed::space_node::TreeDrawContext::region |
Label for reroute nodes that is derived from upstream reroute nodes.
Definition at line 151 of file node_draw.cc.
Referenced by blender::ed::space_node::reroute_node_get_auto_label().
| Scene* blender::ed::space_node::TreeDrawContext::scene |
Definition at line 166 of file node_draw.cc.
Referenced by blender::ed::space_node::draw_nodetree(), and blender::ed::space_node::node_add_error_message_button().
| geo_log::ContextualGeoTreeLogs blender::ed::space_node::TreeDrawContext::tree_logs |
Geometry nodes logs various data during execution. The logged data that corresponds to the currently drawn node tree can be retrieved from the log below.
Definition at line 142 of file node_draw.cc.
Referenced by blender::ed::space_node::draw_nodetree(), blender::ed::space_node::geo_node_get_execution_time(), blender::ed::space_node::node_add_error_message_button(), blender::ed::space_node::node_get_accessed_attributes_row(), and blender::ed::space_node::node_get_extra_info().
| wmWindow* blender::ed::space_node::TreeDrawContext::window |