|
Blender
V2.93
|
Go to the source code of this file.
Macros | |
| #define | SEL_OP_USE_OUTSIDE(sel_op) (ELEM(sel_op, SEL_OP_AND)) |
| #define | SEL_OP_USE_PRE_DESELECT(sel_op) (ELEM(sel_op, SEL_OP_SET)) |
| #define | SEL_OP_CAN_DESELECT(sel_op) (!ELEM(sel_op, SEL_OP_ADD)) |
Typedefs | |
| typedef enum WalkSelectDirection | WalkSelectDirections |
Enumerations | |
| enum | { SEL_TOGGLE = 0 , SEL_SELECT = 1 , SEL_DESELECT = 2 , SEL_INVERT = 3 } |
| enum | WalkSelectDirection { UI_SELECT_WALK_UP , UI_SELECT_WALK_DOWN , UI_SELECT_WALK_LEFT , UI_SELECT_WALK_RIGHT } |
| enum | eSelectOp { SEL_OP_ADD = 1 , SEL_OP_SUB , SEL_OP_SET , SEL_OP_AND , SEL_OP_XOR } |
| enum | { SIM_CMP_EQ = 0 , SIM_CMP_GT , SIM_CMP_LT } |
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) |
| int | ED_select_similar_compare_float (const float delta, const float thresh, const int compare) |
| bool | ED_select_similar_compare_float_tree (const struct KDTree_1d *tree, const float length, const float thresh, const int compare) |
| eSelectOp | ED_select_op_modal (const eSelectOp sel_op, const bool is_first) |
| #define SEL_OP_CAN_DESELECT | ( | sel_op | ) | (!ELEM(sel_op, SEL_OP_ADD)) |
Definition at line 61 of file ED_select_utils.h.
| #define SEL_OP_USE_OUTSIDE | ( | sel_op | ) | (ELEM(sel_op, SEL_OP_AND)) |
Definition at line 59 of file ED_select_utils.h.
| #define SEL_OP_USE_PRE_DESELECT | ( | sel_op | ) | (ELEM(sel_op, SEL_OP_SET)) |
Definition at line 60 of file ED_select_utils.h.
| typedef enum WalkSelectDirection WalkSelectDirections |
| anonymous enum |
| Enumerator | |
|---|---|
| SEL_TOGGLE | |
| SEL_SELECT | |
| SEL_DESELECT | |
| SEL_INVERT | |
Definition at line 29 of file ED_select_utils.h.
| anonymous enum |
| Enumerator | |
|---|---|
| SIM_CMP_EQ | |
| SIM_CMP_GT | |
| SIM_CMP_LT | |
Definition at line 53 of file ED_select_utils.h.
| enum eSelectOp |
See WM_operator_properties_select_operation
| Enumerator | |
|---|---|
| SEL_OP_ADD | |
| SEL_OP_SUB | |
| SEL_OP_SET | |
| SEL_OP_AND | |
| SEL_OP_XOR | |
Definition at line 44 of file ED_select_utils.h.
| enum WalkSelectDirection |
| Enumerator | |
|---|---|
| UI_SELECT_WALK_UP | |
| UI_SELECT_WALK_DOWN | |
| UI_SELECT_WALK_LEFT | |
| UI_SELECT_WALK_RIGHT | |
Definition at line 36 of file ED_select_utils.h.
| int ED_select_op_action | ( | const eSelectOp | sel_op, |
| const bool | is_select, | ||
| const bool | is_inside | ||
| ) |
1: select, 0: deselect, -1: pass.
Definition at line 30 of file select_utils.c.
References BLI_assert, is_inside(), SEL_OP_ADD, SEL_OP_AND, SEL_OP_SET, SEL_OP_SUB, and SEL_OP_XOR.
| int ED_select_op_action_deselected | ( | const eSelectOp | sel_op, |
| const bool | is_select, | ||
| const bool | is_inside | ||
| ) |
Use when we've de-selected all items first (for modes that need it).
Definition at line 53 of file select_utils.c.
References BLI_assert, 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(), gpencil_generic_curve_select(), gpencil_generic_stroke_select(), PE_lasso_select(), and select_key_op().
Utility to use for selection operations that run multiple times (circle select).
Definition at line 77 of file select_utils.c.
References SEL_OP_ADD, and SEL_OP_SET.
Referenced by action_circle_select_exec(), circle_select_exec(), gpencil_circle_select_exec(), graph_circle_select_exec(), node_circleselect_exec(), uv_circle_select_exec(), and view3d_circle_select_exec().
Definition at line 87 of file select_utils.c.
References 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().