Blender
V3.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.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 1490 of file editcurve_select.c.
Definition at line 1844 of file editcurve_select.c.
References Freestyle::a, usdtokens::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 1860 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 1598 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 1526 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 489 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 523 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 595 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 1212 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 655 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 727 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 994 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 841 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 1459 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 882 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 1327 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 800 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 1816 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 2052 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().
Definition at line 1016 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 1196 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().
Definition at line 903 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 978 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 1233 of file editcurve_select.c.
References Freestyle::a, 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(), C, 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 1882 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().
Definition at line 1914 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 1702 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 544 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 471 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 504 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().
Definition at line 235 of file editcurve_select.c.
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().
Definition at line 256 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().
Definition at line 244 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().
Definition at line 187 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().
Definition at line 149 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 96 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 121 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().
Definition at line 178 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 224 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 212 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 1398 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().
Definition at line 269 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 1994 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 1505 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 1517 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 312 of file editcurve_select.c.
References Freestyle::a, blender::math::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 | ||
) |
Returns 1 in case (de)selection was successful.
Definition at line 47 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_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 66 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_exec(), 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 619 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 650 of file editcurve_select.c.
References C, and select_linked_exec().
Referenced by CURVE_OT_select_linked().
|
static |
Definition at line 679 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 821 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 1351 of file editcurve_select.c.
References Freestyle::a, blender::math::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 1369 of file editcurve_select.c.
References Freestyle::a, blender::math::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 1417 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 862 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 755 of file editcurve_select.c.
References Freestyle::a, Curve::actvert, usdtokens::b(), 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 |
(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 400 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().
Definition at line 80 of file editcurve_select.c.
References DESELECT, BezTriple::f2, SELECT, select_beztriple(), and VISIBLE.
Referenced by selectend_nurb().
Definition at line 88 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 1482 of file editcurve_select.c.
Referenced by CURVE_OT_select_similar().
|
static |
Definition at line 1497 of file editcurve_select.c.
Referenced by CURVE_OT_select_similar().