|
Blender V4.3
|
#include <cfloat>#include <cmath>#include <cstring>#include "BLI_kdtree.h"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "DNA_windowmanager_types.h"#include "RNA_access.hh"#include "WM_types.hh"#include "ED_select_utils.hh"Go to the source code of this file.
Functions | |
| int | ED_select_op_action (const eSelectOp sel_op, const bool is_select, const bool is_inside) |
| int | ED_select_op_action_deselected (const eSelectOp sel_op, const bool is_select, const bool is_inside) |
| eSelectOp | ED_select_op_modal (const eSelectOp sel_op, const bool is_first) |
| bool | ED_select_similar_compare_float (const float delta, const float thresh, const eSimilarCmp compare) |
| bool | ED_select_similar_compare_float_tree (const KDTree_1d *tree, const float length, const float thresh, const eSimilarCmp compare) |
| eSelectOp | ED_select_op_from_operator (PointerRNA *ptr) |
| void | ED_select_pick_params_from_operator (PointerRNA *ptr, SelectPick_Params *params) |
Operator Naming Callbacks | |
| std::string | ED_select_pick_get_name (wmOperatorType *, PointerRNA *ptr) |
| std::string | ED_select_circle_get_name (wmOperatorType *, PointerRNA *ptr) |
| std::string ED_select_circle_get_name | ( | wmOperatorType * | ot, |
| PointerRNA * | ptr ) |
Definition at line 183 of file select_utils.cc.
References ATTR_FALLTHROUGH, BLI_assert_unreachable, BLT_I18NCONTEXT_OPERATOR_DEFAULT, CTX_IFACE_, ptr, RNA_enum_get(), SEL_OP_ADD, SEL_OP_AND, SEL_OP_SET, SEL_OP_SUB, and SEL_OP_XOR.
Referenced by ACTION_OT_select_circle(), CLIP_OT_select_circle(), GRAPH_OT_select_circle(), MASK_OT_select_circle(), blender::ed::space_node::NODE_OT_select_circle(), UV_OT_select_circle(), and VIEW3D_OT_select_circle().
Use when we've de-selected all first for 'SEL_OP_SET'. 1: select, 0: deselect, -1: pass.
Definition at line 26 of file select_utils.cc.
References BLI_assert_msg, is_inside(), SEL_OP_ADD, SEL_OP_AND, SEL_OP_SET, SEL_OP_SUB, and SEL_OP_XOR.
Use when we've de-selected all items first (for modes that need it).
Definition at line 43 of file select_utils.cc.
References BLI_assert_msg, is_inside(), SEL_OP_ADD, SEL_OP_AND, SEL_OP_SET, SEL_OP_SUB, and SEL_OP_XOR.
Referenced by armature_edit_select_op_apply(), do_lasso_select_curve__doSelect(), do_lasso_select_lattice__doSelect(), do_lasso_select_mball__doSelectElem(), do_lasso_select_mesh__doSelectEdge_pass0(), do_lasso_select_mesh__doSelectEdge_pass1(), do_lasso_select_mesh__doSelectFace(), do_lasso_select_mesh__doSelectVert(), do_lasso_select_meshobject__doSelectVert(), do_lasso_select_objects(), do_lattice_box_select__doSelect(), do_mesh_box_select__doSelectEdge_pass0(), do_mesh_box_select__doSelectEdge_pass1(), do_mesh_box_select__doSelectFace(), do_mesh_box_select__doSelectVert(), do_meta_box_select(), do_nurbs_box_select__doSelect(), do_object_box_select(), do_paintvert_box_select__doSelectVert(), do_pose_tag_select_op_exec(), edbm_backbuf_check_and_select_edges(), edbm_backbuf_check_and_select_faces(), edbm_backbuf_check_and_select_faces_obmode(), edbm_backbuf_check_and_select_verts(), edbm_backbuf_check_and_select_verts_obmode(), PE_lasso_select(), and select_key_op().
| eSelectOp ED_select_op_from_operator | ( | PointerRNA * | ptr | ) |
Utility to get #eSelectPickMode from booleans for convenience.
Definition at line 133 of file select_utils.cc.
References ptr, RNA_boolean_get(), SEL_OP_ADD, SEL_OP_SET, SEL_OP_SUB, and SEL_OP_XOR.
Referenced by bone_select_menu_exec(), and ED_select_pick_params_from_operator().
Utility to use for selection operations that run multiple times (circle select).
Definition at line 64 of file select_utils.cc.
References SEL_OP_ADD, and SEL_OP_SET.
Referenced by action_circle_select_exec(), circle_select_exec(), circle_select_exec(), graph_circle_select_exec(), blender::ed::space_node::node_circleselect_exec(), uv_circle_select_exec(), and view3d_circle_select_exec().
| std::string ED_select_pick_get_name | ( | wmOperatorType * | ot, |
| PointerRNA * | ptr ) |
Get-name callback for wmOperatorType.get_name, this is mainly useful so the selection action is shown in the status-bar.
Definition at line 163 of file select_utils.cc.
References ATTR_FALLTHROUGH, BLI_assert_unreachable, BLT_I18NCONTEXT_OPERATOR_DEFAULT, CTX_IFACE_, ED_select_pick_params_from_operator(), params, ptr, SEL_OP_ADD, SEL_OP_AND, SEL_OP_SET, SEL_OP_SUB, and SEL_OP_XOR.
Referenced by MASK_OT_select(), blender::ed::space_node::NODE_OT_select(), SEQUENCER_OT_select(), UV_OT_select(), and VIEW3D_OT_select().
| void ED_select_pick_params_from_operator | ( | PointerRNA * | ptr, |
| SelectPick_Params * | params ) |
Definition at line 151 of file select_utils.cc.
References ED_select_op_from_operator(), params, ptr, and RNA_boolean_get().
Referenced by ED_select_pick_get_name().
| bool ED_select_similar_compare_float | ( | const float | delta, |
| const float | thresh, | ||
| const eSimilarCmp | compare ) |
Definition at line 74 of file select_utils.cc.
References BLI_assert, BLI_assert_unreachable, fabsf, SIM_CMP_EQ, SIM_CMP_GT, and SIM_CMP_LT.
Referenced by curve_nurb_select_similar_type(), ED_select_similar_compare_float_tree(), and mball_select_similar_type().
| bool ED_select_similar_compare_float_tree | ( | const KDTree_1d * | tree, |
| const float | length, | ||
| const float | thresh, | ||
| const eSimilarCmp | compare ) |
Definition at line 92 of file select_utils.cc.
References BLI_assert, BLI_assert_unreachable, ED_select_similar_compare_float(), FLT_MAX, length(), SIM_CMP_EQ, SIM_CMP_GT, SIM_CMP_LT, and tree.
Referenced by curve_nurb_select_similar_type(), mball_select_similar_type(), similar_edge_select_exec(), similar_face_select_exec(), similar_vert_select_exec(), uv_select_similar_edge_exec(), uv_select_similar_face_exec(), uv_select_similar_island_exec(), and uv_select_similar_vert_exec().