Blender V2.61 - r43446
|
00001 /* 00002 * ***** BEGIN GPL LICENSE BLOCK ***** 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software Foundation, 00016 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00017 * 00018 * The Original Code is Copyright (C) 2009 Blender Foundation. 00019 * All rights reserved. 00020 * 00021 * 00022 * Contributor(s): Blender Foundation 00023 * 00024 * ***** END GPL LICENSE BLOCK ***** 00025 */ 00026 00031 #ifndef ED_CURVE_H 00032 #define ED_CURVE_H 00033 00034 struct Base; 00035 struct bContext; 00036 struct Nurb; 00037 struct Object; 00038 struct Scene; 00039 struct Text; 00040 struct View3D; 00041 struct wmOperator; 00042 struct wmKeyConfig; 00043 struct Curve; 00044 struct EditNurb; 00045 struct BezTriple; 00046 struct BPoint; 00047 00048 /* curve_ops.c */ 00049 void ED_operatortypes_curve(void); 00050 void ED_operatormacros_curve(void); 00051 void ED_keymap_curve (struct wmKeyConfig *keyconf); 00052 00053 /* editcurve.c */ 00054 void CU_deselect_all(struct Object *obedit); 00055 void CU_select_all(struct Object *obedit); 00056 void CU_select_swap(struct Object *obedit); 00057 00058 00059 void undo_push_curve (struct bContext *C, const char *name); 00060 ListBase *object_editcurve_get(struct Object *ob); 00061 00062 void load_editNurb (struct Object *obedit); 00063 void make_editNurb (struct Object *obedit); 00064 void free_editNurb (struct Object *obedit); 00065 00066 void free_curve_editNurb (struct Curve *cu); 00067 00068 int mouse_nurb (struct bContext *C, const int mval[2], int extend); 00069 00070 struct Nurb *add_nurbs_primitive(struct bContext *C, float mat[4][4], int type, int newob); 00071 00072 int isNurbsel (struct Nurb *nu); 00073 void ED_nurb_set_spline_type(struct Nurb *nu, int type); 00074 00075 int join_curve_exec (struct bContext *C, struct wmOperator *op); 00076 00077 /* editfont.h */ 00078 void undo_push_font (struct bContext *C, const char *name); 00079 void make_editText (struct Object *obedit); 00080 void load_editText (struct Object *obedit); 00081 void free_editText (struct Object *obedit); 00082 00083 void ED_text_to_object(struct bContext *C, struct Text *text, int split_lines); 00084 00085 int CU_select_nth(struct Object *obedit, int nth); 00086 ListBase *ED_curve_editnurbs(struct Curve *cu); 00087 00088 void ED_curve_beztcpy(struct EditNurb *editnurb, struct BezTriple *dst, struct BezTriple *src, int count); 00089 void ED_curve_bpcpy(struct EditNurb *editnurb, struct BPoint *dst, struct BPoint *src, int count); 00090 00091 int ED_curve_updateAnimPaths(struct Object *obedit); 00092 00093 int ED_curve_actSelection(struct Curve *cu, float center[3]); 00094 00095 /* debug only */ 00096 void printknots(struct Object *obedit); 00097 00098 #endif /* ED_CURVE_H */ 00099