|
Blender V4.3
|
#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_matrix.h"#include "BLI_math_vector.h"#include "BLI_rand.h"#include "BKE_context.hh"#include "BKE_curve.hh"#include "BKE_fcurve.hh"#include "BKE_layer.hh"#include "BKE_report.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_curve.hh"#include "ED_object.hh"#include "ED_screen.hh"#include "ED_select_utils.hh"#include "ED_view3d.hh"#include "curve_intern.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "DEG_depsgraph.hh"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 1489 of file editcurve_select.cc.
Definition at line 1845 of file editcurve_select.cc.
References b, 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 1861 of file editcurve_select.cc.
References BLI_assert, curve_calc_dist_pair(), Nurb::pntsu, and Nurb::pntsv.
Referenced by curve_select_shortest_path_curve().
|
static |
Definition at line 1597 of file editcurve_select.cc.
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, Nurb::type, VISIBLE, BezTriple::weight, and BPoint::weight.
Referenced by curve_select_similar_exec().
|
static |
Definition at line 1525 of file editcurve_select.cc.
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, Nurb::type, BezTriple::weight, and BPoint::weight.
Referenced by curve_select_similar_exec().
| void CURVE_OT_de_select_first | ( | wmOperatorType * | ot | ) |
Definition at line 506 of file editcurve_select.cc.
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 538 of file editcurve_select.cc.
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 607 of file editcurve_select.cc.
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 1214 of file editcurve_select.cc.
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 665 of file editcurve_select.cc.
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 736 of file editcurve_select.cc.
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 997 of file editcurve_select.cc.
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 848 of file editcurve_select.cc.
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 1458 of file editcurve_select.cc.
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 887 of file editcurve_select.cc.
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 1328 of file editcurve_select.cc.
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 809 of file editcurve_select.cc.
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 1817 of file editcurve_select.cc.
References curve_prop_similar_compare_types, curve_prop_similar_types, curve_select_similar_exec(), wmOperatorType::description, ED_operator_editsurfcurve(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, 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 2054 of file editcurve_select.cc.
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 1019 of file editcurve_select.cc.
References BLI_BITMAP_ENABLE, BLI_BITMAP_NEW, BLI_BITMAP_TEST, CU_BEZIER, 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 1200 of file editcurve_select.cc.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), curve_select_less(), DEG_id_tag_update(), ID_RECALC_SELECT, NC_GEOM, ND_SELECT, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by CURVE_OT_select_less().
|
static |
Definition at line 908 of file editcurve_select.cc.
References 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 983 of file editcurve_select.cc.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), curve_select_more(), DEG_id_tag_update(), ID_RECALC_SELECT, NC_GEOM, ND_SELECT, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by CURVE_OT_select_more().
|
static |
Definition at line 1235 of file editcurve_select.cc.
References BKE_curve_nurb_vert_active_validate(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), BLI_BITMAP_NEW, BLI_bitmap_randomize(), BLI_BITMAP_SET, BLI_BITMAP_TEST, BLI_ghashutil_strhash_p(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), CU_BEZIER, Object::data, DEG_id_tag_update(), BezTriple::hide, BPoint::hide, Object::id, ID_RECALC_SELECT, LISTBASE_FOREACH, 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, select(), select_beztriple(), select_bpoint(), VISIBLE, WM_event_add_notifier(), and WM_operator_properties_select_random_seed_increment_get().
Referenced by CURVE_OT_select_random().
Definition at line 1883 of file editcurve_select.cc.
References Nurb::bezt, Nurb::bp, CU_BEZIER, CU_NURB_CYCLIC, curve_calc_dist_span(), Nurb::flagu, HIDDEN, Nurb::pntsu, SELECT, select_beztriple(), select_bpoint(), and Nurb::type.
Referenced by edcu_shortest_path_pick_invoke().
Definition at line 1916 of file editcurve_select.cc.
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, FLT_MAX, HIDDEN, MEM_freeN(), MEM_mallocN, Nurb::pntsu, Nurb::pntsv, SELECT, select_beztriple(), select_bpoint(), Nurb::type, and v.
Referenced by edcu_shortest_path_pick_invoke().
|
static |
Definition at line 1709 of file editcurve_select.cc.
References BKE_report(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), curve_nurb_select_similar_type(), curve_nurb_selected_type_get(), 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, NC_GEOM, ND_SELECT, 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 559 of file editcurve_select.cc.
References BKE_curve_nurb_vert_active_validate(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), CURVE_HANDLE_NONE, 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, 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 490 of file editcurve_select.cc.
References BKE_curve_nurb_vert_active_validate(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), FIRST, ID_RECALC_SELECT, NC_GEOM, ND_SELECT, OPERATOR_FINISHED, selectend_nurb(), and WM_event_add_notifier().
Referenced by CURVE_OT_de_select_first().
|
static |
Definition at line 521 of file editcurve_select.cc.
References BKE_curve_nurb_vert_active_validate(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), ID_RECALC_SELECT, LAST, 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 238 of file editcurve_select.cc.
References ED_curve_nurb_deselect_all(), LISTBASE_FOREACH, and EditNurb::nurbs.
Referenced by curve_pen_invoke(), curve_pen_modal(), de_select_all_exec(), delete_point_under_mouse(), ED_curve_deselect_all_multi_ex(), ED_curve_editnurb_select_pick(), insert_bezt_to_nurb(), and insert_bp_to_nurb().
| bool ED_curve_deselect_all_multi | ( | bContext * | C | ) |
Definition at line 259 of file editcurve_select.cc.
References BKE_view_layer_array_from_bases_in_edit_mode_unique_data(), CTX_data_ensure_evaluated_depsgraph(), depsgraph, ED_curve_deselect_all_multi_ex(), ED_view3d_viewcontext_init(), ViewContext::scene, ViewContext::v3d, and ViewContext::view_layer.
Referenced by curve_draw_exec().
Definition at line 247 of file editcurve_select.cc.
References Object::data, DEG_id_tag_update(), ED_curve_deselect_all(), Curve::editnurb, Curve::id, and ID_RECALC_SELECT.
Referenced by ED_curve_deselect_all_multi().
| bool ED_curve_nurb_deselect_all | ( | const Nurb * | nu | ) |
Definition at line 191 of file editcurve_select.cc.
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 153 of file editcurve_select.cc.
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 100 of file editcurve_select.cc.
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 125 of file editcurve_select.cc.
References Nurb::bezt, BEZT_ISSEL_ANY_HIDDENHANDLES, Nurb::bp, CU_BEZIER, BPoint::f1, Nurb::pntsu, Nurb::pntsv, SELECT, and Nurb::type.
Referenced by ED_curve_select_count(), and make_segment_exec().
| bool ED_curve_select_all | ( | EditNurb * | editnurb | ) |
Definition at line 182 of file editcurve_select.cc.
References ED_curve_nurb_select_all(), LISTBASE_FOREACH, and EditNurb::nurbs.
Referenced by de_select_all_exec().
Definition at line 227 of file editcurve_select.cc.
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 216 of file editcurve_select.cc.
References ED_curve_nurb_select_count(), LISTBASE_FOREACH, and EditNurb::nurbs.
Referenced by curve_select_similar_exec().
|
static |
Definition at line 1399 of file editcurve_select.cc.
References Nurb::bezt, BKE_curve_nurb_vert_active_get(), 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 268 of file editcurve_select.cc.
References BEZT_DESEL_ALL, BEZT_ISSEL_ANY, BEZT_SEL_ALL, BLI_assert, 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 1996 of file editcurve_select.cc.
References Curve::actvert, blender::ed::object::base_activate(), BKE_curve_nurb_active_get(), BKE_curve_nurb_vert_active_set(), BKE_curve_nurb_vert_index_get(), BKE_report(), BKE_view_layer_active_base_get(), BKE_view_layer_synced_ensure(), 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_view3d_viewcontext_init(), ED_view3d_viewcontext_init_object(), ID_RECALC_SELECT, ID_RECALC_SYNC_TO_EVAL, ViewContext::mval, wmEvent::mval, NC_GEOM, ND_SELECT, OB_SURF, Base::object, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, Nurb::pntsv, wmOperator::reports, RPT_ERROR, ViewContext::scene, 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 1504 of file editcurve_select.cc.
References BKE_nurb_bezt_calc_normal(), copy_m3_m4(), mul_m3_v3(), and normalize_v3().
Referenced by curve_nurb_select_similar_type(), and curve_nurb_selected_type_get().
|
static |
Definition at line 1516 of file editcurve_select.cc.
References BKE_nurb_bpoint_calc_normal(), copy_m3_m4(), mul_m3_v3(), and normalize_v3().
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 331 of file editcurve_select.cc.
References abs(), CU_BEZIER, 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 ) |
Returns 1 in case (de)selection was successful.
Definition at line 51 of file editcurve_select.cc.
References BezTriple::f1, BezTriple::f2, BezTriple::f3, flag, HIDDEN, and BezTriple::hide.
Referenced by adduplicateflagNurb(), curve_delete_segments(), curve_nurb_select_similar_type(), curve_select_less(), curve_select_random_exec(), 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().
Returns 1 in case (de)selection was successful.
Definition at line 70 of file editcurve_select.cc.
References BPoint::f1, flag, and BPoint::hide.
Referenced by adduplicateflagNurb(), curve_delete_segments(), curve_nurb_select_similar_type(), curve_select_less(), curve_select_more(), curve_select_random_exec(), curve_select_shortest_path_curve(), curve_select_shortest_path_surf(), ED_curve_editnurb_select_pick(), hide_exec(), merge_2_nurb(), reveal_exec(), select_adjacent_cp(), select_bpoints(), select_linked_pick_invoke(), select_nth_bp(), select_row_exec(), selectend_nurb(), and swap_selection_bpoint().
|
static |
Definition at line 631 of file editcurve_select.cc.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), ED_curve_nurb_select_all(), ED_curve_nurb_select_check(), Curve::editnurb, ID_RECALC_SELECT, LISTBASE_FOREACH, NC_GEOM, ND_SELECT, EditNurb::nurbs, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by CURVE_OT_select_linked(), blender::ed::curves::CURVES_OT_select_linked(), blender::ed::greasepencil::GREASE_PENCIL_OT_select_linked(), and select_linked_invoke().
|
static |
Definition at line 660 of file editcurve_select.cc.
References select_linked_exec().
Referenced by CURVE_OT_select_linked().
|
static |
Definition at line 689 of file editcurve_select.cc.
References Nurb::bezt, BKE_curve_nurb_vert_active_validate(), Nurb::bp, 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, 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 830 of file editcurve_select.cc.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), ID_RECALC_SELECT, 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 1352 of file editcurve_select.cc.
References abs(), Nurb::bezt, HIDDEN, params, Nurb::pntsu, SELECT, select_beztriple(), and WM_operator_properties_checker_interval_test().
Referenced by ed_curve_select_nth().
|
static |
Definition at line 1370 of file editcurve_select.cc.
References abs(), Nurb::bp, 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 1418 of file editcurve_select.cc.
References BKE_report(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), CTX_data_edit_object(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), ED_curve_select_check(), ed_curve_select_nth(), Curve::editnurb, ID_RECALC_SELECT, 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 869 of file editcurve_select.cc.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), ID_RECALC_SELECT, 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 764 of file editcurve_select.cc.
References Curve::actvert, b, BKE_curve_nurb_vert_active_get(), BKE_nurbList_flag_set(), Nurb::bp, CTX_data_edit_object(), Object::data, DEG_id_tag_update(), ID_RECALC_SELECT, NC_GEOM, ND_SELECT, 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 |
(De)selects first or last of visible part of each Nurb depending on selfirst.
| selfirst | defines the end of which to select. |
| doswap | defines if selection state of each first/last control point is swapped. |
| selstatus | selection status in case doswap is false. |
Definition at line 419 of file editcurve_select.cc.
References Curve::actvert, CU_ACT_NONE, CU_BEZIER, Object::data, BPoint::hide, LAST, LISTBASE_FOREACH, 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 84 of file editcurve_select.cc.
References BezTriple::f2, SELECT, select_beztriple(), and VISIBLE.
Referenced by selectend_nurb().
|
static |
Definition at line 92 of file editcurve_select.cc.
References BPoint::f1, SELECT, select_bpoint(), and VISIBLE.
Referenced by ED_curve_select_swap(), and selectend_nurb().
|
static |
Definition at line 1481 of file editcurve_select.cc.
Referenced by CURVE_OT_select_similar().
|
static |
Definition at line 1496 of file editcurve_select.cc.
Referenced by CURVE_OT_select_similar().