Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_curve.h
| Show All 37 Lines | |||||
| struct Text; | struct Text; | ||||
| struct UndoType; | struct UndoType; | ||||
| struct View3D; | struct View3D; | ||||
| struct bContext; | struct bContext; | ||||
| struct wmKeyConfig; | struct wmKeyConfig; | ||||
| struct wmOperator; | struct wmOperator; | ||||
| /* curve_ops.c */ | /* curve_ops.c */ | ||||
| void ED_operatortypes_curve(void); | void ED_operatortypes_curve(void); | ||||
| void ED_operatormacros_curve(void); | void ED_operatormacros_curve(void); | ||||
| void ED_keymap_curve(struct wmKeyConfig *keyconf); | void ED_keymap_curve(struct wmKeyConfig *keyconf); | ||||
| /* editcurve.c */ | /* editcurve.c */ | ||||
| struct ListBase *object_editcurve_get(struct Object *ob); | struct ListBase *object_editcurve_get(struct Object *ob); | ||||
| /** | |||||
| * Load editNurb in object. | |||||
| */ | |||||
| void ED_curve_editnurb_load(struct Main *bmain, struct Object *obedit); | void ED_curve_editnurb_load(struct Main *bmain, struct Object *obedit); | ||||
| /** | |||||
| * Make copy in `cu->editnurb`. | |||||
| */ | |||||
| void ED_curve_editnurb_make(struct Object *obedit); | void ED_curve_editnurb_make(struct Object *obedit); | ||||
| void ED_curve_editnurb_free(struct Object *obedit); | void ED_curve_editnurb_free(struct Object *obedit); | ||||
| bool ED_curve_editnurb_select_pick( | bool ED_curve_editnurb_select_pick( | ||||
| struct bContext *C, const int mval[2], bool extend, bool deselect, bool toggle); | struct bContext *C, const int mval[2], bool extend, bool deselect, bool toggle); | ||||
| struct Nurb *ED_curve_add_nurbs_primitive( | struct Nurb *ED_curve_add_nurbs_primitive( | ||||
| struct bContext *C, struct Object *obedit, float mat[4][4], int type, int newob); | struct bContext *C, struct Object *obedit, float mat[4][4], int type, int newob); | ||||
| bool ED_curve_nurb_select_check(const struct View3D *v3d, const struct Nurb *nu); | bool ED_curve_nurb_select_check(const struct View3D *v3d, const struct Nurb *nu); | ||||
| int ED_curve_nurb_select_count(const struct View3D *v3d, const struct Nurb *nu); | int ED_curve_nurb_select_count(const struct View3D *v3d, const struct Nurb *nu); | ||||
| bool ED_curve_nurb_select_all(const struct Nurb *nu); | bool ED_curve_nurb_select_all(const struct Nurb *nu); | ||||
| bool ED_curve_nurb_deselect_all(const struct Nurb *nu); | bool ED_curve_nurb_deselect_all(const struct Nurb *nu); | ||||
| /** | |||||
| * This is used externally, by #OBJECT_OT_join. | |||||
| * TODO: shape keys - as with meshes. | |||||
| */ | |||||
| int ED_curve_join_objects_exec(struct bContext *C, struct wmOperator *op); | int ED_curve_join_objects_exec(struct bContext *C, struct wmOperator *op); | ||||
| /* editcurve_select.c */ | /* editcurve_select.c */ | ||||
| bool ED_curve_select_check(const struct View3D *v3d, const struct EditNurb *editnurb); | bool ED_curve_select_check(const struct View3D *v3d, const struct EditNurb *editnurb); | ||||
| bool ED_curve_deselect_all(struct EditNurb *editnurb); | bool ED_curve_deselect_all(struct EditNurb *editnurb); | ||||
| bool ED_curve_deselect_all_multi_ex(struct Base **bases, int bases_len); | bool ED_curve_deselect_all_multi_ex(struct Base **bases, int bases_len); | ||||
| bool ED_curve_deselect_all_multi(struct bContext *C); | bool ED_curve_deselect_all_multi(struct bContext *C); | ||||
| bool ED_curve_select_all(struct EditNurb *editnurb); | bool ED_curve_select_all(struct EditNurb *editnurb); | ||||
| bool ED_curve_select_swap(struct EditNurb *editnurb, bool hide_handles); | bool ED_curve_select_swap(struct EditNurb *editnurb, bool hide_handles); | ||||
| int ED_curve_select_count(const struct View3D *v3d, const struct EditNurb *editnurb); | int ED_curve_select_count(const struct View3D *v3d, const struct EditNurb *editnurb); | ||||
| /* editcurve_undo.c */ | /* editcurve_undo.c */ | ||||
| /** Export for ED_undo_sys */ | |||||
| void ED_curve_undosys_type(struct UndoType *ut); | void ED_curve_undosys_type(struct UndoType *ut); | ||||
| /* editfont.c */ | /* editfont.c */ | ||||
| void ED_curve_editfont_load(struct Object *obedit); | void ED_curve_editfont_load(struct Object *obedit); | ||||
| void ED_curve_editfont_make(struct Object *obedit); | void ED_curve_editfont_make(struct Object *obedit); | ||||
| void ED_curve_editfont_free(struct Object *obedit); | void ED_curve_editfont_free(struct Object *obedit); | ||||
| void ED_text_to_object(struct bContext *C, const struct Text *text, const bool split_lines); | void ED_text_to_object(struct bContext *C, const struct Text *text, const bool split_lines); | ||||
| void ED_curve_beztcpy(struct EditNurb *editnurb, | void ED_curve_beztcpy(struct EditNurb *editnurb, | ||||
| struct BezTriple *dst, | struct BezTriple *dst, | ||||
| struct BezTriple *src, | struct BezTriple *src, | ||||
| int count); | int count); | ||||
| void ED_curve_bpcpy(struct EditNurb *editnurb, struct BPoint *dst, struct BPoint *src, int count); | void ED_curve_bpcpy(struct EditNurb *editnurb, struct BPoint *dst, struct BPoint *src, int count); | ||||
| /** | |||||
| * Return 0 if animation data wasn't changed, 1 otherwise. | |||||
| */ | |||||
| int ED_curve_updateAnimPaths(struct Main *bmain, struct Curve *cu); | int ED_curve_updateAnimPaths(struct Main *bmain, struct Curve *cu); | ||||
| bool ED_curve_active_center(struct Curve *cu, float center[3]); | bool ED_curve_active_center(struct Curve *cu, float center[3]); | ||||
| /** | |||||
| * TextBox selection | |||||
| */ | |||||
| bool ED_curve_editfont_select_pick( | bool ED_curve_editfont_select_pick( | ||||
| struct bContext *C, const int mval[2], bool extend, bool deselect, bool toggle); | struct bContext *C, const int mval[2], bool extend, bool deselect, bool toggle); | ||||
| /* editfont_undo.c */ | /* editfont_undo.c */ | ||||
| /** Export for ED_undo_sys. */ | |||||
| void ED_font_undosys_type(struct UndoType *ut); | void ED_font_undosys_type(struct UndoType *ut); | ||||
| #if 0 | #if 0 | ||||
| /* debug only */ | /* debug only */ | ||||
| void printknots(struct Object *obedit); | void printknots(struct Object *obedit); | ||||
| #endif | #endif | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||