|
Blender V4.3
|
Go to the source code of this file.
Definition at line 220 of file editcurve_query.cc.
References BKE_curve_nurb_vert_active_get(), copy_v3_v3(), CU_BEZIER, Nurb::type, BezTriple::vec, and BPoint::vec.
Referenced by blender::ed::object::calc_active_center_for_editmode().
| Nurb * ED_curve_add_nurbs_primitive | ( | bContext * | C, |
| Object * | obedit, | ||
| float | mat[4][4], | ||
| int | type, | ||
| int | newob ) |
Definition at line 103 of file editcurve_add.cc.
References Curve::actnu, Curve::actvert, b, Nurb::bezt, BKE_nurb_handles_calc(), BKE_nurb_knot_calc_u(), BKE_nurb_knot_calc_v(), BKE_nurb_project_2d(), BKE_nurbList_flag_set(), BLI_addtail(), BLI_assert, BLI_assert_msg, BLI_listbase_count(), BLI_remlink(), Nurb::bp, copy_m4_m4(), copy_v3_v3(), CU_ACT_NONE, CU_BEZIER, CU_IS_2D, CU_NURB_BEZIER, CU_NURB_CYCLIC, CU_NURB_ENDPOINT, CU_NURBS, CU_PRIM_CIRCLE, CU_PRIM_CURVE, CU_PRIM_DONUT, CU_PRIM_PATCH, CU_PRIM_PATH, CU_PRIM_SPHERE, CU_PRIM_TUBE, CU_PRIMITIVE, CU_SMOOTH, CU_TYPE, Object::data, ED_curve_add_nurbs_primitive(), ed_editnurb_extrude_flag(), ed_editnurb_spin(), ed_editnurb_translate_flag(), ED_view3d_context_rv3d(), Curve::editnurb, ELEM, BezTriple::f1, BPoint::f1, BezTriple::f2, BezTriple::f3, Nurb::flag, Nurb::flagu, Nurb::flagv, float, BezTriple::h1, BezTriple::h2, HD_ALIGN, HD_AUTO, Nurb::knotsu, M_SQRT2, MEM_callocN, mul_m4_v3(), mul_mat3_m4_v3(), mul_v3_fl(), nurbcircle, object_editcurve_get(), Nurb::orderu, Nurb::orderv, Nurb::pntsu, Nurb::pntsv, BezTriple::radius, BPoint::radius, Curve::resolu, Nurb::resolu, Curve::resolv, Nurb::resolv, SELECT, Nurb::type, unit_m4(), USER_ADD_VIEWALIGNED, BezTriple::vec, BPoint::vec, RegionView3D::viewinv, RegionView3D::viewmat, BezTriple::weight, and BPoint::weight.
Referenced by curvesurf_prim_add(), ED_curve_add_nurbs_primitive(), and blender::ed::object::effector_add_exec().
Definition at line 7128 of file editcurve.cc.
References count, and keyIndex_updateBezt().
Referenced by curve_delete_segments(), ed_editcurve_extrude(), extrude_vertices_from_selected_endpoints(), insert_bezt_to_nurb(), and make_segment_exec().
Definition at line 7134 of file editcurve.cc.
References count, and keyIndex_updateBP().
Referenced by curve_delete_segments(), ed_editcurve_extrude(), ed_editnurb_extrude_flag(), extrude_vertices_from_selected_endpoints(), insert_bp_to_nurb(), and make_segment_exec().
| 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().
| bool ED_curve_deselect_all_multi_ex | ( | blender::Span< Base * > | bases | ) |
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().
| void ED_curve_editfont_free | ( | Object * | obedit | ) |
Definition at line 2262 of file editfont.cc.
References BKE_curve_editfont_free(), and Object::data.
Referenced by blender::ed::object::editmode_load_free_ex().
| void ED_curve_editfont_load | ( | Object * | obedit | ) |
Definition at line 2231 of file editfont.cc.
References BLI_str_utf32_as_utf8(), BLI_str_utf32_as_utf8_len(), Object::data, Curve::editfont, Curve::len, EditFont::len, Curve::len_char32, MEM_callocN, MEM_freeN(), MEM_mallocN, Curve::pos, EditFont::pos, Curve::selend, EditFont::selend, Curve::selstart, EditFont::selstart, Curve::str, Curve::strinfo, EditFont::textbuf, and EditFont::textbufinfo.
Referenced by blender::ed::object::editmode_load_free_ex().
| void ED_curve_editfont_make | ( | Object * | obedit | ) |
Definition at line 2190 of file editfont.cc.
References BKE_vfont_select_clamp(), BLI_assert, BLI_str_utf8_as_utf32(), Curve::curinfo, Object::data, Curve::editfont, EditFont::len, Curve::len_char32, MAXTEXT, MEM_callocN, Curve::pos, EditFont::pos, Curve::selend, EditFont::selend, Curve::selstart, EditFont::selstart, Curve::str, Curve::strinfo, EditFont::textbuf, and EditFont::textbufinfo.
Referenced by blender::ed::object::editmode_enter_ex().
| bool ED_curve_editfont_select_pick | ( | bContext * | C, |
| const int | mval[2], | ||
| const SelectPick_Params * | params ) |
Text box selection.
Definition at line 2526 of file editfont.cc.
References Curve::actbox, BKE_curve_rect_from_textbox(), copy_v3_fl3(), CTX_data_edit_object(), CTX_data_ensure_evaluated_depsgraph(), Object::data, DEG_id_tag_update(), depsgraph, dist_squared_to_line_segment_v2(), ED_view3d_init_mats_rv3d(), ED_view3d_project_float_object(), ED_view3d_select_dist_px(), ED_view3d_viewcontext_init(), float, ID_RECALC_SYNC_TO_EVAL, max_ii(), NC_GEOM, ND_DATA, ViewContext::obedit, params, ViewContext::region, ViewContext::rv3d, Curve::tb, Curve::totbox, V3D_PROJ_RET_OK, V3D_PROJ_TEST_CLIP_BB, WM_event_add_notifier(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by view3d_select_exec().
| void ED_curve_editnurb_free | ( | Object * | obedit | ) |
Definition at line 1374 of file editcurve.cc.
References BKE_curve_editNurb_free(), and Object::data.
Referenced by blender::ed::object::editmode_load_free_ex(), and separate_exec().
Load editNurb in object.
Definition at line 1293 of file editcurve.cc.
References BKE_nurb_duplicate(), BKE_nurb_order_clamp_u(), BKE_nurbList_free(), BLI_addtail(), calc_shapeKeys(), CU_NURBS, Object::data, ED_curve_updateAnimPaths(), ELEM, LISTBASE_FOREACH, Curve::nurb, OB_CURVES_LEGACY, OB_SURF, object_editcurve_get(), remap_hooks_and_vertex_parents(), Nurb::type, and Object::type.
Referenced by blender::ed::object::editmode_load_free_ex(), blender::ed::object::object_hook_index_array(), and separate_exec().
| void ED_curve_editnurb_make | ( | Object * | obedit | ) |
Make copy in cu->editnurb.
Definition at line 1330 of file editcurve.cc.
References BKE_curve_editNurb_keyIndex_free(), BKE_keyblock_convert_to_curve(), BKE_keyblock_from_object(), BKE_nurb_duplicate(), BKE_nurbList_free(), BLI_addtail(), Object::data, Curve::editnurb, ELEM, init_editNurb_keyIndex(), EditNurb::keyindex, LISTBASE_FOREACH, MEM_callocN, Curve::nurb, EditNurb::nurbs, OB_CURVES_LEGACY, OB_SURF, EditNurb::shapenr, Object::shapenr, and Object::type.
Referenced by blender::ed::object::editmode_enter_ex(), blender::ed::object::object_hook_index_array(), and separate_exec().
| bool ED_curve_editnurb_select_pick | ( | bContext * | C, |
| const int | mval[2], | ||
| int | dist_px, | ||
| const SelectPick_Params * | params ) |
| dist_px | Maximum distance to pick (in pixels). |
Definition at line 4832 of file editcurve.cc.
References Object::actcol, Curve::actvert, blender::ed::object::base_activate(), BKE_curve_nurb_active_get(), BKE_curve_nurb_active_set(), BKE_curve_nurb_vert_active_set(), BKE_curve_vert_active_get(), BKE_nurbList_flag_set(), BKE_view_layer_active_base_get(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), BKE_view_layer_synced_ensure(), BLI_assert_unreachable, copy_v2_v2_int(), CTX_data_ensure_evaluated_depsgraph(), CU_ACT_NONE, CURVE_HANDLE_NONE, Object::data, DEG_id_tag_update(), depsgraph, ED_curve_deselect_all(), ED_curve_pick_vert_ex(), ED_view3d_viewcontext_init(), BezTriple::f1, BPoint::f1, BezTriple::f2, BezTriple::f3, View3DOverlay::handle_display, HIDDEN, ID_RECALC_SELECT, ID_RECALC_SYNC_TO_EVAL, Nurb::mat_nr, ViewContext::mval, NC_GEOM, NC_MATERIAL, ND_SELECT, ND_SHADING_LINKS, Base::object, object_editcurve_get(), View3D::overlay, params, ViewContext::scene, SEL_OP_ADD, SEL_OP_AND, SEL_OP_SET, SEL_OP_SUB, SEL_OP_XOR, SELECT, select_beztriple(), select_bpoint(), ViewContext::v3d, view3d_operator_needs_opengl(), ViewContext::view_layer, and WM_event_add_notifier().
Referenced by curve_pen_modal(), and view3d_select_exec().
Definition at line 97 of file editcurve.cc.
References BKE_keyblock_find_by_index(), BLI_assert, Curve::editnurb, Curve::key, and EditNurb::shapenr.
Referenced by blender::ed::object::shape_key_report_if_locked().
| int ED_curve_join_objects_exec | ( | bContext * | C, |
| wmOperator * | op ) |
This is used externally, by #OBJECT_OT_join. TODO: shape keys - as with meshes.
Definition at line 6935 of file editcurve.cc.
References blender::ed::object::base_free_and_unlink(), Curve::bevel_radius, Nurb::bezt, BKE_curve_dimension_update(), BKE_nurb_duplicate(), BKE_nurb_handles_calc(), BKE_report(), BLI_addtail(), BLI_listbase_clear(), BLI_movelisttolist(), Nurb::bp, CLAMP, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), CTX_data_scene(), CU_IS_2D, Object::data, DEG_id_tag_update(), DEG_relations_tag_update(), ListBase::first, Object::id, ID_RECALC_GEOMETRY, ID_RECALC_SELECT, ID_RECALC_TRANSFORM, invert_m4_m4_safe_ortho(), LISTBASE_FOREACH, mat4_to_scale(), Nurb::mat_nr, mul_m4_m4m4(), mul_m4_v3(), NC_SCENE, ND_LAYER_CONTENT, ND_OB_ACTIVE, Curve::nurb, OB_CURVES_LEGACY, OPERATOR_CANCELLED, OPERATOR_FINISHED, Nurb::pntsu, Nurb::pntsv, BezTriple::radius, wmOperator::reports, RPT_WARNING, Object::totcol, Object::type, BezTriple::vec, BPoint::vec, and WM_event_add_notifier().
Referenced by blender::ed::object::object_join_exec().
| 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().
| 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().
| void ED_curve_undosys_type | ( | UndoType * | ut | ) |
Export for ED_undo_sys
Definition at line 304 of file editcurve_undo.cc.
References curve_undosys_foreach_ID_ref(), curve_undosys_poll(), curve_undosys_step_decode(), curve_undosys_step_encode(), curve_undosys_step_free(), UndoType::flags, UndoType::name, UndoType::poll, UndoType::step_decode, UndoType::step_encode, UndoType::step_foreach_ID_ref, UndoType::step_free, UndoType::step_size, and UNDOTYPE_FLAG_NEED_CONTEXT_FOR_ENCODE.
Referenced by ED_undosys_type_init().
Return 0 if animation data wasn't changed, 1 otherwise.
Definition at line 1093 of file editcurve.cc.
References AnimData::action, blender::animrig::action_fcurve_remove(), action_groups_remove_channel(), BKE_action_groups_reconstruct(), BKE_animdata_from_id(), BKE_fcurve_free(), BLI_assert, BLI_remlink(), curve_is_animated(), curve_rename_fcurves(), DEG_id_tag_update(), DEG_relations_tag_update(), AnimData::drivers, Curve::editnurb, blender::animrig::legacy::fcurves_for_assigned_action(), bAction::id, Curve::id, ID_RECALC_SYNC_TO_EVAL, blender::animrig::Action::is_action_legacy(), EditNurb::keyindex, blender::listbase_to_vector(), and UNUSED_VARS_NDEBUG.
Referenced by add_vertex_exec(), curve_decimate_exec(), curve_delete_exec(), curve_dissolve_exec(), curve_extrude_exec(), curve_split_exec(), ED_curve_editnurb_load(), make_segment_exec(), set_spline_type_exec(), spin_exec(), subdivide_exec(), switch_direction_exec(), and undocurve_to_editcurve().
| void ED_font_undosys_type | ( | UndoType * | ut | ) |
Export for ED_undo_sys.
Definition at line 403 of file editfont_undo.cc.
References UndoType::flags, font_undosys_foreach_ID_ref(), font_undosys_poll(), font_undosys_step_decode(), font_undosys_step_encode(), font_undosys_step_free(), UndoType::name, UndoType::poll, UndoType::step_decode, UndoType::step_encode, UndoType::step_foreach_ID_ref, UndoType::step_free, UndoType::step_size, and UNDOTYPE_FLAG_NEED_CONTEXT_FOR_ENCODE.
Referenced by ED_undosys_type_init().
| void ED_keymap_curve | ( | wmKeyConfig * | keyconf | ) |
Definition at line 149 of file curve_ops.cc.
References curve_pen_modal_keymap(), ED_operator_editfont(), ED_operator_editsurfcurve(), wmKeyMap::poll, RGN_TYPE_WINDOW, SPACE_EMPTY, and WM_keymap_ensure().
Referenced by ED_spacetypes_keymap().
| void ED_operatormacros_curve | ( | ) |
Definition at line 125 of file curve_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorTypeMacro::ptr, RNA_boolean_set(), WM_operatortype_append_macro(), and WM_operatortype_macro_define().
Referenced by ED_spacemacros_init().
| void ED_operatortypes_curve | ( | ) |
Definition at line 26 of file curve_ops.cc.
References CURVE_OT_cyclic_toggle(), CURVE_OT_de_select_first(), CURVE_OT_de_select_last(), CURVE_OT_decimate(), CURVE_OT_delete(), CURVE_OT_dissolve_verts(), CURVE_OT_draw(), CURVE_OT_duplicate(), CURVE_OT_extrude(), CURVE_OT_handle_type_set(), CURVE_OT_hide(), CURVE_OT_make_segment(), CURVE_OT_match_texture_space(), CURVE_OT_normals_make_consistent(), CURVE_OT_pen(), CURVE_OT_primitive_bezier_circle_add(), CURVE_OT_primitive_bezier_curve_add(), CURVE_OT_primitive_nurbs_circle_add(), CURVE_OT_primitive_nurbs_curve_add(), CURVE_OT_primitive_nurbs_path_add(), CURVE_OT_radius_set(), CURVE_OT_reveal(), CURVE_OT_select_all(), CURVE_OT_select_less(), CURVE_OT_select_linked(), CURVE_OT_select_linked_pick(), CURVE_OT_select_more(), CURVE_OT_select_next(), CURVE_OT_select_nth(), CURVE_OT_select_previous(), CURVE_OT_select_random(), CURVE_OT_select_row(), CURVE_OT_select_similar(), CURVE_OT_separate(), CURVE_OT_shade_flat(), CURVE_OT_shade_smooth(), CURVE_OT_shortest_path_pick(), CURVE_OT_smooth(), CURVE_OT_smooth_radius(), CURVE_OT_smooth_tilt(), CURVE_OT_smooth_weight(), CURVE_OT_spin(), CURVE_OT_spline_type_set(), CURVE_OT_spline_weight_set(), CURVE_OT_split(), CURVE_OT_subdivide(), CURVE_OT_switch_direction(), CURVE_OT_tilt_clear(), CURVE_OT_vertex_add(), FONT_OT_case_set(), FONT_OT_case_toggle(), FONT_OT_change_character(), FONT_OT_change_spacing(), FONT_OT_delete(), FONT_OT_line_break(), FONT_OT_move(), FONT_OT_move_select(), FONT_OT_open(), FONT_OT_select_all(), FONT_OT_select_word(), FONT_OT_selection_set(), FONT_OT_style_set(), FONT_OT_style_toggle(), FONT_OT_text_copy(), FONT_OT_text_cut(), FONT_OT_text_insert(), FONT_OT_text_insert_unicode(), FONT_OT_text_paste(), FONT_OT_text_paste_from_file(), FONT_OT_textbox_add(), FONT_OT_textbox_remove(), FONT_OT_unlink(), SURFACE_OT_primitive_nurbs_surface_circle_add(), SURFACE_OT_primitive_nurbs_surface_curve_add(), SURFACE_OT_primitive_nurbs_surface_cylinder_add(), SURFACE_OT_primitive_nurbs_surface_sphere_add(), SURFACE_OT_primitive_nurbs_surface_surface_add(), SURFACE_OT_primitive_nurbs_surface_torus_add(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
Definition at line 872 of file editfont.cc.
References BLI_listbase_count(), CTX_data_main(), CTX_wm_region_view3d(), DEG_relations_tag_update(), ED_outliner_select_sync_from_object_tag(), LISTBASE_FOREACH, mul_mat3_m4_v3(), txt_add_object(), and RegionView3D::viewinv.
Referenced by text_to_3d_object_exec().
Definition at line 88 of file editcurve.cc.
References Object::data, Curve::editnurb, ELEM, EditNurb::nurbs, OB_CURVES_LEGACY, OB_SURF, and Object::type.
Referenced by adduplicateflagNurb(), clear_tilt_exec(), curve_decimate_exec(), curve_dissolve_exec(), curve_draw_exec(), curve_normals_make_consistent_exec(), curve_select_less(), curve_select_more(), curve_select_random_exec(), curve_smooth_radius_exec(), curve_smooth_tilt_exec(), curve_smooth_weight_exec(), curve_split_exec(), curvesurf_prim_add(), duplicate_exec(), ED_curve_add_nurbs_primitive(), ED_curve_editnurb_load(), ED_curve_editnurb_select_pick(), ed_editnurb_spin(), ed_surf_delete_selected(), hide_exec(), make_cyclic_if_endpoints(), make_segment_exec(), merge_nurb(), blender::ed::object::return_editcurve_indexar(), reveal_exec(), blender::ed::object::select_editcurve_hook(), select_next_exec(), select_previous_exec(), select_row_exec(), selectend_nurb(), set_goal_weight_exec(), set_handle_type_exec(), set_radius_exec(), set_spline_type_exec(), shade_smooth_exec(), smooth_exec(), toggle_cyclic_exec(), toggle_cyclic_invoke(), and blender::ed::object::vertex_parent_set_exec().