|
Blender
V2.93
|
#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "MEM_guardedalloc.h"#include "BLI_bitmap.h"#include "BLI_heap_simple.h"#include "BLI_kdtree.h"#include "BLI_listbase.h"#include "BLI_math.h"#include "BLI_rand.h"#include "BKE_context.h"#include "BKE_curve.h"#include "BKE_fcurve.h"#include "BKE_layer.h"#include "BKE_report.h"#include "WM_api.h"#include "WM_types.h"#include "ED_curve.h"#include "ED_object.h"#include "ED_screen.h"#include "ED_select_utils.h"#include "ED_types.h"#include "ED_view3d.h"#include "curve_intern.h"#include "RNA_access.h"#include "RNA_define.h"#include "DEG_depsgraph.h"Go to the source code of this file.
Select Similar Operator | |
| enum | { SIMCURHAND_TYPE = 0 , SIMCURHAND_RADIUS , SIMCURHAND_WEIGHT , SIMCURHAND_DIRECTION } |
| static const EnumPropertyItem | curve_prop_similar_compare_types [] |
| static const EnumPropertyItem | curve_prop_similar_types [] |
| static void | nurb_bezt_direction_worldspace_get (Object *ob, Nurb *nu, BezTriple *bezt, float r_dir[3]) |
| static void | nurb_bpoint_direction_worldspace_get (Object *ob, Nurb *nu, BPoint *bp, float r_dir[3]) |
| static void | curve_nurb_selected_type_get (Object *ob, Nurb *nu, const int type, KDTree_1d *tree_1d, KDTree_3d *tree_3d) |
| static bool | curve_nurb_select_similar_type (Object *ob, Nurb *nu, const int type, const KDTree_1d *tree_1d, const KDTree_3d *tree_3d, const float thresh, const int compare) |
| static int | curve_select_similar_exec (bContext *C, wmOperator *op) |
| void | CURVE_OT_select_similar (wmOperatorType *ot) |
| anonymous enum |
| Enumerator | |
|---|---|
| SIMCURHAND_TYPE | |
| SIMCURHAND_RADIUS | |
| SIMCURHAND_WEIGHT | |
| SIMCURHAND_DIRECTION | |
Definition at line 1436 of file editcurve_select.c.
Definition at line 1790 of file editcurve_select.c.
References Freestyle::a, Nurb::bezt, Nurb::bp, CU_BEZIER, len_v3v3(), Nurb::type, BezTriple::vec, and BPoint::vec.
Referenced by curve_calc_dist_span(), and curve_select_shortest_path_surf().
Definition at line 1806 of file editcurve_select.c.
References BLI_assert, curve_calc_dist_pair(), Nurb::pntsu, and Nurb::pntsv.
Referenced by curve_select_shortest_path_curve().
|
static |
Definition at line 1544 of file editcurve_select.c.
References angle_normalized_v3v3(), Nurb::bezt, Nurb::bp, cosf, CU_BEZIER, ED_select_similar_compare_float(), ED_select_similar_compare_float_tree(), fabsf, BezTriple::hide, BPoint::hide, M_PI_2, nurb_bezt_direction_worldspace_get(), nurb_bpoint_direction_worldspace_get(), Nurb::pntsu, Nurb::pntsv, BezTriple::radius, BPoint::radius, select(), SELECT, select_beztriple(), select_bpoint(), SIMCURHAND_DIRECTION, SIMCURHAND_RADIUS, SIMCURHAND_WEIGHT, type, Nurb::type, VISIBLE, BezTriple::weight, and BPoint::weight.
Referenced by curve_select_similar_exec().
|
static |
Definition at line 1472 of file editcurve_select.c.
References Nurb::bezt, Nurb::bp, CU_BEZIER, BezTriple::f1, BPoint::f1, BezTriple::hide, BPoint::hide, nurb_bezt_direction_worldspace_get(), nurb_bpoint_direction_worldspace_get(), Nurb::pntsu, Nurb::pntsv, BezTriple::radius, BPoint::radius, SELECT, SIMCURHAND_DIRECTION, SIMCURHAND_RADIUS, SIMCURHAND_WEIGHT, type, Nurb::type, BezTriple::weight, and BPoint::weight.
Referenced by curve_select_similar_exec().
| void CURVE_OT_de_select_first | ( | wmOperatorType * | ot | ) |
Definition at line 497 of file editcurve_select.c.
References de_select_first_exec(), wmOperatorType::description, ED_operator_editcurve(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
| void CURVE_OT_de_select_last | ( | wmOperatorType * | ot | ) |
Definition at line 531 of file editcurve_select.c.
References de_select_last_exec(), wmOperatorType::description, ED_operator_editcurve(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
| void CURVE_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 597 of file editcurve_select.c.
References de_select_all_exec(), wmOperatorType::description, ED_operator_editsurfcurve(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_select_all().
Referenced by ED_operatortypes_curve().
| void CURVE_OT_select_less | ( | wmOperatorType * | ot | ) |
Definition at line 1186 of file editcurve_select.c.
References curve_select_less_exec(), wmOperatorType::description, ED_operator_editsurfcurve(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
| void CURVE_OT_select_linked | ( | wmOperatorType * | ot | ) |
Definition at line 653 of file editcurve_select.c.
References wmOperatorType::description, ED_operator_editsurfcurve(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, select_linked_exec(), and select_linked_invoke().
Referenced by ED_operatortypes_curve().
| void CURVE_OT_select_linked_pick | ( | wmOperatorType * | ot | ) |
Definition at line 721 of file editcurve_select.c.
References wmOperatorType::description, ED_operator_editsurfcurve_region_view3d(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), select_linked_pick_invoke(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve().
| void CURVE_OT_select_more | ( | wmOperatorType * | ot | ) |
Definition at line 972 of file editcurve_select.c.
References curve_select_more_exec(), wmOperatorType::description, ED_operator_editsurfcurve(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
| void CURVE_OT_select_next | ( | wmOperatorType * | ot | ) |
Definition at line 827 of file editcurve_select.c.
References wmOperatorType::description, ED_operator_editcurve(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and select_next_exec().
Referenced by ED_operatortypes_curve().
| void CURVE_OT_select_nth | ( | wmOperatorType * | ot | ) |
Definition at line 1407 of file editcurve_select.c.
References wmOperatorType::description, ED_operator_editsurfcurve(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, select_nth_exec(), and WM_operator_properties_checker_interval().
Referenced by ED_operatortypes_curve().
| void CURVE_OT_select_previous | ( | wmOperatorType * | ot | ) |
Definition at line 864 of file editcurve_select.c.
References wmOperatorType::description, ED_operator_editcurve(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and select_previous_exec().
Referenced by ED_operatortypes_curve().
| void CURVE_OT_select_random | ( | wmOperatorType * | ot | ) |
Definition at line 1274 of file editcurve_select.c.
References curve_select_random_exec(), wmOperatorType::description, ED_operator_editsurfcurve(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_select_random().
Referenced by ED_operatortypes_curve().
| void CURVE_OT_select_row | ( | wmOperatorType * | ot | ) |
Definition at line 790 of file editcurve_select.c.
References wmOperatorType::description, ED_operator_editsurf(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and select_row_exec().
Referenced by ED_operatortypes_curve().
| void CURVE_OT_select_similar | ( | wmOperatorType * | ot | ) |
Definition at line 1762 of file editcurve_select.c.
References curve_prop_similar_compare_types, curve_prop_similar_types, curve_select_similar_exec(), wmOperatorType::description, ED_operator_editsurfcurve(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), RNA_def_float(), SIM_CMP_EQ, SIMCURHAND_WEIGHT, wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_curve().
| void CURVE_OT_shortest_path_pick | ( | wmOperatorType * | ot | ) |
Definition at line 1998 of file editcurve_select.c.
References wmOperatorType::description, ED_operator_editsurfcurve_region_view3d(), edcu_shortest_path_pick_invoke(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
|
static |
Definition at line 990 of file editcurve_select.c.
References Freestyle::a, BLI_BITMAP_ENABLE, BLI_BITMAP_NEW, BLI_BITMAP_TEST, CU_BEZIER, DESELECT, BPoint::f1, BezTriple::f2, BezTriple::hide, BPoint::hide, LISTBASE_FOREACH, MEM_freeN, OB_SURF, object_editcurve_get(), SELECT, select_beztriple(), select_bpoint(), Object::type, and VISIBLE.
Referenced by curve_select_less_exec().
|
static |
Definition at line 1170 of file editcurve_select.c.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data, C, CTX_data_view_layer(), CTX_wm_view3d(), curve_select_less(), Object::data, DEG_id_tag_update(), ID_RECALC_SELECT, MEM_freeN, NC_GEOM, ND_SELECT, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by CURVE_OT_select_less().
|
static |
Definition at line 881 of file editcurve_select.c.
References Freestyle::a, BLI_BITMAP_ENABLE, BLI_BITMAP_NEW, BLI_BITMAP_TEST, BPoint::f1, BPoint::hide, LISTBASE_FOREACH, MEM_freeN, OB_SURF, object_editcurve_get(), SELECT, select_adjacent_cp(), select_bpoint(), Object::type, and VISIBLE.
Referenced by curve_select_more_exec().
|
static |
Definition at line 956 of file editcurve_select.c.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data, C, CTX_data_view_layer(), CTX_wm_view3d(), curve_select_more(), Object::data, DEG_id_tag_update(), ID_RECALC_SELECT, MEM_freeN, NC_GEOM, ND_SELECT, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by CURVE_OT_select_more().
|
static |
Definition at line 1203 of file editcurve_select.c.
References Freestyle::a, BLI_rng_free(), BLI_rng_get_float(), BLI_rng_new_srandom(), CU_BEZIER, BezTriple::hide, BPoint::hide, LISTBASE_FOREACH, seed, select(), SELECT, select_beztriple(), select_bpoint(), and VISIBLE.
Referenced by curve_select_random_exec().
|
static |
Definition at line 1242 of file editcurve_select.c.
References BKE_curve_nurb_vert_active_validate(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BLI_ghashutil_strhash_p(), C, CTX_data_view_layer(), CTX_wm_view3d(), curve_select_random(), Object::data, DEG_id_tag_update(), Object::id, ID_RECALC_SELECT, MEM_freeN, ID::name, NC_GEOM, ND_SELECT, object_editcurve_get(), OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), seed, SEL_SELECT, select(), WM_event_add_notifier(), and WM_operator_properties_select_random_seed_increment_get().
Referenced by CURVE_OT_select_random().
|
static |
Definition at line 1828 of file editcurve_select.c.
References Nurb::bezt, Nurb::bp, CU_BEZIER, CU_NURB_CYCLIC, curve_calc_dist_span(), Nurb::flagu, HIDDEN, Nurb::pntsu, SELECT, select_beztriple(), select_bpoint(), SWAP, and Nurb::type.
Referenced by edcu_shortest_path_pick_invoke().
|
static |
Definition at line 1860 of file editcurve_select.c.
References Nurb::bezt, BKE_nurb_index_from_uv(), BKE_nurb_index_to_uv(), BLI_heapsimple_free(), BLI_heapsimple_insert(), BLI_heapsimple_is_empty(), BLI_heapsimple_new(), BLI_heapsimple_pop_min(), Nurb::bp, CU_BEZIER, curve_calc_dist_pair(), data, HIDDEN, MEM_freeN, MEM_mallocN, NULL, Nurb::pntsu, Nurb::pntsv, SELECT, select_beztriple(), select_bpoint(), KDL::sign(), Nurb::type, and v.
Referenced by edcu_shortest_path_pick_invoke().
|
static |
Definition at line 1648 of file editcurve_select.c.
References BKE_report(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, C, CTX_data_view_layer(), CTX_wm_view3d(), curve_nurb_select_similar_type(), curve_nurb_selected_type_get(), Object::data, DEG_id_tag_update(), ED_curve_nurb_select_all(), ED_curve_nurb_select_check(), ED_curve_select_count(), Curve::editnurb, ID_RECALC_SELECT, LISTBASE_FOREACH, MEM_freeN, NC_GEOM, ND_SELECT, NULL, EditNurb::nurbs, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_float_get(), RPT_ERROR, SIMCURHAND_DIRECTION, SIMCURHAND_RADIUS, SIMCURHAND_TYPE, SIMCURHAND_WEIGHT, and WM_event_add_notifier().
Referenced by CURVE_OT_select_similar().
|
static |
Definition at line 546 of file editcurve_select.c.
References BKE_curve_nurb_vert_active_validate(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, C, CTX_data_view_layer(), CTX_wm_view3d(), CURVE_HANDLE_NONE, Object::data, DEG_id_tag_update(), ED_curve_deselect_all(), ED_curve_select_all(), ED_curve_select_check(), ED_curve_select_swap(), Curve::editnurb, View3DOverlay::handle_display, ID_RECALC_SELECT, MEM_freeN, NC_GEOM, ND_SELECT, OPERATOR_FINISHED, View3D::overlay, wmOperator::ptr, RNA_enum_get(), SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, and WM_event_add_notifier().
Referenced by CURVE_OT_select_all().
|
static |
Definition at line 479 of file editcurve_select.c.
References BKE_curve_nurb_vert_active_validate(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, DEG_id_tag_update(), DESELECT, FIRST, ID_RECALC_SELECT, MEM_freeN, NC_GEOM, ND_SELECT, OPERATOR_FINISHED, selectend_nurb(), and WM_event_add_notifier().
Referenced by CURVE_OT_de_select_first().
|
static |
Definition at line 512 of file editcurve_select.c.
References BKE_curve_nurb_vert_active_validate(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, DEG_id_tag_update(), DESELECT, ID_RECALC_SELECT, LAST, MEM_freeN, NC_GEOM, ND_SELECT, OPERATOR_FINISHED, selectend_nurb(), and WM_event_add_notifier().
Referenced by CURVE_OT_de_select_last().
| bool ED_curve_deselect_all | ( | EditNurb * | editnurb | ) |
Definition at line 249 of file editcurve_select.c.
References ED_curve_nurb_deselect_all(), LISTBASE_FOREACH, and EditNurb::nurbs.
Referenced by de_select_all_exec(), ED_curve_deselect_all_multi_ex(), and ED_curve_editnurb_select_pick().
| bool ED_curve_deselect_all_multi | ( | struct bContext * | C | ) |
Definition at line 270 of file editcurve_select.c.
References BKE_view_layer_array_from_bases_in_edit_mode_unique_data, C, CTX_data_ensure_evaluated_depsgraph(), depsgraph, ED_curve_deselect_all_multi_ex(), ED_view3d_viewcontext_init(), MEM_freeN, ViewContext::v3d, and ViewContext::view_layer.
Referenced by curve_draw_exec(), and view3d_select_exec().
| bool ED_curve_deselect_all_multi_ex | ( | Base ** | bases, |
| int | bases_len | ||
| ) |
Definition at line 258 of file editcurve_select.c.
References Object::data, DEG_id_tag_update(), ED_curve_deselect_all(), Curve::editnurb, Curve::id, ID_RECALC_SELECT, and Base::object.
Referenced by ED_curve_deselect_all_multi().
| bool ED_curve_nurb_deselect_all | ( | const Nurb * | nu | ) |
Definition at line 201 of file editcurve_select.c.
References Nurb::bezt, BEZT_DESEL_ALL, BEZT_ISSEL_ANY, Nurb::bp, BPoint::f1, Nurb::pntsu, Nurb::pntsv, and SELECT.
Referenced by ED_curve_deselect_all().
| bool ED_curve_nurb_select_all | ( | const Nurb * | nu | ) |
Definition at line 163 of file editcurve_select.c.
References Nurb::bezt, BEZT_ISSEL_ALL, BEZT_SEL_ALL, Nurb::bp, BPoint::f1, BezTriple::hide, BPoint::hide, Nurb::pntsu, Nurb::pntsv, and SELECT.
Referenced by curve_select_similar_exec(), ED_curve_select_all(), and select_linked_exec().
Definition at line 110 of file editcurve_select.c.
References Nurb::bezt, BEZT_ISSEL_ANY_HIDDENHANDLES, Nurb::bp, CU_BEZIER, BPoint::f1, Nurb::pntsu, Nurb::pntsv, SELECT, and Nurb::type.
Referenced by adduplicateflagNurb(), curve_select_similar_exec(), ED_curve_select_check(), ed_editnurb_spin(), make_selection_list_nurb(), material_slot_assign_exec(), select_linked_exec(), set_spline_type_exec(), shade_smooth_exec(), and switch_direction_exec().
Definition at line 135 of file editcurve_select.c.
References Nurb::bezt, BEZT_ISSEL_ANY_HIDDENHANDLES, Nurb::bp, CU_BEZIER, BPoint::f1, Nurb::pntsu, Nurb::pntsv, SELECT, and Nurb::type.
Referenced by curve_extrude_exec(), ED_curve_select_count(), and make_segment_exec().
| bool ED_curve_select_all | ( | EditNurb * | editnurb | ) |
Definition at line 192 of file editcurve_select.c.
References ED_curve_nurb_select_all(), LISTBASE_FOREACH, and EditNurb::nurbs.
Referenced by de_select_all_exec().
Definition at line 238 of file editcurve_select.c.
References ED_curve_nurb_select_check(), LISTBASE_FOREACH, and EditNurb::nurbs.
Referenced by clear_tilt_exec(), curve_delete_exec(), curve_dissolve_exec(), curve_extrude_exec(), curve_normals_make_consistent_exec(), curve_split_exec(), de_select_all_exec(), duplicate_exec(), hide_exec(), make_segment_exec(), select_nth_exec(), separate_exec(), set_handle_type_exec(), spin_exec(), subdivide_exec(), switch_direction_exec(), and toggle_cyclic_exec().
Definition at line 226 of file editcurve_select.c.
References ED_curve_nurb_select_count(), ListBase::first, Nurb::next, and EditNurb::nurbs.
Referenced by curve_select_similar_exec().
|
static |
Definition at line 1341 of file editcurve_select.c.
References Nurb::bezt, BKE_curve_nurb_vert_active_get(), NULL, params, select_nth_bezt(), and select_nth_bp().
Referenced by select_nth_exec().
| bool ED_curve_select_swap | ( | EditNurb * | editnurb, |
| bool | hide_handles | ||
| ) |
Definition at line 283 of file editcurve_select.c.
References Freestyle::a, CU_BEZIER, BezTriple::f1, BezTriple::f2, BezTriple::f3, BezTriple::hide, BPoint::hide, LISTBASE_FOREACH, EditNurb::nurbs, SELECT, and swap_selection_bpoint().
Referenced by de_select_all_exec().
|
static |
Definition at line 1940 of file editcurve_select.c.
References Curve::actvert, ViewLayer::basact, BKE_curve_nurb_active_get(), BKE_curve_nurb_vert_active_set(), BKE_curve_nurb_vert_index_get(), BKE_report(), C, copy_v2_v2_int(), CTX_data_ensure_evaluated_depsgraph(), CU_ACT_NONE, curve_select_shortest_path_curve(), curve_select_shortest_path_surf(), Object::data, DEG_id_tag_update(), depsgraph, ED_curve_pick_vert(), ED_object_base_activate(), ED_view3d_viewcontext_init(), ED_view3d_viewcontext_init_object(), ID_RECALC_COPY_ON_WRITE, ID_RECALC_SELECT, ViewContext::mval, wmEvent::mval, NC_GEOM, ND_SELECT, NULL, OB_SURF, Base::object, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, Nurb::pntsv, wmOperator::reports, RPT_ERROR, Object::type, view3d_operator_needs_opengl(), ViewContext::view_layer, and WM_event_add_notifier().
Referenced by CURVE_OT_shortest_path_pick().
|
static |
Definition at line 1451 of file editcurve_select.c.
References BKE_nurb_bezt_calc_normal(), copy_m3_m4(), mul_m3_v3(), normalize_v3(), and Object::obmat.
Referenced by curve_nurb_select_similar_type(), and curve_nurb_selected_type_get().
|
static |
Definition at line 1463 of file editcurve_select.c.
References BKE_nurb_bpoint_calc_normal(), copy_m3_m4(), mul_m3_v3(), normalize_v3(), and Object::obmat.
Referenced by curve_nurb_select_similar_type(), and curve_nurb_selected_type_get().
|
static |
| next | -1/1 for prev/next |
| cont | when true select continuously |
| selstatus | inverts behavior |
Definition at line 326 of file editcurve_select.c.
References Freestyle::a, abs(), CU_BEZIER, DESELECT, BPoint::f1, BezTriple::f2, BezTriple::hide, BPoint::hide, LISTBASE_FOREACH, next, SELECT, select_beztriple(), select_bpoint(), and VISIBLE.
Referenced by curve_select_more(), select_next_exec(), and select_previous_exec().
| bool select_beztriple | ( | BezTriple * | bezt, |
| bool | selstatus, | ||
| uint8_t | flag, | ||
| eVisible_Types | hidden | ||
| ) |
Definition at line 60 of file editcurve_select.c.
References BezTriple::f1, BezTriple::f2, BezTriple::f3, HIDDEN, BezTriple::hide, and SELECT.
Referenced by adduplicateflagNurb(), curve_delete_segments(), curve_nurb_select_similar_type(), curve_select_less(), curve_select_random(), curve_select_shortest_path_curve(), curve_select_shortest_path_surf(), ED_curve_editnurb_select_pick(), hide_exec(), reveal_exec(), select_adjacent_cp(), select_linked_pick_invoke(), select_nth_bezt(), selectend_nurb(), and swap_selection_beztriple().
Definition at line 80 of file editcurve_select.c.
References BPoint::f1, BPoint::hide, and SELECT.
Referenced by adduplicateflagNurb(), curve_delete_segments(), curve_nurb_select_similar_type(), curve_select_less(), curve_select_more(), curve_select_random(), curve_select_shortest_path_curve(), curve_select_shortest_path_surf(), ED_curve_editnurb_select_pick(), ed_editnurb_extrude_flag(), hide_exec(), merge_2_nurb(), reveal_exec(), select_adjacent_cp(), select_linked_pick_invoke(), select_nth_bp(), select_row_exec(), selectend_nurb(), and swap_selection_bpoint().
|
static |
Definition at line 617 of file editcurve_select.c.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, DEG_id_tag_update(), ED_curve_nurb_select_all(), ED_curve_nurb_select_check(), Curve::editnurb, ID_RECALC_SELECT, LISTBASE_FOREACH, MEM_freeN, NC_GEOM, ND_SELECT, EditNurb::nurbs, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by CURVE_OT_select_linked(), and select_linked_invoke().
|
static |
Definition at line 648 of file editcurve_select.c.
References C, and select_linked_exec().
Referenced by CURVE_OT_select_linked().
|
static |
Definition at line 673 of file editcurve_select.c.
References Freestyle::a, Nurb::bezt, BKE_curve_nurb_vert_active_validate(), Nurb::bp, C, copy_v2_v2_int(), CTX_data_ensure_evaluated_depsgraph(), Object::data, DEG_id_tag_update(), depsgraph, ED_curve_pick_vert(), ED_view3d_viewcontext_init(), ID_RECALC_SELECT, ViewContext::mval, wmEvent::mval, NC_GEOM, ND_SELECT, NULL, Base::object, OPERATOR_CANCELLED, OPERATOR_FINISHED, Nurb::pntsu, Nurb::pntsv, wmOperator::ptr, RNA_boolean_get(), select(), SELECT, select_beztriple(), select_bpoint(), view3d_operator_needs_opengl(), VISIBLE, and WM_event_add_notifier().
Referenced by CURVE_OT_select_linked_pick().
|
static |
Definition at line 807 of file editcurve_select.c.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, DEG_id_tag_update(), ID_RECALC_SELECT, MEM_freeN, NC_GEOM, ND_SELECT, object_editcurve_get(), OPERATOR_FINISHED, SELECT, select_adjacent_cp(), and WM_event_add_notifier().
Referenced by CURVE_OT_select_next().
|
static |
Definition at line 1294 of file editcurve_select.c.
References Freestyle::a, abs(), Nurb::bezt, DESELECT, HIDDEN, params, Nurb::pntsu, SELECT, select_beztriple(), and WM_operator_properties_checker_interval_test().
Referenced by ed_curve_select_nth().
|
static |
Definition at line 1312 of file editcurve_select.c.
References Freestyle::a, abs(), Nurb::bp, DESELECT, HIDDEN, params, Nurb::pntsu, Nurb::pntsv, SELECT, select_bpoint(), and WM_operator_properties_checker_interval_test().
Referenced by ed_curve_select_nth().
|
static |
Definition at line 1360 of file editcurve_select.c.
References BKE_report(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, C, CTX_data_edit_object(), CTX_data_view_layer(), CTX_wm_view3d(), Object::data, DEG_id_tag_update(), ED_curve_select_check(), ed_curve_select_nth(), Curve::editnurb, ID_RECALC_SELECT, MEM_freeN, NC_GEOM, ND_SELECT, OB_SURF, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, Object::type, WM_event_add_notifier(), and WM_operator_properties_checker_interval_from_op().
Referenced by CURVE_OT_select_nth().
|
static |
Definition at line 844 of file editcurve_select.c.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, DEG_id_tag_update(), ID_RECALC_SELECT, MEM_freeN, NC_GEOM, ND_SELECT, object_editcurve_get(), OPERATOR_FINISHED, SELECT, select_adjacent_cp(), and WM_event_add_notifier().
Referenced by CURVE_OT_select_previous().
|
static |
Definition at line 745 of file editcurve_select.c.
References Freestyle::a, Curve::actvert, BKE_curve_nurb_vert_active_get(), BKE_nurbList_flag_set(), Nurb::bp, C, CTX_data_edit_object(), Object::data, DEG_id_tag_update(), ID_RECALC_SELECT, NC_GEOM, ND_SELECT, NULL, object_editcurve_get(), OPERATOR_CANCELLED, OPERATOR_FINISHED, Nurb::pntsu, Nurb::pntsv, SELECT, select_bpoint(), v, VISIBLE, and WM_event_add_notifier().
Referenced by CURVE_OT_select_row().
|
static |
Definition at line 408 of file editcurve_select.c.
References Freestyle::a, Curve::actvert, CU_ACT_NONE, CU_BEZIER, Object::data, BPoint::hide, LAST, LISTBASE_FOREACH, NULL, object_editcurve_get(), SELECT, select_beztriple(), select_bpoint(), swap_selection_beztriple(), swap_selection_bpoint(), and VISIBLE.
Referenced by de_select_first_exec(), and de_select_last_exec().
|
static |
Definition at line 94 of file editcurve_select.c.
References DESELECT, BezTriple::f2, SELECT, select_beztriple(), and VISIBLE.
Referenced by selectend_nurb().
|
static |
Definition at line 102 of file editcurve_select.c.
References DESELECT, BPoint::f1, SELECT, select_bpoint(), and VISIBLE.
Referenced by ED_curve_select_swap(), and selectend_nurb().
|
static |
Definition at line 1428 of file editcurve_select.c.
Referenced by CURVE_OT_select_similar().
|
static |
Definition at line 1443 of file editcurve_select.c.
Referenced by CURVE_OT_select_similar().