|
Blender
V2.59
|
Go to the source code of this file.
Functions | |
| void | ED_operatortypes_curve (void) |
| void | ED_keymap_curve (struct wmKeyConfig *keyconf) |
| void | CU_deselect_all (struct Object *obedit) |
| void | CU_select_all (struct Object *obedit) |
| void | CU_select_swap (struct Object *obedit) |
| void | undo_push_curve (struct bContext *C, const char *name) |
| ListBase * | curve_get_editcurve (struct Object *ob) |
| void | load_editNurb (struct Object *obedit) |
| void | make_editNurb (struct Object *obedit) |
| void | free_editNurb (struct Object *obedit) |
| void | free_curve_editNurb (struct Curve *cu) |
| int | mouse_nurb (struct bContext *C, const int mval[2], int extend) |
| struct Nurb * | add_nurbs_primitive (struct bContext *C, float mat[4][4], int type, int newob) |
| int | isNurbsel (struct Nurb *nu) |
| void | ED_nurb_set_spline_type (struct Nurb *nu, int type) |
| int | join_curve_exec (struct bContext *C, struct wmOperator *op) |
| void | undo_push_font (struct bContext *C, const char *name) |
| void | make_editText (struct Object *obedit) |
| void | load_editText (struct Object *obedit) |
| void | free_editText (struct Object *obedit) |
| void | ED_text_to_object (struct bContext *C, struct Text *text, int split_lines) |
| int | CU_select_nth (struct Object *obedit, int nth) |
| ListBase * | ED_curve_editnurbs (struct Curve *cu) |
| void | ED_curve_beztcpy (struct EditNurb *editnurb, struct BezTriple *dst, struct BezTriple *src, int count) |
| void | ED_curve_bpcpy (struct EditNurb *editnurb, struct BPoint *dst, struct BPoint *src, int count) |
| int | ED_curve_updateAnimPaths (struct Object *obedit) |
| void | printknots (struct Object *obedit) |
Definition in file ED_curve.h.
| struct Nurb* add_nurbs_primitive | ( | struct bContext * | C, |
| float | mat[4][4], | ||
| int | type, | ||
| int | newob | ||
| ) | [read] |
Definition at line 6195 of file editcurve.c.
References CTX_data_edit_object(), CTX_wm_view3d(), curve_get_editcurve(), Object::data, ED_view3d_context_rv3d(), NurbSort::nu, NULL, and NurbSort::vec.
Referenced by curvesurf_prim_add(), and effector_add_type().
| void CU_deselect_all | ( | struct Object * | obedit | ) |
Definition at line 1303 of file editcurve.c.
References curve_get_editcurve(), DESELECT, FIRST, select_adjacent_cp(), and selectend_nurb().
Referenced by de_select_all_exec(), do_lasso_select_curve(), do_nurbs_box_select(), and select_random_exec().
| void CU_select_all | ( | struct Object * | obedit | ) |
Definition at line 1313 of file editcurve.c.
References curve_get_editcurve(), FIRST, SELECT, select_adjacent_cp(), and selectend_nurb().
Referenced by de_select_all_exec().
| int CU_select_nth | ( | struct Object * | obedit, |
| int | nth | ||
| ) |
Definition at line 5550 of file editcurve.c.
References Nurb::bezt, Object::data, ED_curve_editnurbs(), Curve::lastsel, Nurb::next, NurbSort::nu, point_on_nurb(), select_nth_bezt(), and select_nth_bp().
Referenced by select_nth_exec().
| void CU_select_swap | ( | struct Object * | obedit | ) |
Definition at line 1323 of file editcurve.c.
References Nurb::bezt, Nurb::bp, CU_BEZIER, CU_HIDE_HANDLES, curve_get_editcurve(), Object::data, Curve::drawflag, BezTriple::f1, BezTriple::f2, BezTriple::f3, ListBase::first, BezTriple::hide, Curve::lastsel, Nurb::next, NULL, Nurb::pntsu, Nurb::pntsv, SELECT, swap_selection_bpoint(), and Nurb::type.
Referenced by de_select_all_exec().
Definition at line 120 of file editcurve.c.
References Object::data, Curve::editnurb, ELEM, NULL, EditNurb::nurbs, OB_CURVE, OB_SURF, and Object::type.
Referenced by add_nurbs_primitive(), adduplicateflagNurb(), clear_tilt_exec(), CU_deselect_all(), CU_select_all(), CU_select_swap(), curvesurf_prim_add(), de_select_all_exec(), deleteflagNurb(), effector_add_type(), hide_exec(), load_editNurb(), make_segment_exec(), merge_nurb(), mouse_nurb(), printknots(), return_editcurve_indexar(), reveal_exec(), select_editcurve_hook(), select_inverse_exec(), select_less_exec(), select_more_exec(), select_next_exec(), select_previous_exec(), select_random_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(), smooth_radius_exec(), spin_nurb(), toggle_cyclic_exec(), toggle_cyclic_invoke(), and vertex_parent_set_exec().
| void ED_curve_beztcpy | ( | struct EditNurb * | editnurb, |
| struct BezTriple * | dst, | ||
| struct BezTriple * | src, | ||
| int | count | ||
| ) |
Definition at line 7094 of file editcurve.c.
References keyIndex_updateBezt().
Referenced by addvert_Nurb(), delete_exec(), and make_segment_exec().
| void ED_curve_bpcpy | ( | struct EditNurb * | editnurb, |
| struct BPoint * | dst, | ||
| struct BPoint * | src, | ||
| int | count | ||
| ) |
Definition at line 7100 of file editcurve.c.
References keyIndex_updateBP().
Referenced by addvert_Nurb(), delete_exec(), extrudeflagNurb(), and make_segment_exec().
Definition at line 7086 of file editcurve.c.
References Curve::editnurb, NULL, and EditNurb::nurbs.
Referenced by BKE_curve_nurbs(), calc_manipulator_stats(), createTransCurveVerts(), CU_select_nth(), draw_object(), editCurve_to_undoCurve(), get_actNurb(), getTransformOrientation(), make_trans_verts(), makeBevelList(), makeDispListSurf(), material_slot_assign_exec(), material_slot_de_select(), nurbs_foreachScreenVert(), set_actNurb(), special_transvert_update(), stats_object_edit(), undoCurve_to_editCurve(), and v3d_editvertex_buts().
| int ED_curve_updateAnimPaths | ( | struct Object * | obedit | ) |
Definition at line 1181 of file editcurve.c.
References Object::action, BKE_animdata_from_id(), curve_is_animated(), curve_rename_fcurves(), bAction::curves, Object::data, and Curve::id.
Referenced by addvert_Nurb(), delete_exec(), deleteflagNurb(), extrude_exec(), load_editNurb(), make_segment_exec(), set_spline_type_exec(), spin_exec(), subdivide_exec(), switch_direction_exec(), and undoCurve_to_editCurve().
| void ED_keymap_curve | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 143 of file curve_ops.c.
References AKEY, BACKSPACEKEY, BKEY, CKEY, CU_CHINFO_BOLD, CU_CHINFO_ITALIC, CU_CHINFO_SMALLCAPS, CU_CHINFO_UNDERLINE, DEL_ALL, DEL_NEXT_SEL, DEL_PREV_SEL, DELKEY, DKEY, DOWNARROWKEY, ED_object_generic_keymap(), ED_operator_editfont(), ED_operator_editsurfcurve(), EKEY, ENDKEY, FKEY, HKEY, HOMEKEY, IKEY, KM_ALT, KM_ANY, KM_CLICK, KM_CTRL, KM_OSKEY, KM_PRESS, KM_SHIFT, KM_TEXTINPUT, LEFTARROWKEY, LEFTMOUSE, LINE_BEGIN, LINE_END, LKEY, NEXT_CHAR, NEXT_LINE, NEXT_PAGE, NEXT_WORD, PADMINUS, PADPLUSKEY, PAGEDOWNKEY, PAGEUPKEY, PKEY, wmKeyMap::poll, PREV_CHAR, PREV_LINE, PREV_PAGE, PREV_WORD, RETKEY, RIGHTARROWKEY, RKEY, RNA_boolean_set(), RNA_enum_set(), RNA_int_set(), SKEY, TFM_CURVE_SHRINKFATTEN, TFM_TILT, TKEY, UKEY, UPARROWKEY, VKEY, WKEY, WM_keymap_add_item(), WM_keymap_add_menu(), WM_keymap_find(), and XKEY.
Referenced by ED_spacetypes_keymap().
| void ED_nurb_set_spline_type | ( | struct Nurb * | nu, |
| int | type | ||
| ) |
Definition at line 3537 of file editcurve.c.
References convertspline().
| void ED_operatortypes_curve | ( | void | ) |
Definition at line 59 of file curve_ops.c.
References CURVE_OT_cyclic_toggle(), CURVE_OT_de_select_first(), CURVE_OT_de_select_last(), CURVE_OT_delete(), CURVE_OT_duplicate(), CURVE_OT_extrude(), CURVE_OT_handle_type_set(), CURVE_OT_hide(), CURVE_OT_make_segment(), 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_inverse(), 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_separate(), CURVE_OT_shade_flat(), CURVE_OT_shade_smooth(), CURVE_OT_smooth(), CURVE_OT_smooth_radius(), CURVE_OT_spin(), CURVE_OT_spline_type_set(), CURVE_OT_spline_weight_set(), CURVE_OT_subdivide(), CURVE_OT_switch_direction(), CURVE_OT_tilt_clear(), CURVE_OT_vertex_add(), FONT_OT_buffer_paste(), FONT_OT_case_set(), FONT_OT_case_toggle(), FONT_OT_change_character(), FONT_OT_change_spacing(), FONT_OT_delete(), FONT_OT_file_paste(), FONT_OT_insert_lorem(), FONT_OT_line_break(), FONT_OT_move(), FONT_OT_move_select(), FONT_OT_open(), 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_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 522 of file editfont.c.
References BLI_countlist(), CTX_wm_region_view3d(), ListBase::first, TextLine::line, Text::lines, mul_mat3_m4_v3(), TextLine::next, txt_add_object(), and RegionView3D::viewinv.
Referenced by to_3d_object_exec().
| void free_curve_editNurb | ( | struct Curve * | cu | ) |
Definition at line 1286 of file editcurve.c.
References Curve::editnurb, free_editNurb_keyIndex(), freeNurblist(), MEM_freeN(), NULL, and EditNurb::nurbs.
Referenced by free_curve(), and free_editNurb().
| void free_editNurb | ( | struct Object * | obedit | ) |
Definition at line 1296 of file editcurve.c.
References Object::data, and free_curve_editNurb().
Referenced by ED_object_exit_editmode(), and separate_exec().
| void free_editText | ( | struct Object * | obedit | ) |
Definition at line 1520 of file editfont.c.
References BKE_free_editfont(), and Object::data.
Referenced by ED_object_exit_editmode().
| int isNurbsel | ( | struct Nurb * | nu | ) |
Definition at line 217 of file editcurve.c.
References Nurb::bezt, Nurb::bp, CU_BEZIER, BezTriple::f1, BPoint::f1, BezTriple::f2, BezTriple::f3, Nurb::pntsu, Nurb::pntsv, SELECT, and Nurb::type.
Referenced by adduplicateflagNurb(), make_editNurb(), make_segment_exec(), make_selection_list_nurb(), material_slot_assign_exec(), printknots(), separate_exec(), set_spline_type_exec(), shade_smooth_exec(), spin_nurb(), and switch_direction_exec().
| int join_curve_exec | ( | struct bContext * | C, |
| struct wmOperator * | op | ||
| ) |
| void load_editNurb | ( | struct Object * | obedit | ) |
Definition at line 1199 of file editcurve.c.
References BLI_addtail(), calc_shapeKeys(), clamp_nurb_order_u(), CU_NURBS, curve_get_editcurve(), Object::data, duplicateNurb(), ED_curve_updateAnimPaths(), ELEM, ListBase::first, freeNurblist(), Nurb::next, NULL, Curve::nurb, OB_CURVE, OB_SURF, set_actNurb(), Object::type, and Nurb::type.
Referenced by ED_object_exit_editmode(), and separate_exec().
| void load_editText | ( | struct Object * | obedit | ) |
Definition at line 1493 of file editfont.c.
References Object::data, Curve::editfont, Curve::len, MEM_callocN(), MEM_freeN(), NULL, EditFont::oldstr, EditFont::oldstrinfo, Curve::selboxes, Curve::str, Curve::strinfo, EditFont::textbufinfo, and update_string().
Referenced by ED_object_exit_editmode().
| void make_editNurb | ( | struct Object * | obedit | ) |
Definition at line 1233 of file editcurve.c.
References BLI_addtail(), Object::data, duplicateNurb(), Curve::editnurb, ELEM, ListBase::first, free_editNurb_keyIndex(), freeNurblist(), init_editNurb_keyIndex(), isNurbsel(), key_to_curve(), Curve::lastsel, MEM_callocN(), Nurb::next, NULL, Curve::nurb, OB_CURVE, ob_get_keyblock(), OB_SURF, set_actNurb(), Object::shapenr, test2DNurb(), Object::type, and undo_editmode_clear().
Referenced by ED_object_enter_editmode(), and separate_exec().
| void make_editText | ( | struct Object * | obedit | ) |
Definition at line 1457 of file editfont.c.
References EditFont::copybuf, EditFont::copybufinfo, Curve::curinfo, Object::data, Curve::editfont, Curve::len, MAXTEXT, MEM_callocN(), NULL, EditFont::oldstr, EditFont::oldstrinfo, Curve::pos, Curve::str, Curve::strinfo, EditFont::textbuf, EditFont::textbufinfo, update_string(), and utf8towchar().
Referenced by ED_object_enter_editmode().
| int mouse_nurb | ( | struct bContext * | C, |
| const int | mval[2], | ||
| int | extend | ||
| ) |
Definition at line 4179 of file editcurve.c.
References CTX_data_edit_object(), curve_get_editcurve(), Object::data, DESELECT, BezTriple::f1, BPoint::f1, BezTriple::f2, BezTriple::f3, findnearestNurbvert(), get_actNurb(), HIDDEN, Curve::lastsel, NC_GEOM, ND_SELECT, NurbSort::nu, NULL, SELECT, select_beztriple(), select_bpoint(), set_actNurb(), setflagsNurb(), view3d_operator_needs_opengl(), view3d_set_viewcontext(), and WM_event_add_notifier().
Referenced by view3d_select_invoke().
| void printknots | ( | struct Object * | obedit | ) |
Definition at line 269 of file editcurve.c.
References CU_NURBS, curve_get_editcurve(), ListBase::first, isNurbsel(), KNOTSU, Nurb::knotsu, KNOTSV, Nurb::knotsv, Nurb::next, and Nurb::type.
| void undo_push_curve | ( | struct bContext * | C, |
| const char * | name | ||
| ) |
Definition at line 7080 of file editcurve.c.
References editCurve_to_undoCurve(), free_undoCurve(), get_data(), NULL, undo_editmode_push(), and undoCurve_to_editCurve().
Referenced by ED_undo_push().
| void undo_push_font | ( | struct bContext * | C, |
| const char * | name | ||
| ) |
Definition at line 1823 of file editfont.c.
References editFont_to_undoFont(), free_undoFont(), get_undoFont(), NULL, undo_editmode_push(), and undoFont_to_editFont().
Referenced by ED_undo_push().