|
Blender V5.0
|
#include "DNA_viewer_path_types.h"Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::bke |
| namespace | blender::bke::id |
Enumerations | |
| enum | ViewerPathEqualFlag { VIEWER_PATH_EQUAL_FLAG_IGNORE_ITERATION = (1 << 0) , VIEWER_PATH_EQUAL_FLAG_CONSIDER_UI_NAME = (1 << 1) } |
| enum ViewerPathEqualFlag |
| Enumerator | |
|---|---|
| VIEWER_PATH_EQUAL_FLAG_IGNORE_ITERATION | |
| VIEWER_PATH_EQUAL_FLAG_CONSIDER_UI_NAME | |
Definition at line 39 of file BKE_viewer_path.hh.
| void BKE_viewer_path_blend_read_data | ( | BlendDataReader * | reader, |
| ViewerPath * | viewer_path ) |
Definition at line 123 of file viewer_path.cc.
References BLO_read_string(), BLO_read_struct_list, LISTBASE_FOREACH, ViewerPath::path, VIEWER_PATH_ELEM_TYPE_EVALUATE_CLOSURE, VIEWER_PATH_ELEM_TYPE_FOREACH_GEOMETRY_ELEMENT_ZONE, VIEWER_PATH_ELEM_TYPE_GROUP_NODE, VIEWER_PATH_ELEM_TYPE_ID, VIEWER_PATH_ELEM_TYPE_MODIFIER, VIEWER_PATH_ELEM_TYPE_REPEAT_ZONE, VIEWER_PATH_ELEM_TYPE_SIMULATION_ZONE, and VIEWER_PATH_ELEM_TYPE_VIEWER_NODE.
Referenced by blender::ed::spreadsheet::spreadsheet_table_id_blend_read(), view3d_space_blend_read_data(), and workspace_blend_read_data().
| void BKE_viewer_path_blend_write | ( | BlendWriter * | writer, |
| const ViewerPath * | viewer_path ) |
Definition at line 73 of file viewer_path.cc.
References BLO_write_string(), BLO_write_struct, LISTBASE_FOREACH, ViewerPath::path, VIEWER_PATH_ELEM_TYPE_EVALUATE_CLOSURE, VIEWER_PATH_ELEM_TYPE_FOREACH_GEOMETRY_ELEMENT_ZONE, VIEWER_PATH_ELEM_TYPE_GROUP_NODE, VIEWER_PATH_ELEM_TYPE_ID, VIEWER_PATH_ELEM_TYPE_MODIFIER, VIEWER_PATH_ELEM_TYPE_REPEAT_ZONE, VIEWER_PATH_ELEM_TYPE_SIMULATION_ZONE, and VIEWER_PATH_ELEM_TYPE_VIEWER_NODE.
Referenced by blender::ed::spreadsheet::spreadsheet_table_id_blend_write_content_geometry(), view3d_space_blend_write(), and workspace_blend_write().
| void BKE_viewer_path_clear | ( | ViewerPath * | viewer_path | ) |
Definition at line 26 of file viewer_path.cc.
References BKE_viewer_path_elem_free(), BLI_listbase_clear(), LISTBASE_FOREACH_MUTABLE, and ViewerPath::path.
Referenced by blender::ed::viewer_path::activate_geometry_node(), blender::ed::viewer_path::find_geometry_nodes_viewer(), blender::ed::space_node::node_mouse_select(), blender::ed::spreadsheet::spreadsheet_table_id_free_content(), blender::ed::spreadsheet::spreadsheet_update_context(), blender::ed::viewer_path::update_active_geometry_nodes_viewer(), validate_viewer_paths(), view3d_free(), view3d_update_viewer_path(), blender::ed::spreadsheet::view_active_object(), blender::ed::viewer_path::viewer_path_for_geometry_node(), and workspace_free_data().
| void BKE_viewer_path_copy | ( | ViewerPath * | dst, |
| const ViewerPath * | src ) |
Definition at line 34 of file viewer_path.cc.
References BKE_viewer_path_elem_copy(), BKE_viewer_path_init(), BLI_addtail(), LISTBASE_FOREACH, and ViewerPath::path.
Referenced by blender::ed::viewer_path::activate_geometry_node(), blender::ed::spreadsheet::spreadsheet_table_id_copy_content_geometry(), blender::ed::spreadsheet::spreadsheet_update_context(), view3d_duplicate(), and view3d_update_viewer_path().
| ViewerPathElem * BKE_viewer_path_elem_copy | ( | const ViewerPathElem * | src | ) |
Definition at line 279 of file viewer_path.cc.
References BKE_viewer_path_elem_new(), BLI_strdup(), IDViewerPathElem::id, ModifierViewerPathElem::modifier_uid, GroupNodeViewerPathElem::node_id, ViewerNodeViewerPathElem::node_id, RepeatZoneViewerPathElem::repeat_output_node_id, SimulationZoneViewerPathElem::sim_output_node_id, EvaluateClosureNodeViewerPathElem::source_output_node_id, ViewerPathElem::type, ViewerPathElem::ui_name, VIEWER_PATH_ELEM_TYPE_EVALUATE_CLOSURE, VIEWER_PATH_ELEM_TYPE_FOREACH_GEOMETRY_ELEMENT_ZONE, VIEWER_PATH_ELEM_TYPE_GROUP_NODE, VIEWER_PATH_ELEM_TYPE_ID, VIEWER_PATH_ELEM_TYPE_MODIFIER, VIEWER_PATH_ELEM_TYPE_REPEAT_ZONE, VIEWER_PATH_ELEM_TYPE_SIMULATION_ZONE, VIEWER_PATH_ELEM_TYPE_VIEWER_NODE, and ForeachGeometryElementZoneViewerPathElem::zone_output_node_id.
Referenced by BKE_viewer_path_copy().
| bool BKE_viewer_path_elem_equal | ( | const ViewerPathElem * | a, |
| const ViewerPathElem * | b, | ||
| ViewerPathEqualFlag | flag = ViewerPathEqualFlag(0) ) |
Definition at line 343 of file viewer_path.cc.
References b, flag, IDViewerPathElem::id, ModifierViewerPathElem::modifier_uid, GroupNodeViewerPathElem::node_id, ViewerNodeViewerPathElem::node_id, RepeatZoneViewerPathElem::repeat_output_node_id, SimulationZoneViewerPathElem::sim_output_node_id, EvaluateClosureNodeViewerPathElem::source_output_node_id, ViewerPathElem::type, ViewerPathElem::ui_name, VIEWER_PATH_ELEM_TYPE_EVALUATE_CLOSURE, VIEWER_PATH_ELEM_TYPE_FOREACH_GEOMETRY_ELEMENT_ZONE, VIEWER_PATH_ELEM_TYPE_GROUP_NODE, VIEWER_PATH_ELEM_TYPE_ID, VIEWER_PATH_ELEM_TYPE_MODIFIER, VIEWER_PATH_ELEM_TYPE_REPEAT_ZONE, VIEWER_PATH_ELEM_TYPE_SIMULATION_ZONE, VIEWER_PATH_ELEM_TYPE_VIEWER_NODE, VIEWER_PATH_EQUAL_FLAG_CONSIDER_UI_NAME, VIEWER_PATH_EQUAL_FLAG_IGNORE_ITERATION, and ForeachGeometryElementZoneViewerPathElem::zone_output_node_id.
Referenced by BKE_viewer_path_equal().
| void BKE_viewer_path_elem_free | ( | ViewerPathElem * | elem | ) |
Definition at line 453 of file viewer_path.cc.
References MEM_freeN(), ViewerPathElem::type, ViewerPathElem::ui_name, VIEWER_PATH_ELEM_TYPE_EVALUATE_CLOSURE, VIEWER_PATH_ELEM_TYPE_FOREACH_GEOMETRY_ELEMENT_ZONE, VIEWER_PATH_ELEM_TYPE_GROUP_NODE, VIEWER_PATH_ELEM_TYPE_ID, VIEWER_PATH_ELEM_TYPE_MODIFIER, VIEWER_PATH_ELEM_TYPE_REPEAT_ZONE, VIEWER_PATH_ELEM_TYPE_SIMULATION_ZONE, and VIEWER_PATH_ELEM_TYPE_VIEWER_NODE.
Referenced by BKE_viewer_path_clear().
| uint64_t BKE_viewer_path_elem_hash | ( | const ViewerPathElem & | elem | ) |
Definition at line 406 of file viewer_path.cc.
References blender::get_default_hash(), ID::session_uid, ViewerPathElem::type, VIEWER_PATH_ELEM_TYPE_EVALUATE_CLOSURE, VIEWER_PATH_ELEM_TYPE_FOREACH_GEOMETRY_ELEMENT_ZONE, VIEWER_PATH_ELEM_TYPE_GROUP_NODE, VIEWER_PATH_ELEM_TYPE_ID, VIEWER_PATH_ELEM_TYPE_MODIFIER, VIEWER_PATH_ELEM_TYPE_REPEAT_ZONE, VIEWER_PATH_ELEM_TYPE_SIMULATION_ZONE, and VIEWER_PATH_ELEM_TYPE_VIEWER_NODE.
Referenced by BKE_viewer_path_hash().
| ViewerPathElem * BKE_viewer_path_elem_new | ( | ViewerPathElemType | type | ) |
Definition at line 200 of file viewer_path.cc.
References BLI_assert_unreachable, make_elem(), VIEWER_PATH_ELEM_TYPE_EVALUATE_CLOSURE, VIEWER_PATH_ELEM_TYPE_FOREACH_GEOMETRY_ELEMENT_ZONE, VIEWER_PATH_ELEM_TYPE_GROUP_NODE, VIEWER_PATH_ELEM_TYPE_ID, VIEWER_PATH_ELEM_TYPE_MODIFIER, VIEWER_PATH_ELEM_TYPE_REPEAT_ZONE, VIEWER_PATH_ELEM_TYPE_SIMULATION_ZONE, and VIEWER_PATH_ELEM_TYPE_VIEWER_NODE.
Referenced by BKE_viewer_path_elem_copy(), BKE_viewer_path_elem_new_evaluate_closure(), BKE_viewer_path_elem_new_foreach_geometry_element_zone(), BKE_viewer_path_elem_new_group_node(), BKE_viewer_path_elem_new_id(), BKE_viewer_path_elem_new_modifier(), BKE_viewer_path_elem_new_repeat_zone(), BKE_viewer_path_elem_new_simulation_zone(), and BKE_viewer_path_elem_new_viewer_node().
| EvaluateClosureNodeViewerPathElem * BKE_viewer_path_elem_new_evaluate_closure | ( | ) |
Definition at line 273 of file viewer_path.cc.
References BKE_viewer_path_elem_new(), and VIEWER_PATH_ELEM_TYPE_EVALUATE_CLOSURE.
Referenced by blender::ed::viewer_path::viewer_path_elem_for_compute_context().
| ForeachGeometryElementZoneViewerPathElem * BKE_viewer_path_elem_new_foreach_geometry_element_zone | ( | ) |
Definition at line 267 of file viewer_path.cc.
References BKE_viewer_path_elem_new(), and VIEWER_PATH_ELEM_TYPE_FOREACH_GEOMETRY_ELEMENT_ZONE.
Referenced by blender::ed::viewer_path::viewer_path_elem_for_compute_context().
| GroupNodeViewerPathElem * BKE_viewer_path_elem_new_group_node | ( | ) |
Definition at line 243 of file viewer_path.cc.
References BKE_viewer_path_elem_new(), and VIEWER_PATH_ELEM_TYPE_GROUP_NODE.
Referenced by blender::ed::viewer_path::viewer_path_elem_for_compute_context().
| IDViewerPathElem * BKE_viewer_path_elem_new_id | ( | ) |
Definition at line 232 of file viewer_path.cc.
References BKE_viewer_path_elem_new(), and VIEWER_PATH_ELEM_TYPE_ID.
Referenced by blender::ed::spreadsheet::view_active_object(), and blender::ed::viewer_path::viewer_path_for_geometry_node().
| ModifierViewerPathElem * BKE_viewer_path_elem_new_modifier | ( | ) |
Definition at line 237 of file viewer_path.cc.
References BKE_viewer_path_elem_new(), and VIEWER_PATH_ELEM_TYPE_MODIFIER.
Referenced by blender::ed::viewer_path::viewer_path_elem_for_compute_context().
| RepeatZoneViewerPathElem * BKE_viewer_path_elem_new_repeat_zone | ( | ) |
Definition at line 261 of file viewer_path.cc.
References BKE_viewer_path_elem_new(), and VIEWER_PATH_ELEM_TYPE_REPEAT_ZONE.
Referenced by blender::ed::viewer_path::viewer_path_elem_for_compute_context().
| SimulationZoneViewerPathElem * BKE_viewer_path_elem_new_simulation_zone | ( | ) |
Definition at line 249 of file viewer_path.cc.
References BKE_viewer_path_elem_new(), and VIEWER_PATH_ELEM_TYPE_SIMULATION_ZONE.
Referenced by blender::ed::viewer_path::viewer_path_elem_for_compute_context().
| ViewerNodeViewerPathElem * BKE_viewer_path_elem_new_viewer_node | ( | ) |
Definition at line 255 of file viewer_path.cc.
References BKE_viewer_path_elem_new(), and VIEWER_PATH_ELEM_TYPE_VIEWER_NODE.
Referenced by blender::ed::viewer_path::viewer_path_for_geometry_node().
| bool BKE_viewer_path_equal | ( | const ViewerPath * | a, |
| const ViewerPath * | b, | ||
| ViewerPathEqualFlag | flag = ViewerPathEqualFlag(0) ) |
Definition at line 43 of file viewer_path.cc.
References b, BKE_viewer_path_elem_equal(), ListBase::first, flag, ViewerPathElem::next, and ViewerPath::path.
Referenced by blender::ed::viewer_path::find_geometry_nodes_viewer(), blender::ed::spreadsheet::spreadsheet_table_id_match(), blender::ed::spreadsheet::spreadsheet_update_context(), blender::ed::viewer_path::update_active_geometry_nodes_viewer(), and view3d_update_viewer_path().
| void BKE_viewer_path_foreach_id | ( | LibraryForeachIDData * | data, |
| ViewerPath * | viewer_path ) |
Definition at line 143 of file viewer_path.cc.
References BKE_LIB_FOREACHID_PROCESS_ID, data, IDWALK_CB_DIRECT_WEAK_LINK, LISTBASE_FOREACH, ViewerPath::path, VIEWER_PATH_ELEM_TYPE_EVALUATE_CLOSURE, VIEWER_PATH_ELEM_TYPE_FOREACH_GEOMETRY_ELEMENT_ZONE, VIEWER_PATH_ELEM_TYPE_GROUP_NODE, VIEWER_PATH_ELEM_TYPE_ID, VIEWER_PATH_ELEM_TYPE_MODIFIER, VIEWER_PATH_ELEM_TYPE_REPEAT_ZONE, VIEWER_PATH_ELEM_TYPE_SIMULATION_ZONE, and VIEWER_PATH_ELEM_TYPE_VIEWER_NODE.
Referenced by blender::ed::spreadsheet::spreadsheet_table_id_foreach_id(), view3d_foreach_id(), and workspace_foreach_id().
| uint64_t BKE_viewer_path_hash | ( | const ViewerPath & | viewer_path | ) |
Definition at line 63 of file viewer_path.cc.
References BKE_viewer_path_elem_hash(), blender::get_default_hash(), hash, LISTBASE_FOREACH, and ViewerPath::path.
| void BKE_viewer_path_id_remap | ( | ViewerPath * | viewer_path, |
| const blender::bke::id::IDRemapper & | mappings ) |
Definition at line 170 of file viewer_path.cc.
References blender::bke::id::IDRemapper::apply(), ID_REMAP_APPLY_DEFAULT, LISTBASE_FOREACH, ViewerPath::path, VIEWER_PATH_ELEM_TYPE_EVALUATE_CLOSURE, VIEWER_PATH_ELEM_TYPE_FOREACH_GEOMETRY_ELEMENT_ZONE, VIEWER_PATH_ELEM_TYPE_GROUP_NODE, VIEWER_PATH_ELEM_TYPE_ID, VIEWER_PATH_ELEM_TYPE_MODIFIER, VIEWER_PATH_ELEM_TYPE_REPEAT_ZONE, VIEWER_PATH_ELEM_TYPE_SIMULATION_ZONE, and VIEWER_PATH_ELEM_TYPE_VIEWER_NODE.
Referenced by blender::ed::spreadsheet::spreadsheet_table_id_remap_id(), and view3d_id_remap().
| void BKE_viewer_path_init | ( | ViewerPath * | viewer_path | ) |
Definition at line 21 of file viewer_path.cc.
References BLI_listbase_clear(), and ViewerPath::path.
Referenced by BKE_viewer_path_copy(), and blender::ed::viewer_path::viewer_path_for_geometry_node().