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