Blender V4.3
blender::nodes::socket_items::ops Namespace Reference

Enumerations

enum class  MoveDirection { Up = 0 , Down = 1 }
 

Functions

PointerRNA get_active_node_to_operate_on (bContext *C, const int node_type)
 
void update_after_node_change (bContext *C, const PointerRNA node_ptr)
 
template<typename Accessor >
bool editable_node_active_poll (bContext *C)
 
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)
 

Enumeration Type Documentation

◆ MoveDirection

Enumerator
Up 
Down 

Definition at line 176 of file NOD_socket_items_ops.hh.

Function Documentation

◆ add_item()

template<typename Accessor >
void blender::nodes::socket_items::ops::add_item ( wmOperatorType * ot,
const char * name,
const char * idname,
const char * description )
inline

Definition at line 123 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(), BLI_assert_unreachable, C, PointerRNA::data, wmOperatorType::description, editable_node_active_poll(), wmOperatorType::exec, get_active_node_to_operate_on(), wmOperatorType::idname, blender::nodes::socket_items::SocketItemsRef< T >::items, blender::nodes::socket_items::SocketItemsRef< T >::items_num, blender::dna::array::move_index(), wmOperatorType::name, OPERATOR_FINISHED, ot, wmOperatorType::poll, SOCK_FLOAT, SOCK_GEOMETRY, and update_after_node_change().

Referenced by blender::nodes::node_geo_bake_cc::NODE_OT_bake_node_item_add(), blender::nodes::node_geo_attribute_capture_cc::NODE_OT_capture_attribute_item_add(), blender::nodes::node_geo_menu_switch_cc::NODE_OT_enum_definition_item_add(), blender::nodes::node_geo_foreach_geometry_element_cc::output_node::NODE_OT_foreach_geometry_element_zone_generation_item_add(), blender::nodes::node_geo_foreach_geometry_element_cc::output_node::NODE_OT_foreach_geometry_element_zone_input_item_add(), blender::nodes::node_geo_foreach_geometry_element_cc::output_node::NODE_OT_foreach_geometry_element_zone_main_item_add(), blender::nodes::node_geo_index_switch_cc::NODE_OT_index_switch_item_add(), blender::nodes::node_geo_repeat_cc::repeat_output_node::NODE_OT_repeat_zone_item_add(), and blender::nodes::node_geo_simulation_cc::NODE_OT_simulation_zone_item_add().

◆ editable_node_active_poll()

template<typename Accessor >
bool blender::nodes::socket_items::ops::editable_node_active_poll ( bContext * C)
inline

◆ get_active_node_to_operate_on()

◆ move_active_item()

template<typename Accessor >
void blender::nodes::socket_items::ops::move_active_item ( wmOperatorType * ot,
const char * name,
const char * idname,
const char * description )
inline

◆ remove_active_item()

template<typename Accessor >
void blender::nodes::socket_items::ops::remove_active_item ( wmOperatorType * ot,
const char * name,
const char * idname,
const char * description )
inline

◆ remove_item_by_index()

◆ update_after_node_change()

void blender::nodes::socket_items::ops::update_after_node_change ( bContext * C,
const PointerRNA node_ptr )
inline