Blender
V3.3
|
Go to the source code of this file.
Definition at line 231 of file editcurve_query.c.
References BKE_curve_nurb_vert_active_get(), center, copy_v3_v3(), CU_BEZIER, NULL, Nurb::type, BezTriple::vec, and BPoint::vec.
Referenced by ED_object_calc_active_center_for_editmode().
struct Nurb* ED_curve_add_nurbs_primitive | ( | struct bContext * | C, |
struct Object * | obedit, | ||
float | mat[4][4], | ||
int | type, | ||
int | newob | ||
) |
Definition at line 101 of file editcurve_add.c.
References C, Object::data, ED_view3d_context_rv3d(), NULL, and object_editcurve_get().
Referenced by curvesurf_prim_add(), and effector_add_exec().
void ED_curve_beztcpy | ( | struct EditNurb * | editnurb, |
struct BezTriple * | dst, | ||
struct BezTriple * | src, | ||
int | count | ||
) |
Definition at line 7049 of file editcurve.c.
References count, keyIndex_updateBezt(), and src.
Referenced by curve_delete_segments(), ed_editcurve_extrude(), extrude_vertices_from_selected_endpoints(), insert_bezt_to_nurb(), and make_segment_exec().
void ED_curve_bpcpy | ( | struct EditNurb * | editnurb, |
struct BPoint * | dst, | ||
struct BPoint * | src, | ||
int | count | ||
) |
Definition at line 7055 of file editcurve.c.
References count, keyIndex_updateBP(), and src.
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().
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 1903 of file editfont.c.
References BKE_curve_editfont_free(), and Object::data.
Referenced by ED_object_editmode_load_free_ex().
Definition at line 1873 of file editfont.c.
References BLI_str_utf32_as_utf8(), BLI_str_utf32_as_utf8_len(), Object::data, Curve::editfont, EditFont::len, Curve::len, Curve::len_char32, MEM_callocN, MEM_freeN, MEM_mallocN, EditFont::pos, Curve::pos, EditFont::selend, Curve::selend, EditFont::selstart, Curve::selstart, Curve::str, Curve::strinfo, EditFont::textbuf, and EditFont::textbufinfo.
Referenced by ED_object_editmode_load_free_ex().
Definition at line 1837 of file editfont.c.
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, NULL, EditFont::pos, Curve::pos, EditFont::selend, Curve::selend, EditFont::selstart, Curve::selstart, Curve::str, Curve::strinfo, EditFont::textbuf, and EditFont::textbufinfo.
Referenced by ED_object_editmode_enter_ex().
bool ED_curve_editfont_select_pick | ( | struct bContext * | C, |
const int | mval[2], | ||
const struct SelectPick_Params * | params | ||
) |
Text box selection.
Definition at line 2174 of file editfont.c.
References Curve::actbox, BKE_curve_rect_from_textbox(), C, 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(), ID_RECALC_COPY_ON_WRITE, max_ii(), NC_GEOM, ND_DATA, ViewContext::obedit, params, ViewContext::region, ViewContext::rv3d, Curve::tb, Curve::totbox, UNPACK2, V3D_PROJ_RET_OK, V3D_PROJ_TEST_CLIP_BB, void, and WM_event_add_notifier().
Referenced by view3d_select_exec().
Definition at line 1316 of file editcurve.c.
References BKE_curve_editNurb_free(), and Object::data.
Referenced by ED_object_editmode_load_free_ex(), and separate_exec().
Load editNurb in object.
Definition at line 1234 of file editcurve.c.
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, NULL, Curve::nurb, OB_CURVES_LEGACY, OB_SURF, object_editcurve_get(), remap_hooks_and_vertex_parents(), Nurb::type, and Object::type.
Referenced by ED_object_editmode_load_free_ex(), object_hook_index_array(), and separate_exec().
Make copy in cu->editnurb
.
Definition at line 1271 of file editcurve.c.
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, if(), init_editNurb_keyIndex(), LISTBASE_FOREACH, MEM_callocN, Curve::nurb, OB_CURVES_LEGACY, OB_SURF, Object::shapenr, and Object::type.
Referenced by ED_object_editmode_enter_ex(), object_hook_index_array(), and separate_exec().
bool ED_curve_editnurb_select_pick | ( | struct bContext * | C, |
const int | mval[2], | ||
int | dist_px, | ||
bool | vert_without_handles, | ||
const struct SelectPick_Params * | params | ||
) |
dist_px | Maximum distance to pick (in pixels). |
vert_without_handles | When true, selecting the knot doesn't select the handles. |
Definition at line 4729 of file editcurve.c.
References Object::actcol, Curve::actvert, ViewLayer::basact, 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_array_from_objects_in_edit_mode_unique_data, BLI_assert_unreachable, C, copy_v2_v2_int(), CTX_data_ensure_evaluated_depsgraph(), CU_ACT_NONE, CURVE_HANDLE_NONE, Object::data, DEG_id_tag_update(), depsgraph, DESELECT, ED_curve_deselect_all(), ED_curve_pick_vert_ex(), ED_object_base_activate(), ED_view3d_viewcontext_init(), BezTriple::f1, BPoint::f1, BezTriple::f2, BezTriple::f3, View3DOverlay::handle_display, HIDDEN, ID_RECALC_COPY_ON_WRITE, ID_RECALC_SELECT, Nurb::mat_nr, MEM_freeN, ViewContext::mval, NC_GEOM, NC_MATERIAL, ND_SELECT, ND_SHADING_LINKS, NULL, Base::object, object_editcurve_get(), View3D::overlay, params, 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().
int ED_curve_join_objects_exec | ( | struct bContext * | C, |
struct wmOperator * | op | ||
) |
This is used externally, by OBJECT_OT_join. TODO: shape keys - as with meshes.
Definition at line 6863 of file editcurve.c.
References Freestyle::a, 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, C, 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(), ED_object_base_free_and_unlink(), ListBase::first, Object::id, Scene::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, Object::obmat, OPERATOR_CANCELLED, OPERATOR_FINISHED, Nurb::pntsu, Nurb::pntsv, BezTriple::radius, wmOperator::reports, RPT_WARNING, scene, Object::totcol, Object::type, BezTriple::vec, BPoint::vec, and WM_event_add_notifier().
Referenced by object_join_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 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().
Export for ED_undo_sys
Definition at line 294 of file editcurve_undo.c.
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 1062 of file editcurve.c.
References AnimData::action, BKE_animdata_from_id(), curve_is_animated(), curve_rename_fcurves(), bAction::curves, DEG_id_tag_update(), DEG_relations_tag_update(), AnimData::drivers, Curve::editnurb, bAction::id, Curve::id, ID_RECALC_COPY_ON_WRITE, EditNurb::keyindex, and NULL.
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().
Export for ED_undo_sys.
Definition at line 394 of file editfont_undo.c.
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 | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 145 of file curve_ops.c.
References curve_pen_modal_keymap(), ED_operator_editfont(), ED_operator_editsurfcurve(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_spacetypes_keymap().
Definition at line 121 of file curve_ops.c.
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().
Definition at line 26 of file curve_ops.c.
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_style_set(), FONT_OT_style_toggle(), FONT_OT_text_copy(), FONT_OT_text_cut(), FONT_OT_text_insert(), 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 74 of file editcurve.c.
References Object::data, Curve::editnurb, ELEM, NULL, 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(), return_editcurve_indexar(), reveal_exec(), 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 vertex_parent_set_exec().