|
Blender V5.0
|
Enumerations | |
| enum class | MoveDirection { Up = 0 , Down = 1 } |
Functions | |
| PointerRNA | get_active_node_to_operate_on (bContext *C, wmOperator *op, const StringRef node_idname) |
| void | update_after_node_change (bContext *C, const PointerRNA node_ptr) |
| template<typename Accessor> | |
| bool | editable_node_active_poll (bContext *C) |
| void | add_node_identifier_property (wmOperatorType *ot) |
| template<typename Accessor> | |
| void | remove_active_item (wmOperatorType *ot, const char *name, const char *idname, const char *description) |
| template<typename Accessor> | |
| void | remove_item_by_index (wmOperatorType *ot, const char *name, const char *idname, const char *description) |
| template<typename Accessor> | |
| void | add_item (wmOperatorType *ot, const char *name, const char *idname, const char *description) |
| template<typename Accessor> | |
| void | move_active_item (wmOperatorType *ot, const char *name, const char *idname, const char *description) |
| template<typename Accessor> | |
| void | make_common_operators () |
|
strong |
| Enumerator | |
|---|---|
| Up | |
| Down | |
Definition at line 232 of file NOD_socket_items_ops.hh.
|
inline |
Definition at line 166 of file NOD_socket_items_ops.hh.
References blender::nodes::socket_items::SocketItemsRef< T >::active_index, blender::nodes::socket_items::add_item(), blender::nodes::socket_items::add_item_with_name(), blender::nodes::socket_items::add_item_with_socket_type_and_name(), add_node_identifier_property(), BLI_assert_unreachable, C, PointerRNA::data, editable_node_active_poll(), get_active_node_to_operate_on(), blender::nodes::socket_items::SocketItemsRef< T >::items, blender::nodes::socket_items::SocketItemsRef< T >::items_num, blender::dna::array::move_index(), bNode::name, name, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPTYPE_UNDO, ot, PointerRNA::owner_id, SOCK_FLOAT, SOCK_GEOMETRY, bNodeTree::type, and update_after_node_change().
Referenced by make_common_operators(), and blender::nodes::node_geo_index_switch_cc::NODE_OT_index_switch_item_add().
|
inline |
Definition at line 98 of file NOD_socket_items_ops.hh.
References INT32_MAX, ot, and RNA_def_int().
Referenced by add_item(), move_active_item(), and remove_active_item().
|
inline |
Definition at line 83 of file NOD_socket_items_ops.hh.
References C, CTX_wm_space_node(), SpaceNode::edittree, and ID_IS_EDITABLE.
Referenced by add_item(), move_active_item(), remove_active_item(), and remove_item_by_index().
|
inline |
Definition at line 27 of file NOD_socket_items_ops.hh.
References C, CTX_wm_space_node(), SpaceNode::edittree, blender::bke::bNodeTreeZones::get_zone_by_node(), bNodeTree::id, ID_IS_EDITABLE, bNode::identifier, bNode::idname, blender::bke::node_get_active(), PointerRNA_NULL, wmOperator::ptr, RNA_int_get(), RNA_pointer_create_discrete(), RNA_struct_property_is_set(), bNode::type_legacy, and blender::bke::zone_type_by_node_type().
Referenced by add_item(), move_active_item(), remove_active_item(), and remove_item_by_index().
|
inline |
Creates simple operators for adding, removing and moving items. The idnames are passed in explicitly, so that they are more searchable compared to when they would be computed automatically.
Definition at line 284 of file NOD_socket_items_ops.hh.
References add_item(), move_active_item(), ot, remove_active_item(), and WM_operatortype_append().
Referenced by blender::nodes::node_composite_file_output_cc::node_operators(), blender::nodes::node_fn_format_string_cc::node_operators(), blender::nodes::node_geo_attribute_capture_cc::node_operators(), blender::nodes::node_geo_bake_cc::node_operators(), blender::nodes::node_geo_closure_cc::output_node::node_operators(), blender::nodes::node_geo_combine_bundle_cc::node_operators(), blender::nodes::node_geo_evaluate_closure_cc::node_operators(), blender::nodes::node_geo_field_to_grid_cc::node_operators(), blender::nodes::node_geo_foreach_geometry_element_cc::output_node::node_operators(), blender::nodes::node_geo_menu_switch_cc::node_operators(), blender::nodes::node_geo_repeat_cc::repeat_output_node::node_operators(), blender::nodes::node_geo_separate_bundle_cc::node_operators(), blender::nodes::node_geo_simulation_cc::sim_output_node::node_operators(), and blender::nodes::node_geo_viewer_cc::node_operators().
|
inline |
Definition at line 238 of file NOD_socket_items_ops.hh.
References blender::nodes::socket_items::SocketItemsRef< T >::active_index, add_node_identifier_property(), C, PointerRNA::data, Down, editable_node_active_poll(), get_active_node_to_operate_on(), blender::nodes::socket_items::SocketItemsRef< T >::items, blender::nodes::socket_items::SocketItemsRef< T >::items_num, blender::dna::array::move_index(), name, OPERATOR_FINISHED, OPTYPE_UNDO, ot, RNA_def_enum(), RNA_enum_get(), Up, and update_after_node_change().
Referenced by make_common_operators().
|
inline |
Definition at line 112 of file NOD_socket_items_ops.hh.
References blender::nodes::socket_items::SocketItemsRef< T >::active_index, add_node_identifier_property(), C, PointerRNA::data, editable_node_active_poll(), get_active_node_to_operate_on(), blender::nodes::socket_items::SocketItemsRef< T >::items, blender::nodes::socket_items::SocketItemsRef< T >::items_num, name, OPERATOR_FINISHED, OPTYPE_UNDO, ot, blender::dna::array::remove_index(), and update_after_node_change().
Referenced by make_common_operators().
|
inline |
Definition at line 139 of file NOD_socket_items_ops.hh.
References blender::nodes::socket_items::SocketItemsRef< T >::active_index, C, PointerRNA::data, editable_node_active_poll(), get_active_node_to_operate_on(), INT32_MAX, blender::nodes::socket_items::SocketItemsRef< T >::items, blender::nodes::socket_items::SocketItemsRef< T >::items_num, name, OPERATOR_FINISHED, OPTYPE_UNDO, ot, blender::dna::array::remove_index(), RNA_def_int(), RNA_int_get(), and update_after_node_change().
Referenced by blender::nodes::node_geo_index_switch_cc::NODE_OT_index_switch_item_remove().
|
inline |
Definition at line 73 of file NOD_socket_items_ops.hh.
References BKE_main_ensure_invariants(), BKE_ntree_update_tag_node_property(), C, CTX_data_main(), PointerRNA::data, bNodeTree::id, NA_EDITED, NC_NODE, PointerRNA::owner_id, and WM_main_add_notifier().
Referenced by add_item(), move_active_item(), remove_active_item(), and remove_item_by_index().